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 22# 23# Copyright 2005 Sun Microsystems, Inc. All rights reserved. 24# Use is subject to license terms. 25# 26# ident "%Z%%M% %I% %E% SMI" 27# 28 29# This makefile drives the production of the fas driver kernel module. 30# 31# sparc architecture dependent 32# 33# uts/sparc/warlock/Makefile 34# 35# Path to the base of the uts directory tree (usually /usr/src/uts). 36# 37UTSBASE = ../.. 38 39# 40# Define the module and object file sets. 41# 42MODULE = warlock 43ROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE) 44 45.KEEP_STATE: 46 47CFLAGS += -I../../common/sys -I../../sun/sys/scsi -D_KERNEL 48# 49# Defines for local commands. 50# 51WARLOCK = warlock 52WLCC = wlcc 53TOUCH = touch 54SCCS = sccs 55TEST = test 56 57include $(UTSBASE)/sparc/Makefile.sparc 58 59# 60# lock_lint rules 61# 62all: warlock warlock.1394 warlock.audio warlock.ecpp warlock.scsi \ 63 warlock.smartcard warlock.usb warlock.ib warlock.sata 64 65warlock: $(MODULE).ok 66 67warlock.ok: ddi_dki_impl.ll scsi.ll 68 $(TOUCH) $@ 69 70%.ll: $(UTSBASE)/common/io/warlock/%.c 71 $(WLCC) $(CPPFLAGS) -DDEBUG -o $@ $< 72 73warlock.usb: 74 @cd ../usba; rm -f *.ll *.ok; $(MAKE) warlock 75 @cd ../ohci; rm -f *.ll *.ok; $(MAKE) warlock 76 @cd ../uhci; rm -f *.ll *.ok; $(MAKE) warlock 77 @cd ../ehci; rm -f *.ll *.ok; $(MAKE) warlock 78 @cd ../hid; rm -f *.ll *.ok; $(MAKE) warlock 79 @cd ../scsa2usb; rm -f *.ll *.ok; $(MAKE) warlock 80 @cd ../usb_ac; rm -f *.ll *.ok; $(MAKE) warlock 81 @cd ../usb_as; rm -f *.ll *.ok; $(MAKE) warlock 82 @cd ../usb_ah; rm -f *.ll *.ok; $(MAKE) warlock 83 @cd ../ugen; rm -f *.ll *.ok; $(MAKE) warlock 84 @cd ../usb_mid; rm -f *.ll *.ok; $(MAKE) warlock 85 @cd ../usbprn; rm -f *.ll *.ok; $(MAKE) warlock 86 @cd ../usbser; rm -f *.ll *.ok; $(MAKE) warlock 87 @cd $(CLOSED)/uts/sparc/usbser_edge; rm -f *.ll *.ok; $(MAKE) warlock 88 @cd ../usbsksp; rm -f *.ll *.ok; $(MAKE) warlock 89 @cd ../usbsprl; rm -f *.ll *.ok; $(MAKE) warlock 90 @cd ../usbskel; rm -f *.ll *.ok; $(MAKE) warlock 91 92warlock.scsi: 93 @cd $(CLOSED)/uts/sparc/dad; rm -f *.ll *.ok; $(MAKE) warlock 94 @cd ../dada; rm -f *.ll *.ok; $(MAKE) warlock 95 @cd ../esp; rm -f *.ll *.ok; $(MAKE) warlock 96 @cd ../fas; rm -f *.ll *.ok; $(MAKE) warlock 97 @cd $(CLOSED)/uts/sparc/glm; rm -f *.ll *.ok; $(MAKE) warlock 98 @cd $(CLOSED)/uts/sparc/ifp; rm -f *.ll *.ok; $(MAKE) warlock 99 @cd $(CLOSED)/uts/sparc/isp; rm -f *.ll *.ok; $(MAKE) warlock 100 @cd ../sd; rm -f *.ll *.ok; $(MAKE) warlock 101 @cd ../ses; rm -f *.ll *.ok; $(MAKE) warlock 102 @cd ../st; rm -f *.ll *.ok; $(MAKE) warlock 103 @cd ../ssd; rm -f *.ll *.ok; $(MAKE) warlock 104 @cd $(CLOSED)/uts/sparc/uata; rm -f *.ll *.ok; $(MAKE) warlock 105 106warlock.1394: 107 @cd ../s1394; rm -f *.ll *.ok; $(MAKE) warlock 108 @cd ../hci1394; rm -f *.ll *.ok; $(MAKE) warlock 109 @cd ../scsa1394; rm -f *.ll *.ok; $(MAKE) warlock 110 111warlock.ecpp: 112 @cd ../ecpp; rm -f *.ll *.ok; $(MAKE) warlock 113 114warlock.audio: 115 @cd ../audiosup; rm -f *.ll *.ok; $(MAKE) warlock 116 @cd ../mixer; rm -f *.ll *.ok; $(MAKE) warlock 117 @cd $(CLOSED)/uts/sparc/amsrc1; rm -f *.ll *.ok; $(MAKE) warlock 118 @cd ../amsrc2; rm -f *.ll *.ok; $(MAKE) warlock 119 @cd ../audio1575; rm -f *.ll *.ok; $(MAKE) warlock 120 @cd ../audio810; rm -f *.ll *.ok; $(MAKE) warlock 121 @cd $(CLOSED)/uts/sparc/audiovia823x; rm -f *.ll *.ok; $(MAKE) warlock 122 @cd ../audiocs; rm -f *.ll *.ok; $(MAKE) warlock 123 @cd $(CLOSED)/uts/sparc/audioens; rm -f *.ll *.ok; $(MAKE) warlock 124 @cd ../audiots; rm -f *.ll *.ok; $(MAKE) warlock 125 @cd ../usb_ac; rm -f *.ll *.ok; $(MAKE) warlock 126 @cd ../usb_as; rm -f *.ll *.ok; $(MAKE) warlock 127 @cd ../usb_ah; rm -f *.ll *.ok; $(MAKE) warlock 128 129warlock.smartcard: 130 @cd $(CLOSED)/uts/sun4u/scmi2c; rm -f *.ll *.ok; $(MAKE) warlock 131 132warlock.ib: 133 @cd ../ibmf; rm -f *.ll *.ok; $(MAKE) warlock 134 @cd $(CLOSED)/uts/sparc/tavor; rm -f *.ll *.ok; $(MAKE) warlock 135 @cd ../ib; rm -f *.ll *.ok; $(MAKE) warlock 136 @cd ../ibtl; rm -f *.ll *.ok; $(MAKE) warlock 137 @cd ../ibcm; rm -f *.ll *.ok; $(MAKE) warlock 138 @cd ../ibd; rm -f *.ll *.ok; $(MAKE) warlock 139 140warlock.sata: 141 @cd ../sata; rm -f *.ll *.ok; $(MAKE) warlock 142 @cd ../si3124; rm -f *.ll *.ok; $(MAKE) warlock 143