xref: /titanic_50/usr/src/uts/sparc/pcic/Makefile (revision 3db86aab554edbb4244c8d1a1c90f152eee768af)
1*3db86aabSstevel#
2*3db86aabSstevel# CDDL HEADER START
3*3db86aabSstevel#
4*3db86aabSstevel# The contents of this file are subject to the terms of the
5*3db86aabSstevel# Common Development and Distribution License (the "License").
6*3db86aabSstevel# You may not use this file except in compliance with the License.
7*3db86aabSstevel#
8*3db86aabSstevel# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*3db86aabSstevel# or http://www.opensolaris.org/os/licensing.
10*3db86aabSstevel# See the License for the specific language governing permissions
11*3db86aabSstevel# and limitations under the License.
12*3db86aabSstevel#
13*3db86aabSstevel# When distributing Covered Code, include this CDDL HEADER in each
14*3db86aabSstevel# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*3db86aabSstevel# If applicable, add the following below this CDDL HEADER, with the
16*3db86aabSstevel# fields enclosed by brackets "[]" replaced with your own identifying
17*3db86aabSstevel# information: Portions Copyright [yyyy] [name of copyright owner]
18*3db86aabSstevel#
19*3db86aabSstevel# CDDL HEADER END
20*3db86aabSstevel#
21*3db86aabSstevel
22*3db86aabSstevel#
23*3db86aabSstevel# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
24*3db86aabSstevel# Use is subject to license terms.
25*3db86aabSstevel#
26*3db86aabSstevel
27*3db86aabSstevel#ident	"%Z%%M%	%I%	%E% SMI"
28*3db86aabSstevel#
29*3db86aabSstevel#	This makefile drives the production of the PCIC driver kernel module.
30*3db86aabSstevel#
31*3db86aabSstevel#	sparc architecture dependent
32*3db86aabSstevel#
33*3db86aabSstevel
34*3db86aabSstevel#
35*3db86aabSstevel#	Path to the base of the uts directory tree (usually /usr/src/uts).
36*3db86aabSstevel#
37*3db86aabSstevelUTSBASE   = ../..
38*3db86aabSstevel
39*3db86aabSstevel#
40*3db86aabSstevel#	Define the module and object file sets.
41*3db86aabSstevel#
42*3db86aabSstevelMODULE		= pcic
43*3db86aabSstevelOBJECTS		= $(PCIC_OBJS:%=$(OBJS_DIR)/%)
44*3db86aabSstevelLINTS		= $(PCIC_OBJS:%.o=$(LINTS_DIR)/%.ln)
45*3db86aabSstevelROOTMODULE	= $(ROOT_DRV_DIR)/$(MODULE)
46*3db86aabSstevelCONF_SRCDIR	= $(UTSBASE)/common/io
47*3db86aabSstevel
48*3db86aabSstevel#
49*3db86aabSstevel#	Include common rules.
50*3db86aabSstevel#
51*3db86aabSstevelinclude $(UTSBASE)/sparc/Makefile.sparc
52*3db86aabSstevel
53*3db86aabSstevel#
54*3db86aabSstevel#	Define targets
55*3db86aabSstevel#
56*3db86aabSstevelALL_TARGET	= $(BINARY) $(SRC_CONFILE)
57*3db86aabSstevelLINT_TARGET	= $(MODULE).lint
58*3db86aabSstevelINSTALL_TARGET	= $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
59*3db86aabSstevel
60*3db86aabSstevel#
61*3db86aabSstevel#       Include sun4u specific header files
62*3db86aabSstevel#
63*3db86aabSstevelINC_PATH        += -I$(UTSBASE)/sun4u
64*3db86aabSstevel
65*3db86aabSstevel#
66*3db86aabSstevel#	Overrides
67*3db86aabSstevel#
68*3db86aabSstevelDEF_BUILDS	= $(DEF_BUILDS64)
69*3db86aabSstevelALL_BUILDS	= $(ALL_BUILDS64)
70*3db86aabSstevelCLEANLINTFILES	+= $(LINT64_FILES)
71*3db86aabSstevel
72*3db86aabSstevel#
73*3db86aabSstevel# lint pass one enforcement
74*3db86aabSstevel#
75*3db86aabSstevelCFLAGS += $(CCVERBOSE)
76*3db86aabSstevelCPPFLAGS        +=      -DCARDBUS
77*3db86aabSstevel
78*3db86aabSstevel#	dependency
79*3db86aabSstevelLDFLAGS	+=	-dy -Nmisc/busra -Nmisc/pcmcia -Nmisc/cardbus
80*3db86aabSstevel
81*3db86aabSstevel#
82*3db86aabSstevel#	Default build targets.
83*3db86aabSstevel#
84*3db86aabSstevel.KEEP_STATE:
85*3db86aabSstevel
86*3db86aabSsteveldef:		$(DEF_DEPS)
87*3db86aabSstevel
88*3db86aabSstevelall:		$(ALL_DEPS)
89*3db86aabSstevel
90*3db86aabSstevelclean:		$(CLEAN_DEPS)
91*3db86aabSstevel
92*3db86aabSstevelclobber:	$(CLOBBER_DEPS)
93*3db86aabSstevel
94*3db86aabSstevellint:		$(LINT_DEPS)
95*3db86aabSstevel
96*3db86aabSstevelmodlintlib:	$(MODLINTLIB_DEPS) lint64
97*3db86aabSstevel
98*3db86aabSstevelclean.lint:	$(CLEAN_LINT_DEPS)
99*3db86aabSstevel
100*3db86aabSstevelinstall:	$(INSTALL_DEPS)
101*3db86aabSstevel
102*3db86aabSstevel#	Include common targets.
103*3db86aabSstevel#
104*3db86aabSstevelinclude $(UTSBASE)/sparc/Makefile.targ
105