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 17UTSBASE = ../.. 18 19MODULE = vmm_vtd 20OBJECTS = $(VMM_VTD_OBJS:%=$(OBJS_DIR)/%) 21ROOTMODULE = $(USR_MISC_DIR)/$(MODULE) 22CONF_SRCDIR = $(UTSBASE)/intel/io/vmm 23MAPFILE = $(UTSBASE)/intel/io/vmm/vmm_vtd.mapfile 24 25PRE_INC_PATH = \ 26 -I$(COMPAT)/bhyve \ 27 -I$(COMPAT)/bhyve/amd64 \ 28 -I$(CONTRIB)/bhyve \ 29 -I$(CONTRIB)/bhyve/amd64 30 31INC_PATH += -I$(UTSBASE)/intel/io/vmm -I$(UTSBASE)/intel/io/vmm/io 32AS_INC_PATH += -I$(UTSBASE)/intel/io/vmm -I$(OBJS_DIR) 33 34LDFLAGS += -N drv/vmm -N misc/acpica -N misc/pcie 35LDFLAGS += -M $(MAPFILE) 36 37include $(UTSBASE)/intel/Makefile.intel 38 39ALL_TARGET = $(BINARY) 40INSTALL_TARGET = $(BINARY) $(ROOTMODULE) 41 42ALL_BUILDS = $(ALL_BUILDSONLY64) 43DEF_BUILDS = $(DEF_BUILDSONLY64) 44 45.PARALLEL: $(OBJECTS) 46 47.KEEP_STATE: 48 49def: $(DEF_DEPS) 50 51all: $(ALL_DEPS) 52 53clean: $(CLEAN_DEPS) 54 55clobber: $(CLOBBER_DEPS) 56 57install: $(INSTALL_DEPS) 58 59include $(UTSBASE)/intel/Makefile.targ 60include $(UTSBASE)/intel/io/vmm/Makefile.rules 61