xref: /titanic_50/usr/src/uts/intel/cardbus/Makefile (revision 7014882c6a3672fd0e5d60200af8643ae53c5928)
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*7014882cSRichard Lowe
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#
75bb25c06cSjg# For now, disable these lint checks; maintainers should endeavor
76bb25c06cSjg# to investigate and remove these for maximum lint coverage.
77bb25c06cSjg# Please do not carry these forward to new Makefiles.
78bb25c06cSjg#
79bb25c06cSjgLINTTAGS	+= -erroff=E_SUSPICIOUS_COMPARISON
80bb25c06cSjgLINTTAGS	+= -erroff=E_BAD_PTR_CAST_ALIGN
81bb25c06cSjgLINTTAGS	+= -erroff=E_STATIC_UNUSED
82bb25c06cSjgLINTTAGS	+= -erroff=E_PTRDIFF_OVERFLOW
83bb25c06cSjgLINTTAGS	+= -erroff=E_ASSIGN_NARROW_CONV
84bb25c06cSjg
85*7014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-uninitialized
86*7014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-parentheses
87*7014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-unused-function
88*7014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-unused-variable
89*7014882cSRichard Lowe
90bb25c06cSjg#
913db86aabSstevel#	Default build targets.
923db86aabSstevel#
933db86aabSstevel.KEEP_STATE:
943db86aabSstevel
953db86aabSsteveldef:		$(DEF_DEPS)
963db86aabSstevel
973db86aabSstevelall:		$(ALL_DEPS)
983db86aabSstevel
993db86aabSstevelclean:		$(CLEAN_DEPS)
1003db86aabSstevel
1013db86aabSstevelclobber:	$(CLOBBER_DEPS)
1023db86aabSstevel
1033db86aabSstevellint:		$(LINT_DEPS)
1043db86aabSstevel
1053db86aabSstevelmodlintlib:	$(MODLINTLIB_DEPS)
1063db86aabSstevel
1073db86aabSstevelclean.lint:	$(CLEAN_LINT_DEPS)
1083db86aabSstevel
1093db86aabSstevelinstall:	$(INSTALL_DEPS)
1103db86aabSstevel
1113db86aabSstevel#	Include common targets.
1123db86aabSstevel#
1133db86aabSstevelinclude $(UTSBASE)/intel/Makefile.targ
114