xref: /illumos-gate/usr/src/uts/intel/cardbus/Makefile (revision b6b206fc7fb36f7b13b01acf70ed6e676e405998)
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#
25*b6b206fcSJohn Levon# Copyright (c) 2018, Joyent, Inc.
267014882cSRichard Lowe
273db86aabSstevel#
283db86aabSstevel#	This makefile drives the production of the cardbus kernel module.
293db86aabSstevel#
303db86aabSstevel#	intel 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		= cardbus
423db86aabSstevelOBJECTS		= $(CARDBUS_OBJS:%=$(OBJS_DIR)/%)
433db86aabSstevelLINTS		= $(CARDBUS_OBJS:%.o=$(LINTS_DIR)/%.ln)
443db86aabSstevelROOTMODULE	= $(ROOT_MISC_DIR)/$(MODULE)
453db86aabSstevel
463db86aabSstevel#
473db86aabSstevel#	Include common rules.
483db86aabSstevel#
493db86aabSstevelinclude $(UTSBASE)/intel/Makefile.intel
503db86aabSstevel
513db86aabSstevel#
523db86aabSstevel#	Define targets
533db86aabSstevel#
543db86aabSstevelALL_TARGET	= $(BINARY)
553db86aabSstevelLINT_TARGET	= $(MODULE).lint
563db86aabSstevelINSTALL_TARGET	= $(BINARY) $(ROOTMODULE)
573db86aabSstevel
583db86aabSstevel#
593db86aabSstevel# 	Include sun4u specific header files
603db86aabSstevel#
613db86aabSstevelINC_PATH        += -I$(UTSBASE)/sun4u -I$(UTSBASE)/sun4 -I$(UTSBASE)/i86pc
623db86aabSstevel
633db86aabSstevel#
643db86aabSstevel# lint pass one enforcement
653db86aabSstevel#
663db86aabSstevelCFLAGS += $(CCVERBOSE)
673db86aabSstevel
683db86aabSstevelCPPFLAGS        +=      -DHOTPLUG
693db86aabSstevel
703db86aabSstevel#	dependency
713db86aabSstevelLDFLAGS	+=	-dy -Nmisc/busra -Nmisc/pcmcia -Nmisc/hpcsvc
723db86aabSstevel
733db86aabSstevel#
74bb25c06cSjg# For now, disable these lint checks; maintainers should endeavor
75bb25c06cSjg# to investigate and remove these for maximum lint coverage.
76bb25c06cSjg# Please do not carry these forward to new Makefiles.
77bb25c06cSjg#
78bb25c06cSjgLINTTAGS	+= -erroff=E_SUSPICIOUS_COMPARISON
79bb25c06cSjgLINTTAGS	+= -erroff=E_BAD_PTR_CAST_ALIGN
80bb25c06cSjgLINTTAGS	+= -erroff=E_STATIC_UNUSED
81bb25c06cSjgLINTTAGS	+= -erroff=E_PTRDIFF_OVERFLOW
82bb25c06cSjgLINTTAGS	+= -erroff=E_ASSIGN_NARROW_CONV
83bb25c06cSjg
847014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-uninitialized
857014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-parentheses
867014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-unused-function
877014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-unused-variable
887014882cSRichard Lowe
89*b6b206fcSJohn LevonSMOFF += indenting,no_if_block
90*b6b206fcSJohn Levon
91bb25c06cSjg#
923db86aabSstevel#	Default build targets.
933db86aabSstevel#
943db86aabSstevel.KEEP_STATE:
953db86aabSstevel
963db86aabSsteveldef:		$(DEF_DEPS)
973db86aabSstevel
983db86aabSstevelall:		$(ALL_DEPS)
993db86aabSstevel
1003db86aabSstevelclean:		$(CLEAN_DEPS)
1013db86aabSstevel
1023db86aabSstevelclobber:	$(CLOBBER_DEPS)
1033db86aabSstevel
1043db86aabSstevellint:		$(LINT_DEPS)
1053db86aabSstevel
1063db86aabSstevelmodlintlib:	$(MODLINTLIB_DEPS)
1073db86aabSstevel
1083db86aabSstevelclean.lint:	$(CLEAN_LINT_DEPS)
1093db86aabSstevel
1103db86aabSstevelinstall:	$(INSTALL_DEPS)
1113db86aabSstevel
1123db86aabSstevel#	Include common targets.
1133db86aabSstevel#
1143db86aabSstevelinclude $(UTSBASE)/intel/Makefile.targ
115