17c478bd9Sstevel@tonic-gate# 27adeeb5aSmike_s# Copyright 2006 Sun Microsystems, Inc. All rights reserved. 37c478bd9Sstevel@tonic-gate# Use is subject to license terms. 47c478bd9Sstevel@tonic-gate# 57c478bd9Sstevel@tonic-gate# ident "%Z%%M% %I% %E% SMI" 67c478bd9Sstevel@tonic-gate# 77c478bd9Sstevel@tonic-gate# This makefile drives the production of the amr driver kernel module. 87c478bd9Sstevel@tonic-gate# 97c478bd9Sstevel@tonic-gate# intel implementation architecture dependent 107c478bd9Sstevel@tonic-gate# 117c478bd9Sstevel@tonic-gate 127c478bd9Sstevel@tonic-gate# 137c478bd9Sstevel@tonic-gate# Path to the base of the uts directory tree (usually /usr/src/uts). 147c478bd9Sstevel@tonic-gate# 157c478bd9Sstevel@tonic-gateUTSBASE = ../.. 167c478bd9Sstevel@tonic-gate 177c478bd9Sstevel@tonic-gate# 187c478bd9Sstevel@tonic-gate# Define the module and object file sets. 197c478bd9Sstevel@tonic-gate# 207c478bd9Sstevel@tonic-gateMODULE = amr 217c478bd9Sstevel@tonic-gateOBJECTS = $(AMR_OBJS:%=$(OBJS_DIR)/%) 227c478bd9Sstevel@tonic-gateLINTS = $(AMR_OBJS:%.o=$(LINTS_DIR)/%.ln) 237c478bd9Sstevel@tonic-gateROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE) 247c478bd9Sstevel@tonic-gateCONF_SRCDIR = $(UTSBASE)/intel/io/amr 257c478bd9Sstevel@tonic-gate 267c478bd9Sstevel@tonic-gate# 277c478bd9Sstevel@tonic-gate# Include common rules. 287c478bd9Sstevel@tonic-gate# 297c478bd9Sstevel@tonic-gateinclude $(UTSBASE)/intel/Makefile.intel 307c478bd9Sstevel@tonic-gate 317c478bd9Sstevel@tonic-gate# 327c478bd9Sstevel@tonic-gate# Define targets 337c478bd9Sstevel@tonic-gate# 34c8343062SmeemALL_TARGET = $(BINARY) $(CONFMOD) 357c478bd9Sstevel@tonic-gateLINT_TARGET = $(MODULE).lint 36c8343062SmeemINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE) 377c478bd9Sstevel@tonic-gate 387c478bd9Sstevel@tonic-gate# 397c478bd9Sstevel@tonic-gate# Overrides 407c478bd9Sstevel@tonic-gate# 41*bb25c06cSjg# 42*bb25c06cSjg# For now, disable these lint checks; maintainers should endeavor 43*bb25c06cSjg# to investigate and remove these for maximum lint coverage. 44*bb25c06cSjg# Please do not carry these forward to new Makefiles. 45*bb25c06cSjg# 46*bb25c06cSjgLINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN 47*bb25c06cSjgLINTTAGS += -erroff=E_ASSIGN_NARROW_CONV 487c478bd9Sstevel@tonic-gate 497c478bd9Sstevel@tonic-gate# 507c478bd9Sstevel@tonic-gate# Default build targets. 517c478bd9Sstevel@tonic-gate# 527adeeb5aSmike_s.KEEP_STATE: 537c478bd9Sstevel@tonic-gate 547c478bd9Sstevel@tonic-gatedef: $(DEF_DEPS) 557c478bd9Sstevel@tonic-gate 567c478bd9Sstevel@tonic-gateall: $(ALL_DEPS) 577c478bd9Sstevel@tonic-gate 587c478bd9Sstevel@tonic-gateclean: $(CLEAN_DEPS) 597c478bd9Sstevel@tonic-gate 607c478bd9Sstevel@tonic-gateclobber: $(CLOBBER_DEPS) 617c478bd9Sstevel@tonic-gate 627c478bd9Sstevel@tonic-gatelint: $(LINT_DEPS) 637c478bd9Sstevel@tonic-gate 647c478bd9Sstevel@tonic-gatemodlintlib: $(MODLINTLIB_DEPS) 657c478bd9Sstevel@tonic-gate 667c478bd9Sstevel@tonic-gateclean.lint: $(CLEAN_LINT_DEPS) 677c478bd9Sstevel@tonic-gate 687c478bd9Sstevel@tonic-gateinstall: $(INSTALL_DEPS) 697c478bd9Sstevel@tonic-gate 707c478bd9Sstevel@tonic-gate# 717c478bd9Sstevel@tonic-gate# Include common targets. 727c478bd9Sstevel@tonic-gate# 737c478bd9Sstevel@tonic-gateinclude $(UTSBASE)/intel/Makefile.targ 74