1# 2# Copyright 2004 Sun Microsystems, Inc. All rights reserved. 3# Use is subject to license terms. 4# 5# ident "%Z%%M% %I% %E% SMI" 6# 7# This makefile drives the production of the amr driver kernel module. 8# 9# intel implementation architecture dependent 10# 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 = amr 21OBJECTS = $(AMR_OBJS:%=$(OBJS_DIR)/%) 22LINTS = $(AMR_OBJS:%.o=$(LINTS_DIR)/%.ln) 23ROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE) 24CONF_SRCDIR = $(UTSBASE)/intel/io/amr 25ITU_SRCDIR = $(UTSBASE)/intel/io/amr 26 27# 28# Include common rules. 29# 30include $(UTSBASE)/intel/Makefile.intel 31 32# 33# Define targets 34# 35ALL_TARGET = $(BINARY) $(CONFMOD) $(ITUMOD) 36LINT_TARGET = $(MODULE).lint 37INSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE) $(ROOT_ITUFILE) 38 39# 40# Overrides 41# 42CFLAGS_CPP_COMMENTS = -xCC 43$(__GNUC)CFLAGS_CPP_COMMENTS = 44 45CFLAGS += $(CFLAGS_CPP_COMMENTS) 46 47# 48# Default build targets. 49# 50#.KEEP_STATE: 51 52def: $(DEF_DEPS) 53 54all: $(ALL_DEPS) 55 56clean: $(CLEAN_DEPS) 57 58clobber: $(CLOBBER_DEPS) 59 60lint: $(LINT_DEPS) 61 62modlintlib: $(MODLINTLIB_DEPS) 63 64clean.lint: $(CLEAN_LINT_DEPS) 65 66install: $(INSTALL_DEPS) 67 68# 69# Include common targets. 70# 71include $(UTSBASE)/intel/Makefile.targ 72