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