xref: /illumos-gate/usr/src/uts/intel/cardbus/Makefile (revision 82d0151a507442720a3aea34c8925041894ab173)
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#
25b6b206fcSJohn 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)/%)
433db86aabSstevelROOTMODULE	= $(ROOT_MISC_DIR)/$(MODULE)
443db86aabSstevel
453db86aabSstevel#
463db86aabSstevel#	Include common rules.
473db86aabSstevel#
483db86aabSstevelinclude $(UTSBASE)/intel/Makefile.intel
493db86aabSstevel
503db86aabSstevel#
513db86aabSstevel#	Define targets
523db86aabSstevel#
533db86aabSstevelALL_TARGET	= $(BINARY)
543db86aabSstevelINSTALL_TARGET	= $(BINARY) $(ROOTMODULE)
553db86aabSstevel
563db86aabSstevel#
573db86aabSstevel#	Include sun4u specific header files
583db86aabSstevel#
593db86aabSstevelINC_PATH        += -I$(UTSBASE)/sun4u -I$(UTSBASE)/sun4 -I$(UTSBASE)/i86pc
603db86aabSstevel
613db86aabSstevelCPPFLAGS        +=      -DHOTPLUG
623db86aabSstevel
633db86aabSstevel#	dependency
64*82d0151aSRichard LoweLDFLAGS	+=	-Nmisc/busra -Nmisc/pcmcia -Nmisc/hpcsvc
653db86aabSstevel
663db86aabSstevel#
670aaef2f5SRichard Lowe# For now, disable these warnings; maintainers should endeavor
680aaef2f5SRichard Lowe# to investigate and remove these for maximum coverage.
69bb25c06cSjg# Please do not carry these forward to new Makefiles.
70bb25c06cSjg#
710aaef2f5SRichard LoweCFLAGS		+= $(CCVERBOSE)
72d3b5f563SJohn LevonCERRWARN	+= $(CNOWARN_UNINIT)
737014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-parentheses
747014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-unused-function
757014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-unused-variable
767014882cSRichard Lowe
77b6b206fcSJohn LevonSMOFF += indenting,no_if_block
78b6b206fcSJohn Levon
79bb25c06cSjg#
803db86aabSstevel#	Default build targets.
813db86aabSstevel#
823db86aabSstevel.KEEP_STATE:
833db86aabSstevel
843db86aabSsteveldef:		$(DEF_DEPS)
853db86aabSstevel
863db86aabSstevelall:		$(ALL_DEPS)
873db86aabSstevel
883db86aabSstevelclean:		$(CLEAN_DEPS)
893db86aabSstevel
903db86aabSstevelclobber:	$(CLOBBER_DEPS)
913db86aabSstevel
923db86aabSstevelinstall:	$(INSTALL_DEPS)
933db86aabSstevel
943db86aabSstevel#	Include common targets.
953db86aabSstevel#
963db86aabSstevelinclude $(UTSBASE)/intel/Makefile.targ
97