1# 2# Copyright 2006 Sun Microsystems, Inc. All rights reserved. 3# Use is subject to license terms. 4# Copyright (c) 2011 Bayard G. Bell. All rights reserved. 5# 6# This makefile drives the production of the amr driver kernel module. 7# 8# intel implementation architecture dependent 9# 10 11# 12# Path to the base of the uts directory tree (usually /usr/src/uts). 13# 14UTSBASE = ../.. 15 16# 17# Define the module and object file sets. 18# 19MODULE = amr 20OBJECTS = $(AMR_OBJS:%=$(OBJS_DIR)/%) 21ROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE) 22CONF_SRCDIR = $(UTSBASE)/intel/io/amr 23 24# 25# Include common rules. 26# 27include $(UTSBASE)/intel/Makefile.intel 28 29# 30# Define targets 31# 32ALL_TARGET = $(BINARY) $(CONFMOD) 33INSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE) 34 35# 36# Overrides 37# 38# 39# For now, disable these warnings; maintainers should endeavor 40# to investigate and remove these for maximum coverage. 41# Please do not carry these forward to new Makefiles. 42# 43 44CERRWARN += -_gcc=-Wno-parentheses 45 46# 47# Depends on scsi 48# 49LDFLAGS += -N misc/scsi 50 51# 52# Default build targets. 53# 54.KEEP_STATE: 55 56def: $(DEF_DEPS) 57 58all: $(ALL_DEPS) 59 60clean: $(CLEAN_DEPS) 61 62clobber: $(CLOBBER_DEPS) 63 64install: $(INSTALL_DEPS) 65 66# 67# Include common targets. 68# 69include $(UTSBASE)/intel/Makefile.targ 70