1 # 2 # Copyright 2009 Sun Microsystems, Inc. All rights reserved. 3 # Use is subject to license terms. 4 # 5 # uts/intel/agptarget/Makefile 6 # 7 # 8 # This makefile drives the framework of agp protocol 9 # (agptarget) kernel module. 10 # 11 # 12 # Path to the base of the uts directory tree (usually /usr/src/uts). 13 # 14 UTSBASE = ../.. 15 16 # 17 # Define the module and object file sets. 18 # 19 MODULE = agptarget 20 OBJECTS = $(AGPTARGET_OBJS:%=$(OBJS_DIR)/%) 21 LINTS = $(AGPTARGET_OBJS:%.o=$(LINTS_DIR)/%.ln) 22 ROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE) 23 24 # 25 # dependency 26 # 27 LDFLAGS += -dy -Nmisc/busra 28 29 # 30 # Include common rules. 31 # 32 include $(UTSBASE)/intel/Makefile.intel 33 34 CERRWARN += -_gcc=-Wno-uninitialized 35 36 # 37 # Define targets 38 # 39 ALL_TARGET = $(BINARY) 40 LINT_TARGET = $(MODULE).lint 41 INSTALL_TARGET = $(BINARY) $(ROOTMODULE) 42 43 # 44 # Default build targets. 45 # 46 .KEEP_STATE: 47 48 def: $(DEF_DEPS) 49 50 all: $(ALL_DEPS) 51 52 clean: $(CLEAN_DEPS) 53 54 clobber: $(CLOBBER_DEPS) 55 56 lint: $(LINT_DEPS) 57 58 modlintlib: $(MODLINTLIB_DEPS) 59 60 clean.lint: $(CLEAN_LINT_DEPS) 61 62 install: $(INSTALL_DEPS) 63 64 # 65 # Include common targets. 66 # 67 include $(UTSBASE)/intel/Makefile.targ