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