xref: /illumos-gate/usr/src/cmd/bhyve/test/Makefile.com (revision c2cd3a449cfa117e3a164f66931fa6c26c762945)
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
32LDFLAGS +=	-lproc
33
34SMOFF += all_func_returns
35
36CLEANFILES +=	$(PROG)
37
38#
39# Install related definitions
40#
41ROOTOPTPKG =	$(ROOT)/opt/bhyve-tests
42ROOTTESTS =	$(ROOTOPTPKG)/tests
43TESTDIR =	$(ROOTTESTS)/$(TESTSUBDIR)
44
45FILEMODE =	0555
46LDLIBS =	$(LDLIBS.cmd)
47