xref: /illumos-gate/usr/src/uts/intel/pcic/Makefile (revision 82d0151a507442720a3aea34c8925041894ab173)
1ae115bc7Smrj#
2ae115bc7Smrj# CDDL HEADER START
3ae115bc7Smrj#
4ae115bc7Smrj# The contents of this file are subject to the terms of the
5ae115bc7Smrj# Common Development and Distribution License (the "License").
6ae115bc7Smrj# You may not use this file except in compliance with the License.
7ae115bc7Smrj#
8ae115bc7Smrj# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9ae115bc7Smrj# or http://www.opensolaris.org/os/licensing.
10ae115bc7Smrj# See the License for the specific language governing permissions
11ae115bc7Smrj# and limitations under the License.
12ae115bc7Smrj#
13ae115bc7Smrj# When distributing Covered Code, include this CDDL HEADER in each
14ae115bc7Smrj# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15ae115bc7Smrj# If applicable, add the following below this CDDL HEADER, with the
16ae115bc7Smrj# fields enclosed by brackets "[]" replaced with your own identifying
17ae115bc7Smrj# information: Portions Copyright [yyyy] [name of copyright owner]
18ae115bc7Smrj#
19ae115bc7Smrj# CDDL HEADER END
20ae115bc7Smrj#
21ae115bc7Smrj
22ae115bc7Smrj#
23ae115bc7Smrj# Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
24ae115bc7Smrj# Use is subject to license terms.
25ae115bc7Smrj#
26b6b206fcSJohn Levon# Copyright (c) 2018, Joyent, Inc.
27ae115bc7Smrj
28ae115bc7Smrj#
29ae115bc7Smrj#	This makefile drives the PCIC style PCMCIA adapter
30ae115bc7Smrj#	It is mostly a standard driver
31ae115bc7Smrj#
32ae115bc7Smrj#	intel architecture dependent
33ae115bc7Smrj#
34ae115bc7Smrj
35ae115bc7Smrj#
36ae115bc7Smrj#	Paths to the base of the uts directory trees
37ae115bc7Smrj#
38ae115bc7SmrjUTSBASE		= ../..
39ae115bc7Smrj
40ae115bc7Smrj#
41ae115bc7Smrj#	Define the module and object file sets.
42ae115bc7Smrj#
43ae115bc7SmrjMODULE		= pcic
44ae115bc7SmrjOBJECTS		= $(PCIC_OBJS:%=$(OBJS_DIR)/%)
45ae115bc7SmrjROOTMODULE	= $(ROOT_DRV_DIR)/$(MODULE)
46ae115bc7SmrjCONF_SRCDIR	= $(UTSBASE)/common/io
47ae115bc7Smrj
48ae115bc7Smrj#
49ae115bc7Smrj#	Include common rules.
50ae115bc7Smrj#
51ae115bc7Smrjinclude $(UTSBASE)/intel/Makefile.intel
52ae115bc7Smrj
53ae115bc7Smrj#
54ae115bc7Smrj#	Define targets
55ae115bc7Smrj#
56ae115bc7SmrjALL_TARGET	= $(BINARY) $(SRC_CONFILE)
57ae115bc7SmrjINSTALL_TARGET	= $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
58ae115bc7Smrj
59ae115bc7SmrjCPPFLAGS	+=	-DCARDBUS -DHOTPLUG
60ae115bc7Smrj#
61ae115bc7Smrj#	Dependency
62ae115bc7Smrj#
63*82d0151aSRichard LoweLDFLAGS		+= -Nmisc/busra -Nmisc/pcmcia -Nmisc/cardbus
64ae115bc7Smrj
65ae115bc7Smrj#
660aaef2f5SRichard Lowe# For now, disable these warnings; maintainers should endeavor
670aaef2f5SRichard Lowe# to investigate and remove these for maximum coverage.
68ae115bc7Smrj# Please do not carry these forward to new Makefiles.
69ae115bc7Smrj#
70ae115bc7Smrj
717014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-parentheses
727014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-unused-variable
737014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-unused-function
74d3b5f563SJohn LevonCERRWARN	+= $(CNOWARN_UNINIT)
757014882cSRichard Lowe
76b6b206fcSJohn Levon# needs work
77b6b206fcSJohn LevonSMOFF += no_if_block,indenting,all_func_returns
78b6b206fcSJohn Levon
79ae115bc7Smrj#
80ae115bc7Smrj#	Default build targets.
81ae115bc7Smrj#
82ae115bc7Smrj.KEEP_STATE:
83ae115bc7Smrj
84ae115bc7Smrjdef:		$(DEF_DEPS)
85ae115bc7Smrj
86ae115bc7Smrjall:		$(ALL_DEPS)
87ae115bc7Smrj
88ae115bc7Smrjclean:		$(CLEAN_DEPS)
89ae115bc7Smrj
90ae115bc7Smrjclobber:	$(CLOBBER_DEPS)
91ae115bc7Smrj
92ae115bc7Smrjinstall:	$(INSTALL_DEPS)
93ae115bc7Smrj
94ae115bc7Smrj#
95ae115bc7Smrj#	Include common targets.
96ae115bc7Smrj#
97ae115bc7Smrjinclude $(UTSBASE)/intel/Makefile.targ
98