17c478bd9Sstevel@tonic-gate# 27adeeb5aSmike_s# Copyright 2006 Sun Microsystems, Inc. All rights reserved. 37c478bd9Sstevel@tonic-gate# Use is subject to license terms. 489b43686SBayard Bell# Copyright (c) 2011 Bayard G. Bell. All rights reserved. 57c478bd9Sstevel@tonic-gate# 67c478bd9Sstevel@tonic-gate# This makefile drives the production of the amr driver kernel module. 77c478bd9Sstevel@tonic-gate# 87c478bd9Sstevel@tonic-gate# intel implementation architecture dependent 97c478bd9Sstevel@tonic-gate# 107c478bd9Sstevel@tonic-gate 117c478bd9Sstevel@tonic-gate# 127c478bd9Sstevel@tonic-gate# Path to the base of the uts directory tree (usually /usr/src/uts). 137c478bd9Sstevel@tonic-gate# 147c478bd9Sstevel@tonic-gateUTSBASE = ../.. 157c478bd9Sstevel@tonic-gate 167c478bd9Sstevel@tonic-gate# 177c478bd9Sstevel@tonic-gate# Define the module and object file sets. 187c478bd9Sstevel@tonic-gate# 197c478bd9Sstevel@tonic-gateMODULE = amr 207c478bd9Sstevel@tonic-gateOBJECTS = $(AMR_OBJS:%=$(OBJS_DIR)/%) 217c478bd9Sstevel@tonic-gateROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE) 227c478bd9Sstevel@tonic-gateCONF_SRCDIR = $(UTSBASE)/intel/io/amr 237c478bd9Sstevel@tonic-gate 247c478bd9Sstevel@tonic-gate# 257c478bd9Sstevel@tonic-gate# Include common rules. 267c478bd9Sstevel@tonic-gate# 277c478bd9Sstevel@tonic-gateinclude $(UTSBASE)/intel/Makefile.intel 287c478bd9Sstevel@tonic-gate 297c478bd9Sstevel@tonic-gate# 307c478bd9Sstevel@tonic-gate# Define targets 317c478bd9Sstevel@tonic-gate# 32c8343062SmeemALL_TARGET = $(BINARY) $(CONFMOD) 33c8343062SmeemINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE) 347c478bd9Sstevel@tonic-gate 357c478bd9Sstevel@tonic-gate# 367c478bd9Sstevel@tonic-gate# Overrides 377c478bd9Sstevel@tonic-gate# 38bb25c06cSjg# 390aaef2f5SRichard Lowe# For now, disable these warnings; maintainers should endeavor 400aaef2f5SRichard Lowe# to investigate and remove these for maximum coverage. 41bb25c06cSjg# Please do not carry these forward to new Makefiles. 42bb25c06cSjg# 437c478bd9Sstevel@tonic-gate 447014882cSRichard LoweCERRWARN += -_gcc=-Wno-parentheses 457014882cSRichard Lowe 467c478bd9Sstevel@tonic-gate# 4789b43686SBayard Bell# Depends on scsi 4889b43686SBayard Bell# 49*82d0151aSRichard LoweLDFLAGS += -N misc/scsi 5089b43686SBayard Bell 5189b43686SBayard Bell# 527c478bd9Sstevel@tonic-gate# Default build targets. 537c478bd9Sstevel@tonic-gate# 547adeeb5aSmike_s.KEEP_STATE: 557c478bd9Sstevel@tonic-gate 567c478bd9Sstevel@tonic-gatedef: $(DEF_DEPS) 577c478bd9Sstevel@tonic-gate 587c478bd9Sstevel@tonic-gateall: $(ALL_DEPS) 597c478bd9Sstevel@tonic-gate 607c478bd9Sstevel@tonic-gateclean: $(CLEAN_DEPS) 617c478bd9Sstevel@tonic-gate 627c478bd9Sstevel@tonic-gateclobber: $(CLOBBER_DEPS) 637c478bd9Sstevel@tonic-gate 647c478bd9Sstevel@tonic-gateinstall: $(INSTALL_DEPS) 657c478bd9Sstevel@tonic-gate 667c478bd9Sstevel@tonic-gate# 677c478bd9Sstevel@tonic-gate# Include common targets. 687c478bd9Sstevel@tonic-gate# 697c478bd9Sstevel@tonic-gateinclude $(UTSBASE)/intel/Makefile.targ 70