xref: /titanic_52/usr/src/uts/sparc/warlock/Makefile (revision b9bd317cda1afb3a01f4812de73e8cec888cbbd7)
1#
2# CDDL HEADER START
3#
4# The contents of this file are subject to the terms of the
5# Common Development and Distribution License (the "License").
6# You may not use this file except in compliance with the License.
7#
8# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9# or http://www.opensolaris.org/os/licensing.
10# See the License for the specific language governing permissions
11# and limitations under the License.
12#
13# When distributing Covered Code, include this CDDL HEADER in each
14# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15# If applicable, add the following below this CDDL HEADER, with the
16# fields enclosed by brackets "[]" replaced with your own identifying
17# information: Portions Copyright [yyyy] [name of copyright owner]
18#
19# CDDL HEADER END
20#
21# Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
22# Use is subject to license terms.
23#
24# ident	"%Z%%M%	%I%	%E% SMI"
25#
26#	sparc architecture dependent
27#
28# uts/sparc/warlock/Makefile
29#
30#	Path to the base of the uts directory tree (usually /usr/src/uts).
31#
32UTSBASE = ../..
33
34#
35#	Define the module and object file sets.
36#
37MODULE		= warlock
38ROOTMODULE	= $(ROOT_DRV_DIR)/$(MODULE)
39
40.KEEP_STATE:
41
42CFLAGS += -I../../common/sys -I../../sun/sys/scsi -D_KERNEL
43#
44#	Defines for local commands.
45#
46WARLOCK		= warlock
47WLCC		= wlcc
48TOUCH		= touch
49TEST		= test
50
51include $(UTSBASE)/sparc/Makefile.sparc
52
53#
54#	lock_lint rules
55#
56all:	warlock warlock.1394 warlock.audio warlock.ecpp warlock.scsi \
57	warlock.smartcard warlock.usb warlock.ib warlock.sata
58
59warlock: $(MODULE).ok
60
61warlock.ok: ddi_dki_impl.ll scsi.ll
62	$(TOUCH) $@
63
64%.ll: $(UTSBASE)/common/io/warlock/%.c
65	$(WLCC) $(CPPFLAGS) -DDEBUG -o $@ $<
66
67warlock.usb:
68	@cd ../usba; $(MAKE) clean; $(MAKE) warlock
69	@cd ../ohci; $(MAKE) clean; $(MAKE) warlock
70	@cd ../uhci; $(MAKE) clean; $(MAKE) warlock
71	@cd ../ehci; $(MAKE) clean; $(MAKE) warlock
72	@cd ../hid; $(MAKE) clean; $(MAKE) warlock
73	@cd ../scsa2usb; $(MAKE) clean; $(MAKE) warlock
74	@cd ../usb_ac; $(MAKE) clean; $(MAKE) warlock
75	@cd ../usb_as; $(MAKE) clean; $(MAKE) warlock
76	@cd ../usb_ah; $(MAKE) clean; $(MAKE) warlock
77	@cd ../ugen; $(MAKE) clean; $(MAKE) warlock
78	@cd ../usb_mid; $(MAKE) clean; $(MAKE) warlock
79	@cd ../usb_ia; $(MAKE) clean; $(MAKE) warlock
80	@cd ../usbprn; $(MAKE) clean; $(MAKE) warlock
81	@cd ../usbser; $(MAKE) clean; $(MAKE) warlock
82	@cd ../usbsksp; $(MAKE) clean; $(MAKE) warlock
83	@cd ../usbsprl; $(MAKE) clean; $(MAKE) warlock
84	@cd ../usbsacm; $(MAKE) clean; $(MAKE) warlock
85	@cd ../usbskel; $(MAKE) clean; $(MAKE) warlock
86$(CLOSED_BUILD)	@cd $(CLOSED)/uts/sparc/usbser_edge; \
87		$(MAKE) clean; $(MAKE) warlock
88
89warlock.scsi:
90	@cd ../dad; $(MAKE) clean; $(MAKE) warlock
91	@cd ../dada; $(MAKE) clean; $(MAKE) warlock
92	@cd ../esp; $(MAKE) clean; $(MAKE) warlock
93	@cd ../fas; $(MAKE) clean; $(MAKE) warlock
94	@cd ../sd; $(MAKE) clean; $(MAKE) warlock
95	@cd ../ses; $(MAKE) clean; $(MAKE) warlock
96	@cd ../st; $(MAKE) clean; $(MAKE) warlock
97	@cd ../ssd; $(MAKE) clean; $(MAKE) warlock
98$(CLOSED_BUILD)	@cd $(CLOSED)/uts/sparc/uata; $(MAKE) clean; $(MAKE) warlock
99$(CLOSED_BUILD)	@cd $(CLOSED)/uts/sparc/glm; $(MAKE) clean; $(MAKE) warlock
100$(CLOSED_BUILD)	@cd $(CLOSED)/uts/sparc/mpt; $(MAKE) clean; $(MAKE) warlock
101$(CLOSED_BUILD)	@cd $(CLOSED)/uts/sparc/ifp; $(MAKE) clean; $(MAKE) warlock
102$(CLOSED_BUILD)	@cd $(CLOSED)/uts/sparc/isp; $(MAKE) clean; $(MAKE) warlock
103
104warlock.1394:
105	@cd ../s1394; $(MAKE) clean; $(MAKE) warlock
106	@cd ../hci1394; $(MAKE) clean; $(MAKE) warlock
107	@cd ../scsa1394; $(MAKE) clean; $(MAKE) warlock
108	@cd ../av1394; $(MAKE) clean; $(MAKE) warlock
109
110warlock.ecpp:
111	@cd ../ecpp; $(MAKE) clean; $(MAKE) warlock
112
113warlock.audio:
114	@cd ../audiosup; $(MAKE) clean; $(MAKE) warlock
115	@cd ../mixer; $(MAKE) clean; $(MAKE) warlock
116	@cd ../amsrc2; $(MAKE) clean; $(MAKE) warlock
117	@cd ../audio1575; $(MAKE) clean; $(MAKE) warlock
118	@cd ../audio810; $(MAKE) clean; $(MAKE) warlock
119	@cd ../audiohd; $(MAKE) clean; $(MAKE) warlock
120	@cd ../audioixp; $(MAKE) clean; $(MAKE) warlock
121	@cd ../audiocs; $(MAKE) clean; $(MAKE) warlock
122	@cd ../audiots; $(MAKE) clean; $(MAKE) warlock
123	@cd ../usb_ac; $(MAKE) clean; $(MAKE) warlock
124	@cd ../usb_as; $(MAKE) clean; $(MAKE) warlock
125	@cd ../usb_ah; $(MAKE) clean; $(MAKE) warlock
126$(CLOSED_BUILD)	@cd $(CLOSED)/uts/sparc/amsrc1; $(MAKE) clean; $(MAKE) warlock
127$(CLOSED_BUILD)	@cd $(CLOSED)/uts/sparc/audiovia823x; \
128		$(MAKE) clean; $(MAKE) warlock
129$(CLOSED_BUILD)	@cd $(CLOSED)/uts/sparc/audioens; $(MAKE) clean; $(MAKE) warlock
130
131warlock.smartcard:
132$(CLOSED_BUILD)	@cd $(CLOSED)/uts/sun4u/scmi2c; $(MAKE) clean; $(MAKE) warlock
133
134warlock.ib:
135	@cd ../ibmf; $(MAKE) clean; $(MAKE) warlock
136	@cd ../ib; $(MAKE) clean; $(MAKE) warlock
137	@cd ../ibtl; $(MAKE) clean; $(MAKE) warlock
138	@cd ../ibcm; $(MAKE) clean; $(MAKE) warlock
139	@cd ../ibd; $(MAKE) clean; $(MAKE) warlock
140$(CLOSED_BUILD)	@cd $(CLOSED)/uts/sparc/tavor; $(MAKE) clean; $(MAKE) warlock
141$(CLOSED_BUILD)	@cd $(CLOSED)/uts/sparc/daplt; $(MAKE) clean; $(MAKE) warlock
142
143warlock.sata:
144	@cd ../sata; $(MAKE) clean; $(MAKE) warlock
145	@cd ../si3124; $(MAKE) clean; $(MAKE) warlock
146	@cd ../ahci; $(MAKE) clean; $(MAKE) warlock
147	@cd ../nv_sata; $(MAKE) clean; $(MAKE) warlock
148$(CLOSED_BUILD)	@cd $(CLOSED)/uts/sparc/marvell88sx; \
149		$(MAKE) clean; $(MAKE) warlock
150