xref: /titanic_44/usr/src/uts/intel/sdbc/Makefile (revision 7014882c6a3672fd0e5d60200af8643ae53c5928)
1fcf3ce44SJohn Forte# CDDL HEADER START
2fcf3ce44SJohn Forte#
3fcf3ce44SJohn Forte# The contents of this file are subject to the terms of the
4fcf3ce44SJohn Forte# Common Development and Distribution License (the "License").
5fcf3ce44SJohn Forte# You may not use this file except in compliance with the License.
6fcf3ce44SJohn Forte#
7fcf3ce44SJohn Forte# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
8fcf3ce44SJohn Forte# or http://www.opensolaris.org/os/licensing.
9fcf3ce44SJohn Forte# See the License for the specific language governing permissions
10fcf3ce44SJohn Forte# and limitations under the License.
11fcf3ce44SJohn Forte#
12fcf3ce44SJohn Forte# When distributing Covered Code, include this CDDL HEADER in each
13fcf3ce44SJohn Forte# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
14fcf3ce44SJohn Forte# If applicable, add the following below this CDDL HEADER, with the
15fcf3ce44SJohn Forte# fields enclosed by brackets "[]" replaced with your own identifying
16fcf3ce44SJohn Forte# information: Portions Copyright [yyyy] [name of copyright owner]
17fcf3ce44SJohn Forte#
18fcf3ce44SJohn Forte# CDDL HEADER END
19fcf3ce44SJohn Forte#
20fcf3ce44SJohn Forte#
21fcf3ce44SJohn Forte# Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
22fcf3ce44SJohn Forte# Use is subject to license terms.
23fcf3ce44SJohn Forte#
24fcf3ce44SJohn Forte#
25fcf3ce44SJohn Forte# uts/intel/sdbc/Makefile
26fcf3ce44SJohn Forte#
27fcf3ce44SJohn Forte#       This makefile drives the production of the sdbc kernel module
28fcf3ce44SJohn Forte#
29fcf3ce44SJohn Forte#       intel implementation architecture dependent
30fcf3ce44SJohn Forte#
31fcf3ce44SJohn Forte
32fcf3ce44SJohn Forte#
33fcf3ce44SJohn Forte#       Path to the base of the uts directory tree (usually /usr/src/uts).
34fcf3ce44SJohn Forte#
35fcf3ce44SJohn Forte#
36fcf3ce44SJohn ForteUTSBASE = ../..
37fcf3ce44SJohn Forte
38fcf3ce44SJohn ForteARCHDIR:sh = cd ..; basename `pwd`
39fcf3ce44SJohn Forte
40fcf3ce44SJohn ForteUTSCOMMON = $(UTSBASE)/common
41fcf3ce44SJohn ForteAVSCOMMON = $(UTSCOMMON)/avs
42fcf3ce44SJohn Forte
43fcf3ce44SJohn Forte#
44fcf3ce44SJohn Forte#       Define the module and object file sets.
45fcf3ce44SJohn Forte#
46fcf3ce44SJohn ForteMODULE		= sdbc
47fcf3ce44SJohn ForteOBJECTS		= $(SDBC_OBJS:%=$(OBJS_DIR)/%)
48fcf3ce44SJohn ForteLINTS		= $(SDBC_OBJS:%.o=$(LINTS_DIR)/%.ln)
49fcf3ce44SJohn ForteROOTMODULE      = $(USR_DRV_DIR)/$(MODULE)
50fcf3ce44SJohn ForteINC_PATH	+= -I$(ROOT)/usr/include
51fcf3ce44SJohn ForteINC_PATH	+= -I$(AVSCOMMON)
52fcf3ce44SJohn ForteINC_PATH	+= -I$(AVSCOMMON)/ns/sdbc
53fcf3ce44SJohn ForteCONF_SRCDIR	= $(UTSBASE)/common/avs/ns/sdbc
54fcf3ce44SJohn Forte
55fcf3ce44SJohn Forte#
56fcf3ce44SJohn Forte#       Include common rules.
57fcf3ce44SJohn Forte#
58fcf3ce44SJohn Forteinclude ../Makefile.$(ARCHDIR)
59fcf3ce44SJohn Forteinclude $(UTSBASE)/common/avs/Makefile.com
60fcf3ce44SJohn Forte
61fcf3ce44SJohn ForteCLOBBERFILES += obj*/*.c debug*/*.c obj*/sd_mkiob debug*/sd_mkiob
62fcf3ce44SJohn Forte
63fcf3ce44SJohn Forte#
64fcf3ce44SJohn Forte#	Define targets
65fcf3ce44SJohn Forte#
66fcf3ce44SJohn ForteALL_TARGET	= $(BINARY) $(SRC_CONFILE)
67fcf3ce44SJohn ForteLINT_TARGET	= $(MODULE).lint
68fcf3ce44SJohn ForteINSTALL_TARGET	= $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
69fcf3ce44SJohn Forte
70fcf3ce44SJohn Forte#
71fcf3ce44SJohn Forte# lint pass one enforcement
72fcf3ce44SJohn Forte#
73*7014882cSRichard LoweCFLAGS += $(CCVERBOSE) -D_SD_8K_BLKSIZE -D_SDBC_SINGLE_BRD
74fcf3ce44SJohn ForteLDFLAGS += -dy -N"drv/nsctl" -N"drv/ncall" -N"drv/nskern" -N"misc/spuni"
75fcf3ce44SJohn ForteLINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
76fcf3ce44SJohn ForteLINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
77fcf3ce44SJohn Forte
78*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-parentheses
79*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-uninitialized
80*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-unused-label
81*7014882cSRichard Lowe
82fcf3ce44SJohn Forte.KEEP_STATE:
83fcf3ce44SJohn Forte
84fcf3ce44SJohn Fortedef:		$(DEF_DEPS)
85fcf3ce44SJohn Forte
86fcf3ce44SJohn Forteall:		$(ALL_DEPS)
87fcf3ce44SJohn Forte
88fcf3ce44SJohn Forteclean:		$(CLEAN_DEPS)
89fcf3ce44SJohn Forte
90fcf3ce44SJohn Forteclobber:	$(CLOBBER_DEPS)
91fcf3ce44SJohn Forte
92fcf3ce44SJohn Fortelint:		$(LINT_DEPS)
93fcf3ce44SJohn Forte
94fcf3ce44SJohn Fortemodlintlib:	$(MODLINTLIB_DEPS)
95fcf3ce44SJohn Forte
96fcf3ce44SJohn Forteclean.lint:	$(CLEAN_LINT_DEPS)
97fcf3ce44SJohn Forte
98fcf3ce44SJohn Forteinstall:	$(INSTALL_DEPS)
99fcf3ce44SJohn Forte
100fcf3ce44SJohn Forte$(OBJS_DIR)/sd_mkiob:		$(UTSBASE)/common/avs/ns/sdbc/sd_mkiob.sh
101fcf3ce44SJohn Forte	$(CP) $(UTSBASE)/common/avs/ns/sdbc/sd_mkiob.sh $@
102fcf3ce44SJohn Forte	$(CHMOD) 755 $@
103fcf3ce44SJohn Forte
104fcf3ce44SJohn Forte$(OBJS_DIR)/sd_iob_impl0.c:	$(UTSBASE)/common/avs/ns/sdbc/sd_iob.h \
105fcf3ce44SJohn Forte				$(OBJS_DIR)/sd_mkiob
106fcf3ce44SJohn Forte	$(OBJS_DIR)/sd_mkiob 0 512 $(AVSCOMMON)/ns/sdbc/sd_iob.h > $@
107fcf3ce44SJohn Forte
108fcf3ce44SJohn Forte$(OBJS_DIR)/sd_iob_impl1.c:	$(UTSBASE)/common/avs/ns/sdbc/sd_iob.h \
109fcf3ce44SJohn Forte				$(OBJS_DIR)/sd_mkiob
110fcf3ce44SJohn Forte	$(OBJS_DIR)/sd_mkiob 512 1024 $(AVSCOMMON)/ns/sdbc/sd_iob.h > $@
111fcf3ce44SJohn Forte
112fcf3ce44SJohn Forte$(OBJS_DIR)/sd_iob_impl2.c:	$(UTSBASE)/common/avs/ns/sdbc/sd_iob.h \
113fcf3ce44SJohn Forte				$(OBJS_DIR)/sd_mkiob
114fcf3ce44SJohn Forte	$(OBJS_DIR)/sd_mkiob 1024 1536 $(AVSCOMMON)/ns/sdbc/sd_iob.h > $@
115fcf3ce44SJohn Forte
116fcf3ce44SJohn Forte$(OBJS_DIR)/sd_iob_impl3.c:	$(UTSBASE)/common/avs/ns/sdbc/sd_iob.h \
117fcf3ce44SJohn Forte				$(OBJS_DIR)/sd_mkiob
118fcf3ce44SJohn Forte	$(OBJS_DIR)/sd_mkiob 1536 2048 $(AVSCOMMON)/ns/sdbc/sd_iob.h > $@
119fcf3ce44SJohn Forte
120fcf3ce44SJohn Forte$(OBJS_DIR)/sd_iob_impl4.c:	$(UTSBASE)/common/avs/ns/sdbc/sd_iob.h \
121fcf3ce44SJohn Forte				$(OBJS_DIR)/sd_mkiob
122fcf3ce44SJohn Forte	$(OBJS_DIR)/sd_mkiob 2048 2560 $(AVSCOMMON)/ns/sdbc/sd_iob.h > $@
123fcf3ce44SJohn Forte
124fcf3ce44SJohn Forte$(OBJS_DIR)/sd_iob_impl5.c:	$(UTSBASE)/common/avs/ns/sdbc/sd_iob.h \
125fcf3ce44SJohn Forte				$(OBJS_DIR)/sd_mkiob
126fcf3ce44SJohn Forte	$(OBJS_DIR)/sd_mkiob 2560 3072 $(AVSCOMMON)/ns/sdbc/sd_iob.h > $@
127fcf3ce44SJohn Forte
128fcf3ce44SJohn Forte$(OBJS_DIR)/sd_iob_impl6.c:	$(UTSBASE)/common/avs/ns/sdbc/sd_iob.h \
129fcf3ce44SJohn Forte				$(OBJS_DIR)/sd_mkiob
130fcf3ce44SJohn Forte	$(OBJS_DIR)/sd_mkiob 3072 3584 $(AVSCOMMON)/ns/sdbc/sd_iob.h > $@
131fcf3ce44SJohn Forte
132fcf3ce44SJohn Forte$(OBJS_DIR)/sd_iob_impl7.c:	$(UTSBASE)/common/avs/ns/sdbc/sd_iob.h \
133fcf3ce44SJohn Forte				$(OBJS_DIR)/sd_mkiob
134fcf3ce44SJohn Forte	$(OBJS_DIR)/sd_mkiob 3584 9999 $(AVSCOMMON)/ns/sdbc/sd_iob.h > $@
135fcf3ce44SJohn Forte
136fcf3ce44SJohn Forte$(OBJS_DIR)/sd_iob_impl0.o:	$(OBJS_DIR)/sd_iob_impl0.c
137fcf3ce44SJohn Forte	$(COMPILE.c) -o $@ $(OBJS_DIR)/sd_iob_impl0.c
138fcf3ce44SJohn Forte	$(POST_PROCESS_O)
139fcf3ce44SJohn Forte
140fcf3ce44SJohn Forte$(OBJS_DIR)/sd_iob_impl1.o:	$(OBJS_DIR)/sd_iob_impl1.c
141fcf3ce44SJohn Forte	$(COMPILE.c) -o $@ $(OBJS_DIR)/sd_iob_impl1.c
142fcf3ce44SJohn Forte	$(POST_PROCESS_O)
143fcf3ce44SJohn Forte
144fcf3ce44SJohn Forte$(OBJS_DIR)/sd_iob_impl2.o:	$(OBJS_DIR)/sd_iob_impl2.c
145fcf3ce44SJohn Forte	$(COMPILE.c) -o $@ $(OBJS_DIR)/sd_iob_impl2.c
146fcf3ce44SJohn Forte	$(POST_PROCESS_O)
147fcf3ce44SJohn Forte
148fcf3ce44SJohn Forte$(OBJS_DIR)/sd_iob_impl3.o:	$(OBJS_DIR)/sd_iob_impl3.c
149fcf3ce44SJohn Forte	$(COMPILE.c) -o $@ $(OBJS_DIR)/sd_iob_impl3.c
150fcf3ce44SJohn Forte	$(POST_PROCESS_O)
151fcf3ce44SJohn Forte
152fcf3ce44SJohn Forte$(OBJS_DIR)/sd_iob_impl4.o:	$(OBJS_DIR)/sd_iob_impl4.c
153fcf3ce44SJohn Forte	$(COMPILE.c) -o $@ $(OBJS_DIR)/sd_iob_impl4.c
154fcf3ce44SJohn Forte	$(POST_PROCESS_O)
155fcf3ce44SJohn Forte
156fcf3ce44SJohn Forte$(OBJS_DIR)/sd_iob_impl5.o:	$(OBJS_DIR)/sd_iob_impl5.c
157fcf3ce44SJohn Forte	$(COMPILE.c) -o $@ $(OBJS_DIR)/sd_iob_impl5.c
158fcf3ce44SJohn Forte	$(POST_PROCESS_O)
159fcf3ce44SJohn Forte
160fcf3ce44SJohn Forte$(OBJS_DIR)/sd_iob_impl6.o:	$(OBJS_DIR)/sd_iob_impl6.c
161fcf3ce44SJohn Forte	$(COMPILE.c) -o $@ $(OBJS_DIR)/sd_iob_impl6.c
162fcf3ce44SJohn Forte	$(POST_PROCESS_O)
163fcf3ce44SJohn Forte
164fcf3ce44SJohn Forte$(OBJS_DIR)/sd_iob_impl7.o:	$(OBJS_DIR)/sd_iob_impl7.c
165fcf3ce44SJohn Forte	$(COMPILE.c) -o $@ $(OBJS_DIR)/sd_iob_impl7.c
166fcf3ce44SJohn Forte	$(POST_PROCESS_O)
167fcf3ce44SJohn Forte
168fcf3ce44SJohn Forte
169fcf3ce44SJohn Forte#
170fcf3ce44SJohn Forte#	Include common targets.
171fcf3ce44SJohn Forte#
172fcf3ce44SJohn Forteinclude ../Makefile.targ
173