149ef7e06SGarrett D'Amore# 249ef7e06SGarrett D'Amore# This file and its contents are supplied under the terms of the 349ef7e06SGarrett D'Amore# Common Development and Distribution License ("CDDL"), version 1.0. 449ef7e06SGarrett D'Amore# You may only use this file in accordance with the terms of version 549ef7e06SGarrett D'Amore# 1.0 of the CDDL. 649ef7e06SGarrett D'Amore# 749ef7e06SGarrett D'Amore# A full copy of the text of the CDDL should have accompanied this 849ef7e06SGarrett D'Amore# source. A copy of the CDDL is also available via the Internet at 949ef7e06SGarrett D'Amore# http://www.illumos.org/license/CDDL. 1049ef7e06SGarrett D'Amore# 1149ef7e06SGarrett D'Amore 1249ef7e06SGarrett D'Amore# 1349ef7e06SGarrett D'Amore# Copyright 2016 Garrett D'Amore <garrett@damore.org> 1449ef7e06SGarrett D'Amore# 15b6b206fcSJohn Levon# Copyright (c) 2018, Joyent, Inc. 1649ef7e06SGarrett D'Amore 1749ef7e06SGarrett D'AmoreUTSBASE = ../.. 1849ef7e06SGarrett D'Amore 1949ef7e06SGarrett D'AmoreMODULE = sfxge 2049ef7e06SGarrett D'AmoreOBJECTS = $(SFXGE_OBJS:%=$(OBJS_DIR)/%) 2164d07b7cSGarrett D'AmoreOBJECTS += $(SFXGE_SF_OBJS:%=$(OBJS_DIR)/%) 2249ef7e06SGarrett D'AmoreROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE) 2349ef7e06SGarrett D'Amore 2449ef7e06SGarrett D'Amoreinclude $(UTSBASE)/intel/Makefile.intel 2549ef7e06SGarrett D'Amore 2649ef7e06SGarrett D'Amore# 2749ef7e06SGarrett D'Amore# Targets 2849ef7e06SGarrett D'Amore# 2949ef7e06SGarrett D'AmoreALL_TARGET = $(BINARY) 3049ef7e06SGarrett D'AmoreINSTALL_TARGET = $(BINARY) $(ROOTMODULE) 3149ef7e06SGarrett D'Amore 3249ef7e06SGarrett D'Amore# 3349ef7e06SGarrett D'Amore# Overrides 3449ef7e06SGarrett D'Amore# 3549ef7e06SGarrett D'Amore 3649ef7e06SGarrett D'AmoreINC_PATH += -I$(UTSBASE)/common/io/sfxge -I$(UTSBASE)/common/io/sfxge/common 3749ef7e06SGarrett D'Amore 3849ef7e06SGarrett D'Amore# 3949ef7e06SGarrett D'Amore# TODO: 4049ef7e06SGarrett D'Amore# These are specific to this driver. We will unidef these out later. 4149ef7e06SGarrett D'Amore# Some of them need further cleanup as well (e.g. we shouldn't bother with 4249ef7e06SGarrett D'Amore# supporting NDD directly.) 4349ef7e06SGarrett D'Amore# 4449ef7e06SGarrett D'AmoreCPPFLAGS += -U_USE_MTU_UPDATE 4549ef7e06SGarrett D'Amore 4649ef7e06SGarrett D'AmoreCFLAGS += $(CCVERBOSE) 4749ef7e06SGarrett D'Amore 4849ef7e06SGarrett D'Amore# 4949ef7e06SGarrett D'Amore# Driver depends on GLDv3 (mac) 5049ef7e06SGarrett D'Amore# 51*82d0151aSRichard LoweLDFLAGS += -N misc/mac 5249ef7e06SGarrett D'Amore 53b6b206fcSJohn Levon# needs work 54b6b206fcSJohn Levon$(OBJS_DIR)/sfxge_ev.o := SMOFF += index_overflow 55b6b206fcSJohn LevonSMOFF += all_func_returns 56b6b206fcSJohn Levon 5749ef7e06SGarrett D'Amore# 5849ef7e06SGarrett D'Amore# Default build targets. 5949ef7e06SGarrett D'Amore# 6049ef7e06SGarrett D'Amore.KEEP_STATE: 6149ef7e06SGarrett D'Amore 6249ef7e06SGarrett D'Amoredef: $(DEF_DEPS) 6349ef7e06SGarrett D'Amore 6449ef7e06SGarrett D'Amoreall: $(ALL_DEPS) 6549ef7e06SGarrett D'Amore 6649ef7e06SGarrett D'Amoreclean: $(CLEAN_DEPS) 6749ef7e06SGarrett D'Amore 6849ef7e06SGarrett D'Amoreclobber: $(CLOBBER_DEPS) 6949ef7e06SGarrett D'Amore 7049ef7e06SGarrett D'Amoreinstall: $(INSTALL_DEPS) 7149ef7e06SGarrett D'Amore 7249ef7e06SGarrett D'Amore# 7349ef7e06SGarrett D'Amore# Include common targets. 7449ef7e06SGarrett D'Amore# 7549ef7e06SGarrett D'Amoreinclude $(UTSBASE)/intel/Makefile.targ 76