17c478bd9Sstevel@tonic-gate# 27adeeb5aSmike_s# Copyright 2006 Sun Microsystems, Inc. All rights reserved. 37c478bd9Sstevel@tonic-gate# Use is subject to license terms. 4*89b43686SBayard 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-gateLINTS = $(AMR_OBJS:%.o=$(LINTS_DIR)/%.ln) 227c478bd9Sstevel@tonic-gateROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE) 237c478bd9Sstevel@tonic-gateCONF_SRCDIR = $(UTSBASE)/intel/io/amr 247c478bd9Sstevel@tonic-gate 257c478bd9Sstevel@tonic-gate# 267c478bd9Sstevel@tonic-gate# Include common rules. 277c478bd9Sstevel@tonic-gate# 287c478bd9Sstevel@tonic-gateinclude $(UTSBASE)/intel/Makefile.intel 297c478bd9Sstevel@tonic-gate 307c478bd9Sstevel@tonic-gate# 317c478bd9Sstevel@tonic-gate# Define targets 327c478bd9Sstevel@tonic-gate# 33c8343062SmeemALL_TARGET = $(BINARY) $(CONFMOD) 347c478bd9Sstevel@tonic-gateLINT_TARGET = $(MODULE).lint 35c8343062SmeemINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE) 367c478bd9Sstevel@tonic-gate 377c478bd9Sstevel@tonic-gate# 387c478bd9Sstevel@tonic-gate# Overrides 397c478bd9Sstevel@tonic-gate# 40bb25c06cSjg# 41bb25c06cSjg# For now, disable these lint checks; maintainers should endeavor 42bb25c06cSjg# to investigate and remove these for maximum lint coverage. 43bb25c06cSjg# Please do not carry these forward to new Makefiles. 44bb25c06cSjg# 45bb25c06cSjgLINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN 46bb25c06cSjgLINTTAGS += -erroff=E_ASSIGN_NARROW_CONV 477c478bd9Sstevel@tonic-gate 487c478bd9Sstevel@tonic-gate# 49*89b43686SBayard Bell# Depends on scsi 50*89b43686SBayard Bell# 51*89b43686SBayard BellLDFLAGS += -dy -N misc/scsi 52*89b43686SBayard Bell 53*89b43686SBayard Bell# 547c478bd9Sstevel@tonic-gate# Default build targets. 557c478bd9Sstevel@tonic-gate# 567adeeb5aSmike_s.KEEP_STATE: 577c478bd9Sstevel@tonic-gate 587c478bd9Sstevel@tonic-gatedef: $(DEF_DEPS) 597c478bd9Sstevel@tonic-gate 607c478bd9Sstevel@tonic-gateall: $(ALL_DEPS) 617c478bd9Sstevel@tonic-gate 627c478bd9Sstevel@tonic-gateclean: $(CLEAN_DEPS) 637c478bd9Sstevel@tonic-gate 647c478bd9Sstevel@tonic-gateclobber: $(CLOBBER_DEPS) 657c478bd9Sstevel@tonic-gate 667c478bd9Sstevel@tonic-gatelint: $(LINT_DEPS) 677c478bd9Sstevel@tonic-gate 687c478bd9Sstevel@tonic-gatemodlintlib: $(MODLINTLIB_DEPS) 697c478bd9Sstevel@tonic-gate 707c478bd9Sstevel@tonic-gateclean.lint: $(CLEAN_LINT_DEPS) 717c478bd9Sstevel@tonic-gate 727c478bd9Sstevel@tonic-gateinstall: $(INSTALL_DEPS) 737c478bd9Sstevel@tonic-gate 747c478bd9Sstevel@tonic-gate# 757c478bd9Sstevel@tonic-gate# Include common targets. 767c478bd9Sstevel@tonic-gate# 777c478bd9Sstevel@tonic-gateinclude $(UTSBASE)/intel/Makefile.targ 78