xref: /titanic_50/usr/src/uts/intel/sda/Makefile (revision 4bb7efa72ed531c10f097919636e67724ec4c25a)
1*4bb7efa7SGarrett D'Amore#
2*4bb7efa7SGarrett D'Amore# CDDL HEADER START
3*4bb7efa7SGarrett D'Amore#
4*4bb7efa7SGarrett D'Amore# The contents of this file are subject to the terms of the
5*4bb7efa7SGarrett D'Amore# Common Development and Distribution License (the "License").
6*4bb7efa7SGarrett D'Amore# You may not use this file except in compliance with the License.
7*4bb7efa7SGarrett D'Amore#
8*4bb7efa7SGarrett D'Amore# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*4bb7efa7SGarrett D'Amore# or http://www.opensolaris.org/os/licensing.
10*4bb7efa7SGarrett D'Amore# See the License for the specific language governing permissions
11*4bb7efa7SGarrett D'Amore# and limitations under the License.
12*4bb7efa7SGarrett D'Amore#
13*4bb7efa7SGarrett D'Amore# When distributing Covered Code, include this CDDL HEADER in each
14*4bb7efa7SGarrett D'Amore# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*4bb7efa7SGarrett D'Amore# If applicable, add the following below this CDDL HEADER, with the
16*4bb7efa7SGarrett D'Amore# fields enclosed by brackets "[]" replaced with your own identifying
17*4bb7efa7SGarrett D'Amore# information: Portions Copyright [yyyy] [name of copyright owner]
18*4bb7efa7SGarrett D'Amore#
19*4bb7efa7SGarrett D'Amore# CDDL HEADER END
20*4bb7efa7SGarrett D'Amore#
21*4bb7efa7SGarrett D'Amore
22*4bb7efa7SGarrett D'Amore#
23*4bb7efa7SGarrett D'Amore# Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
24*4bb7efa7SGarrett D'Amore# Use is subject to license terms.
25*4bb7efa7SGarrett D'Amore#
26*4bb7efa7SGarrett D'Amore
27*4bb7efa7SGarrett D'Amore#
28*4bb7efa7SGarrett D'Amore# uts/intel/sda/Makefile
29*4bb7efa7SGarrett D'Amore#
30*4bb7efa7SGarrett D'Amore#	This makefile drives the production of the sda "misc"
31*4bb7efa7SGarrett D'Amore#	kernel module.
32*4bb7efa7SGarrett D'Amore#
33*4bb7efa7SGarrett D'Amore#	intel architecture dependent
34*4bb7efa7SGarrett D'Amore#
35*4bb7efa7SGarrett D'Amore
36*4bb7efa7SGarrett D'Amore#
37*4bb7efa7SGarrett D'Amore#	Path to the base of the uts directory tree (usually /usr/src/uts).
38*4bb7efa7SGarrett D'Amore#
39*4bb7efa7SGarrett D'AmoreUTSBASE	= ../..
40*4bb7efa7SGarrett D'Amore
41*4bb7efa7SGarrett D'Amore#
42*4bb7efa7SGarrett D'Amore#	Define the module and object file sets.
43*4bb7efa7SGarrett D'Amore#
44*4bb7efa7SGarrett D'AmoreMODULE		= sda
45*4bb7efa7SGarrett D'AmoreOBJECTS		= $(SDA_OBJS:%=$(OBJS_DIR)/%)
46*4bb7efa7SGarrett D'AmoreLINTS		= $(SDA_OBJS:%.o=$(LINTS_DIR)/%.ln)
47*4bb7efa7SGarrett D'AmoreROOTMODULE	= $(ROOT_MISC_DIR)/$(MODULE)
48*4bb7efa7SGarrett D'AmoreWARLOCK_OUT	= $(SDA_OBJS:%.o=%.ll)
49*4bb7efa7SGarrett D'AmoreWARLOCK_OK	= $(MODULE).ok
50*4bb7efa7SGarrett D'Amore
51*4bb7efa7SGarrett D'Amore#
52*4bb7efa7SGarrett D'Amore#	Include common rules.
53*4bb7efa7SGarrett D'Amore#
54*4bb7efa7SGarrett D'Amoreinclude $(UTSBASE)/intel/Makefile.intel
55*4bb7efa7SGarrett D'Amore
56*4bb7efa7SGarrett D'Amore#
57*4bb7efa7SGarrett D'Amore#	Define targets
58*4bb7efa7SGarrett D'Amore#
59*4bb7efa7SGarrett D'AmoreALL_TARGET	= $(BINARY)
60*4bb7efa7SGarrett D'AmoreLINT_TARGET	= $(MODULE).lint
61*4bb7efa7SGarrett D'AmoreINSTALL_TARGET	= $(BINARY) $(ROOTMODULE)
62*4bb7efa7SGarrett D'Amore
63*4bb7efa7SGarrett D'Amore#
64*4bb7efa7SGarrett D'Amore#	Overrides.
65*4bb7efa7SGarrett D'Amore#
66*4bb7efa7SGarrett D'AmoreDEBUG_FLGS	=
67*4bb7efa7SGarrett D'AmoreDEBUG_DEFS	+= $(DEBUG_FLGS)
68*4bb7efa7SGarrett D'Amore
69*4bb7efa7SGarrett D'Amore#
70*4bb7efa7SGarrett D'Amore# lint pass one enforcement
71*4bb7efa7SGarrett D'Amore#
72*4bb7efa7SGarrett D'AmoreCFLAGS += $(CCVERBOSE)
73*4bb7efa7SGarrett D'Amore
74*4bb7efa7SGarrett D'Amore#
75*4bb7efa7SGarrett D'Amore# dependency on blk2scsa module, scope limiting mapfile
76*4bb7efa7SGarrett D'Amore# Note that we have to allow CTFMERGE to use fuzzy matching
77*4bb7efa7SGarrett D'Amore#
78*4bb7efa7SGarrett D'AmoreMAPFILE		= $(UTSBASE)/common/io/sdcard/impl/mapfile
79*4bb7efa7SGarrett D'AmoreLDFLAGS		+= -dy -Nmisc/blk2scsa -B reduce -M $(MAPFILE)
80*4bb7efa7SGarrett D'AmoreCTFMRGFLAGS	+= -f
81*4bb7efa7SGarrett D'Amore
82*4bb7efa7SGarrett D'Amore#
83*4bb7efa7SGarrett D'Amore#	Default build targets.
84*4bb7efa7SGarrett D'Amore#
85*4bb7efa7SGarrett D'Amore.KEEP_STATE:
86*4bb7efa7SGarrett D'Amore
87*4bb7efa7SGarrett D'Amoredef:		$(DEF_DEPS)
88*4bb7efa7SGarrett D'Amore
89*4bb7efa7SGarrett D'Amoreall:		$(ALL_DEPS)
90*4bb7efa7SGarrett D'Amore
91*4bb7efa7SGarrett D'Amoreclean:		$(CLEAN_DEPS)
92*4bb7efa7SGarrett D'Amore
93*4bb7efa7SGarrett D'Amoreclobber:	$(CLOBBER_DEPS)
94*4bb7efa7SGarrett D'Amore
95*4bb7efa7SGarrett D'Amorelint:		$(LINT_DEPS)
96*4bb7efa7SGarrett D'Amore
97*4bb7efa7SGarrett D'Amoremodlintlib:	$(MODLINTLIB_DEPS)
98*4bb7efa7SGarrett D'Amore
99*4bb7efa7SGarrett D'Amoreclean.lint:	$(CLEAN_LINT_DEPS)
100*4bb7efa7SGarrett D'Amore
101*4bb7efa7SGarrett D'Amoreinstall:	$(INSTALL_DEPS)
102*4bb7efa7SGarrett D'Amore
103*4bb7efa7SGarrett D'Amore#
104*4bb7efa7SGarrett D'Amore#	Include common targets.
105*4bb7efa7SGarrett D'Amore#
106*4bb7efa7SGarrett D'Amoreinclude $(UTSBASE)/intel/Makefile.targ
107*4bb7efa7SGarrett D'Amore
108*4bb7efa7SGarrett D'AmoreWLCC		= wlcc
109*4bb7efa7SGarrett D'AmoreTOUCH		= touch
110*4bb7efa7SGarrett D'AmoreWARLOCK		= warlock
111*4bb7efa7SGarrett D'Amore
112*4bb7efa7SGarrett D'Amorewarlock:	$(WARLOCK_OK)
113*4bb7efa7SGarrett D'Amore
114*4bb7efa7SGarrett D'Amore$(WARLOCK_OK):	$(WARLOCK_OUT)
115*4bb7efa7SGarrett D'Amore	$(TOUCH) $@
116*4bb7efa7SGarrett D'Amore
117*4bb7efa7SGarrett D'Amore%.ll:	$(UTSBASE)/common/io/sdcard/impl/%.c
118*4bb7efa7SGarrett D'Amore	$(WLCC) $(CPPFLAGS) -DDEBUG -o $@ $<
119