xref: /titanic_41/usr/src/uts/sparc/warlock/Makefile (revision 9404882939d18ddd3c94a5bd3da7a0449c195a5d)
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
49SCCS		= sccs
50TEST		= test
51
52include $(UTSBASE)/sparc/Makefile.sparc
53
54#
55#	lock_lint rules
56#
57all:	warlock warlock.1394 warlock.audio warlock.ecpp warlock.scsi \
58	warlock.smartcard warlock.usb warlock.ib warlock.sata
59
60warlock: $(MODULE).ok
61
62warlock.ok: ddi_dki_impl.ll scsi.ll
63	$(TOUCH) $@
64
65%.ll: $(UTSBASE)/common/io/warlock/%.c
66	$(WLCC) $(CPPFLAGS) -DDEBUG -o $@ $<
67
68warlock.usb:
69	@cd ../usba; make clean; $(MAKE) warlock
70	@cd ../ohci; make clean; $(MAKE) warlock
71	@cd ../uhci; make clean; $(MAKE) warlock
72	@cd ../ehci; make clean; $(MAKE) warlock
73	@cd ../hid; make clean; $(MAKE) warlock
74	@cd ../scsa2usb; make clean; $(MAKE) warlock
75	@cd ../usb_ac; make clean; $(MAKE) warlock
76	@cd ../usb_as; make clean; $(MAKE) warlock
77	@cd ../usb_ah; make clean; $(MAKE) warlock
78	@cd ../ugen; make clean; $(MAKE) warlock
79	@cd ../usb_mid; make clean; $(MAKE) warlock
80	@cd ../usb_ia; make clean; $(MAKE) warlock
81	@cd ../usbprn; make clean; $(MAKE) warlock
82	@cd ../usbser; make clean; $(MAKE) warlock
83	@cd ../usbsksp; make clean; $(MAKE) warlock
84	@cd ../usbsprl; make clean; $(MAKE) warlock
85	@cd ../usbsacm; make clean; $(MAKE) warlock
86	@cd ../usbskel; make clean; $(MAKE) warlock
87$(CLOSED_BUILD)	@cd $(CLOSED)/uts/sparc/usbser_edge; \
88		make clean; $(MAKE) warlock
89
90warlock.scsi:
91	@cd ../dad; make clean; $(MAKE) warlock
92	@cd ../dada; make clean; $(MAKE) warlock
93	@cd ../esp; make clean; $(MAKE) warlock
94	@cd ../fas; make clean; $(MAKE) warlock
95	@cd ../sd; make clean; $(MAKE) warlock
96	@cd ../ses; make clean; $(MAKE) warlock
97	@cd ../st; make clean; $(MAKE) warlock
98	@cd ../ssd; make clean; $(MAKE) warlock
99$(CLOSED_BUILD)	@cd $(CLOSED)/uts/sparc/uata; make clean; $(MAKE) warlock
100$(CLOSED_BUILD)	@cd $(CLOSED)/uts/sparc/glm; make clean; $(MAKE) warlock
101$(CLOSED_BUILD)	@cd $(CLOSED)/uts/sparc/mpt; make clean; $(MAKE) warlock
102$(CLOSED_BUILD)	@cd $(CLOSED)/uts/sparc/ifp; make clean; $(MAKE) warlock
103$(CLOSED_BUILD)	@cd $(CLOSED)/uts/sparc/isp; make clean; $(MAKE) warlock
104
105warlock.1394:
106	@cd ../s1394; make clean; $(MAKE) warlock
107	@cd ../hci1394; make clean; $(MAKE) warlock
108	@cd ../scsa1394; make clean; $(MAKE) warlock
109	@cd ../av1394; make clean; $(MAKE) warlock
110
111warlock.ecpp:
112	@cd ../ecpp; make clean; $(MAKE) warlock
113
114warlock.audio:
115	@cd ../audiosup; make clean; $(MAKE) warlock
116	@cd ../mixer; make clean; $(MAKE) warlock
117	@cd ../amsrc2; make clean; $(MAKE) warlock
118	@cd ../audio1575; make clean; $(MAKE) warlock
119	@cd ../audio810; make clean; $(MAKE) warlock
120	@cd ../audiohd; make clean; $(MAKE) warlock
121	@cd ../audioixp; make clean; $(MAKE) warlock
122	@cd ../audiocs; make clean; $(MAKE) warlock
123	@cd ../audiots; make clean; $(MAKE) warlock
124	@cd ../usb_ac; make clean; $(MAKE) warlock
125	@cd ../usb_as; make clean; $(MAKE) warlock
126	@cd ../usb_ah; make clean; $(MAKE) warlock
127$(CLOSED_BUILD)	@cd $(CLOSED)/uts/sparc/amsrc1; make clean; $(MAKE) warlock
128$(CLOSED_BUILD)	@cd $(CLOSED)/uts/sparc/audiovia823x; \
129		make clean; $(MAKE) warlock
130$(CLOSED_BUILD)	@cd $(CLOSED)/uts/sparc/audioens; make clean; $(MAKE) warlock
131
132warlock.smartcard:
133$(CLOSED_BUILD)	@cd $(CLOSED)/uts/sun4u/scmi2c; make clean; $(MAKE) warlock
134
135warlock.ib:
136	@cd ../ibmf; make clean; $(MAKE) warlock
137	@cd ../ib; make clean; $(MAKE) warlock
138	@cd ../ibtl; make clean; $(MAKE) warlock
139	@cd ../ibcm; make clean; $(MAKE) warlock
140	@cd ../ibd; make clean; $(MAKE) warlock
141$(CLOSED_BUILD)	@cd $(CLOSED)/uts/sparc/tavor; make clean; $(MAKE) warlock
142$(CLOSED_BUILD)	@cd $(CLOSED)/uts/sparc/daplt; make clean; $(MAKE) warlock
143
144warlock.sata:
145	@cd ../sata; make clean; $(MAKE) warlock
146	@cd ../si3124; make clean; $(MAKE) warlock
147	@cd ../ahci; make clean; $(MAKE) warlock
148$(CLOSED_BUILD)	@cd $(CLOSED)/uts/sparc/marvell88sx; \
149		make clean; $(MAKE) warlock
150