xref: /titanic_41/usr/src/uts/sparc/pcic/Makefile (revision 7014882c6a3672fd0e5d60200af8643ae53c5928)
13db86aabSstevel#
23db86aabSstevel# CDDL HEADER START
33db86aabSstevel#
43db86aabSstevel# The contents of this file are subject to the terms of the
53db86aabSstevel# Common Development and Distribution License (the "License").
63db86aabSstevel# You may not use this file except in compliance with the License.
73db86aabSstevel#
83db86aabSstevel# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
93db86aabSstevel# or http://www.opensolaris.org/os/licensing.
103db86aabSstevel# See the License for the specific language governing permissions
113db86aabSstevel# and limitations under the License.
123db86aabSstevel#
133db86aabSstevel# When distributing Covered Code, include this CDDL HEADER in each
143db86aabSstevel# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
153db86aabSstevel# If applicable, add the following below this CDDL HEADER, with the
163db86aabSstevel# fields enclosed by brackets "[]" replaced with your own identifying
173db86aabSstevel# information: Portions Copyright [yyyy] [name of copyright owner]
183db86aabSstevel#
193db86aabSstevel# CDDL HEADER END
203db86aabSstevel#
213db86aabSstevel
223db86aabSstevel#
233db86aabSstevel# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
243db86aabSstevel# Use is subject to license terms.
253db86aabSstevel#
263db86aabSstevel
273db86aabSstevel#
283db86aabSstevel#	This makefile drives the production of the PCIC driver kernel module.
293db86aabSstevel#
303db86aabSstevel#	sparc architecture dependent
313db86aabSstevel#
323db86aabSstevel
333db86aabSstevel#
343db86aabSstevel#	Path to the base of the uts directory tree (usually /usr/src/uts).
353db86aabSstevel#
363db86aabSstevelUTSBASE   = ../..
373db86aabSstevel
383db86aabSstevel#
393db86aabSstevel#	Define the module and object file sets.
403db86aabSstevel#
413db86aabSstevelMODULE		= pcic
423db86aabSstevelOBJECTS		= $(PCIC_OBJS:%=$(OBJS_DIR)/%)
433db86aabSstevelLINTS		= $(PCIC_OBJS:%.o=$(LINTS_DIR)/%.ln)
443db86aabSstevelROOTMODULE	= $(ROOT_DRV_DIR)/$(MODULE)
453db86aabSstevelCONF_SRCDIR	= $(UTSBASE)/common/io
463db86aabSstevel
473db86aabSstevel#
483db86aabSstevel#	Include common rules.
493db86aabSstevel#
503db86aabSstevelinclude $(UTSBASE)/sparc/Makefile.sparc
513db86aabSstevel
523db86aabSstevel#
533db86aabSstevel#	Define targets
543db86aabSstevel#
553db86aabSstevelALL_TARGET	= $(BINARY) $(SRC_CONFILE)
563db86aabSstevelLINT_TARGET	= $(MODULE).lint
573db86aabSstevelINSTALL_TARGET	= $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
583db86aabSstevel
593db86aabSstevel#
603db86aabSstevel#       Include sun4u specific header files
613db86aabSstevel#
623db86aabSstevelINC_PATH        += -I$(UTSBASE)/sun4u
633db86aabSstevel
643db86aabSstevel#
653db86aabSstevel#	Overrides
663db86aabSstevel#
673db86aabSstevelDEF_BUILDS	= $(DEF_BUILDS64)
683db86aabSstevelALL_BUILDS	= $(ALL_BUILDS64)
693db86aabSstevelCLEANLINTFILES	+= $(LINT64_FILES)
703db86aabSstevel
713db86aabSstevel#
723db86aabSstevel# lint pass one enforcement
733db86aabSstevel#
743db86aabSstevelCFLAGS += $(CCVERBOSE)
750d282d13Srw148561CPPFLAGS        +=      -DCARDBUS -DHOTPLUG
763db86aabSstevel
773db86aabSstevel#	dependency
783db86aabSstevelLDFLAGS	+=	-dy -Nmisc/busra -Nmisc/pcmcia -Nmisc/cardbus
793db86aabSstevel
80*7014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-parentheses
81*7014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-unused-variable
82*7014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-unused-function
83*7014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-uninitialized
84*7014882cSRichard Lowe
853db86aabSstevel#
86bb25c06cSjg# For now, disable these lint checks; maintainers should endeavor
87bb25c06cSjg# to investigate and remove these for maximum lint coverage.
88bb25c06cSjg# Please do not carry these forward to new Makefiles.
89bb25c06cSjg#
90bb25c06cSjgLINTTAGS	+= -erroff=E_BAD_PTR_CAST_ALIGN
91bb25c06cSjgLINTTAGS	+= -erroff=E_ASSIGN_NARROW_CONV
92bb25c06cSjgLINTTAGS	+= -erroff=E_STATIC_UNUSED
93bb25c06cSjgLINTTAGS	+= -erroff=E_SUSPICIOUS_COMPARISON
94bb25c06cSjg
95bb25c06cSjg#
963db86aabSstevel#	Default build targets.
973db86aabSstevel#
983db86aabSstevel.KEEP_STATE:
993db86aabSstevel
1003db86aabSsteveldef:		$(DEF_DEPS)
1013db86aabSstevel
1023db86aabSstevelall:		$(ALL_DEPS)
1033db86aabSstevel
1043db86aabSstevelclean:		$(CLEAN_DEPS)
1053db86aabSstevel
1063db86aabSstevelclobber:	$(CLOBBER_DEPS)
1073db86aabSstevel
1083db86aabSstevellint:		$(LINT_DEPS)
1093db86aabSstevel
1103db86aabSstevelmodlintlib:	$(MODLINTLIB_DEPS) lint64
1113db86aabSstevel
1123db86aabSstevelclean.lint:	$(CLEAN_LINT_DEPS)
1133db86aabSstevel
1143db86aabSstevelinstall:	$(INSTALL_DEPS)
1153db86aabSstevel
1163db86aabSstevel#	Include common targets.
1173db86aabSstevel#
1183db86aabSstevelinclude $(UTSBASE)/sparc/Makefile.targ
119