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