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