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