xref: /illumos-gate/usr/src/cmd/bhyve/test/Makefile.com (revision 1a065e93eee983124652c3eb0cfdcb4776cd89ab)
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#
15
16include $(SRC)/Makefile.master
17include $(SRC)/cmd/Makefile.cmd
18include $(SRC)/cmd/Makefile.cmd.64
19
20#
21# Force c99 for everything
22#
23CSTD=		$(CSTD_GNU99)
24
25CFLAGS +=	$(CCVERBOSE) -_gcc=-Wimplicit-function-declaration \
26		-_gcc=-Wno-parentheses
27CFLAGS64 +=	$(CCVERBOSE) -_gcc=-Wimplicit-function-declaration \
28		-_gcc=-Wno-parentheses
29CPPFLAGS =	-I$(SRC)/cmd/bhyve \
30		-I$(COMPAT)/bhyve -I$(CONTRIB)/bhyve \
31		-I$(CONTRIB)/bhyve/dev/usb/controller \
32		-I$(CONTRIB)/bhyve/dev/mii \
33		$(CPPFLAGS.master) \
34		-I$(SRC)/uts/i86pc/io/vmm \
35		-I$(SRC)/uts/common \
36		-I$(SRC)/uts/i86pc \
37		-I$(SRC)/lib/libdladm/common \
38		-DWITHOUT_CAPSICUM
39CPPFLAGS +=	-I$(COMPAT)/bhyve/amd64 -I$(CONTRIB)/bhyve/amd64
40
41SMOFF += all_func_returns
42
43CLEANFILES +=	$(EXETESTS)
44CLOBBERFILES +=	$(ROOTTESTS)
45
46#
47# Install related definitions
48#
49ROOTOPTPKG =	$(ROOT)/opt/bhyvetest
50ROOTBIN =	$(ROOTOPTPKG)/bin
51ROOTTST =	$(ROOTOPTPKG)/tst
52ROOTTSTDIR =	$(ROOTTST)/$(TSTDIR)
53ROOTTSTEXES =	$(EXETESTS:%=$(ROOTTSTDIR)/%)
54ROOTTSTSH =	$(SHTESTS:%=$(ROOTTSTDIR)/%)
55ROOTOUT =	$(OUTFILES:%=$(ROOTTSTDIR)/%)
56ROOTTESTS =	$(ROOTTSTEXES) $(ROOTTSTSH) $(ROOTOUT)
57FILEMODE =	0555
58LDLIBS =	$(LDLIBS.cmd)
59