xref: /illumos-gate/usr/src/cmd/bhyve/test/Makefile.com (revision d48be21240dfd051b689384ce2b23479d757f2d8)
1#
2# This file and its contents are supplied under the terms of the
3# Common Development and Distribution License ("CDDL"), version 1.0.
4# You may only use this file in accordance with the terms of version
5# 1.0 of the CDDL.
6#
7# A full copy of the text of the CDDL should have accompanied this
8# source.  A copy of the CDDL is also available via the Internet at
9# http://www.illumos.org/license/CDDL.
10#
11
12#
13# Copyright 2019 Joyent, Inc.
14# Copyright 2022 Oxide Computer Company
15#
16
17include $(SRC)/Makefile.master
18include $(SRC)/cmd/Makefile.cmd
19include $(SRC)/cmd/Makefile.cmd.64
20
21#
22# Force c99 for everything
23#
24CSTD=		$(CSTD_GNU99)
25
26CPPFLAGS =	-I$(COMPAT)/bhyve -I$(CONTRIB)/bhyve \
27		-I$(COMPAT)/bhyve/amd64 -I$(CONTRIB)/bhyve/amd64 \
28		$(CPPFLAGS.master) \
29		-I$(SRC)/cmd/bhyve \
30		-DWITHOUT_CAPSICUM
31
32SMOFF += all_func_returns
33
34CLOBBERFILES +=	$(PROG)
35
36#
37# Install related definitions
38#
39ROOTOPTPKG =	$(ROOT)/opt/bhyve-tests
40ROOTTESTS =	$(ROOTOPTPKG)/tests
41TESTDIR =	$(ROOTTESTS)/$(TESTSUBDIR)
42
43FILEMODE =	0555
44LDLIBS =	$(LDLIBS.cmd)
45