13db86aabSstevel# CDDL HEADER START 23db86aabSstevel# 33db86aabSstevel# The contents of this file are subject to the terms of the 43db86aabSstevel# Common Development and Distribution License (the "License"). 53db86aabSstevel# You may not use this file except in compliance with the License. 63db86aabSstevel# 73db86aabSstevel# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 83db86aabSstevel# or http://www.opensolaris.org/os/licensing. 93db86aabSstevel# See the License for the specific language governing permissions 103db86aabSstevel# and limitations under the License. 113db86aabSstevel# 123db86aabSstevel# When distributing Covered Code, include this CDDL HEADER in each 133db86aabSstevel# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 143db86aabSstevel# If applicable, add the following below this CDDL HEADER, with the 153db86aabSstevel# fields enclosed by brackets "[]" replaced with your own identifying 163db86aabSstevel# information: Portions Copyright [yyyy] [name of copyright owner] 173db86aabSstevel# 183db86aabSstevel# CDDL HEADER END 193db86aabSstevel# 203db86aabSstevel 213db86aabSstevel# 223db86aabSstevel# Copyright 2006 Sun Microsystems, Inc. All rights reserved. 233db86aabSstevel# Use is subject to license terms. 243db86aabSstevel# 253db86aabSstevel# uts/intel/cardbus/Makefile 263db86aabSstevel# 27*bb25c06cSjg#ident "%Z%%M% %I% %E% SMI" 283db86aabSstevel# 293db86aabSstevel# This makefile drives the production of the cardbus kernel module. 303db86aabSstevel# 313db86aabSstevel# intel architecture dependent 323db86aabSstevel# 333db86aabSstevel 343db86aabSstevel# 353db86aabSstevel# Path to the base of the uts directory tree (usually /usr/src/uts). 363db86aabSstevel# 373db86aabSstevelUTSBASE = ../.. 383db86aabSstevel 393db86aabSstevel# 403db86aabSstevel# Define the module and object file sets. 413db86aabSstevel# 423db86aabSstevelMODULE = cardbus 433db86aabSstevelOBJECTS = $(CARDBUS_OBJS:%=$(OBJS_DIR)/%) 443db86aabSstevelLINTS = $(CARDBUS_OBJS:%.o=$(LINTS_DIR)/%.ln) 453db86aabSstevelROOTMODULE = $(ROOT_MISC_DIR)/$(MODULE) 463db86aabSstevel 473db86aabSstevel# 483db86aabSstevel# Include common rules. 493db86aabSstevel# 503db86aabSstevelinclude $(UTSBASE)/intel/Makefile.intel 513db86aabSstevel 523db86aabSstevel# 533db86aabSstevel# Define targets 543db86aabSstevel# 553db86aabSstevelALL_TARGET = $(BINARY) 563db86aabSstevelLINT_TARGET = $(MODULE).lint 573db86aabSstevelINSTALL_TARGET = $(BINARY) $(ROOTMODULE) 583db86aabSstevel 593db86aabSstevel# 603db86aabSstevel# Include sun4u specific header files 613db86aabSstevel# 623db86aabSstevelINC_PATH += -I$(UTSBASE)/sun4u -I$(UTSBASE)/sun4 -I$(UTSBASE)/i86pc 633db86aabSstevel 643db86aabSstevel# 653db86aabSstevel# lint pass one enforcement 663db86aabSstevel# 673db86aabSstevelCFLAGS += $(CCVERBOSE) 683db86aabSstevel 693db86aabSstevelCPPFLAGS += -DHOTPLUG 703db86aabSstevel 713db86aabSstevel# dependency 723db86aabSstevelLDFLAGS += -dy -Nmisc/busra -Nmisc/pcmcia -Nmisc/hpcsvc 733db86aabSstevel 743db86aabSstevel# 75*bb25c06cSjg# For now, disable these lint checks; maintainers should endeavor 76*bb25c06cSjg# to investigate and remove these for maximum lint coverage. 77*bb25c06cSjg# Please do not carry these forward to new Makefiles. 78*bb25c06cSjg# 79*bb25c06cSjgLINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON 80*bb25c06cSjgLINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN 81*bb25c06cSjgLINTTAGS += -erroff=E_STATIC_UNUSED 82*bb25c06cSjgLINTTAGS += -erroff=E_PTRDIFF_OVERFLOW 83*bb25c06cSjgLINTTAGS += -erroff=E_ASSIGN_NARROW_CONV 84*bb25c06cSjg 85*bb25c06cSjg# 863db86aabSstevel# Default build targets. 873db86aabSstevel# 883db86aabSstevel.KEEP_STATE: 893db86aabSstevel 903db86aabSsteveldef: $(DEF_DEPS) 913db86aabSstevel 923db86aabSstevelall: $(ALL_DEPS) 933db86aabSstevel 943db86aabSstevelclean: $(CLEAN_DEPS) 953db86aabSstevel 963db86aabSstevelclobber: $(CLOBBER_DEPS) 973db86aabSstevel 983db86aabSstevellint: $(LINT_DEPS) 993db86aabSstevel 1003db86aabSstevelmodlintlib: $(MODLINTLIB_DEPS) 1013db86aabSstevel 1023db86aabSstevelclean.lint: $(CLEAN_LINT_DEPS) 1033db86aabSstevel 1043db86aabSstevelinstall: $(INSTALL_DEPS) 1053db86aabSstevel 1063db86aabSstevel# Include common targets. 1073db86aabSstevel# 1083db86aabSstevelinclude $(UTSBASE)/intel/Makefile.targ 109