1# 2# Copyright 2008 Sun Microsystems, Inc. All rights reserved. 3# Use is subject to license terms. 4# 5# uts/intel/agpgart/Makefile 6# 7 8# 9# This makefile drives the framework of agp protocol 10# (agpgart) kernel module. 11# 12# 13# Path to the base of the uts directory tree (usually /usr/src/uts). 14# 15UTSBASE = ../.. 16 17# 18# Define the module and object file sets. 19# 20MODULE = agpgart 21OBJECTS = $(AGPGART_OBJS:%=$(OBJS_DIR)/%) 22LINTS = $(AGPGART_OBJS:%.o=$(LINTS_DIR)/%.ln) 23ROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE) 24CONF_SRCDIR = $(UTSBASE)/intel/io/agpgart 25 26# 27# Include common rules. 28# 29include $(UTSBASE)/intel/Makefile.intel 30 31# 32# Define targets 33# 34ALL_TARGET = $(BINARY) $(SRC_CONFILE) 35LINT_TARGET = $(MODULE).lint 36INSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE) 37 38CERRWARN += -_gcc=-Wno-switch 39CERRWARN += -_gcc=-Wno-parentheses 40CERRWARN += -_gcc=-Wno-uninitialized 41 42# 43# For now, disable these lint checks; maintainers should endeavor 44# to investigate and remove these for maximum lint coverage. 45# Please do not carry these forward to new Makefiles. 46# 47LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN 48 49# 50# Default build targets. 51# 52.KEEP_STATE: 53 54def: $(DEF_DEPS) 55 56all: $(ALL_DEPS) 57 58clean: $(CLEAN_DEPS) 59 60clobber: $(CLOBBER_DEPS) 61 62lint: $(LINT_DEPS) 63 64modlintlib: $(MODLINTLIB_DEPS) 65 66clean.lint: $(CLEAN_LINT_DEPS) 67 68install: $(INSTALL_DEPS) 69 70# 71# Include common targets. 72# 73include $(UTSBASE)/intel/Makefile.targ 74