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# Copyright 2004 Sun Microsystems, Inc. All rights reserved. 24# Use is subject to license terms. 25# 26# uts/sparc/usb_ah/Makefile 27# 28# This makefile drives the production of the usb_ah streams module. 29# sparc architecture dependent 30# 31 32#pragma ident "%Z%%M% %I% %E% SMI" 33 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 = usb_ah 43OBJECTS = $(USB_AH_OBJS:%=$(OBJS_DIR)/%) 44LINTS = $(USB_AH_OBJS:%.o=$(LINTS_DIR)/%.ln) 45ROOTMODULE = $(ROOT_STRMOD_DIR)/$(MODULE) 46WARLOCK_OUT = $(USB_AH_OBJS:%.o=%.ll) 47WARLOCK_OK = $(MODULE).ok 48 49# 50# Include common rules. 51# 52include $(UTSBASE)/sparc/Makefile.sparc 53 54# 55# lint pass one enforcement 56# 57CFLAGS += $(CCVERBOSE) 58 59# 60# depends on usba, hidparser and mixer related misc modules 61# 62LDFLAGS += -dy -Nmisc/usba -Nmisc/hidparser -Nmisc/audiosup -Nmisc/mixer 63 64# 65# Define targets 66# 67ALL_TARGET = $(BINARY) 68LINT_TARGET = $(MODULE).lint 69INSTALL_TARGET = $(BINARY) $(ROOTMODULE) 70 71.KEEP_STATE: 72 73all: $(ALL_DEPS) 74 75def: $(DEF_DEPS) 76 77clean: $(CLEAN_DEPS) 78 79clobber: $(CLOBBER_DEPS) 80 81lint: $(LINT_DEPS) 82 83modlintlib: $(MODLINTLIB_DEPS) 84 85clean.lint: $(CLEAN_LINT_DEPS) 86 87install: $(INSTALL_DEPS) 88 89 90# 91# Include common targets. 92# 93include $(UTSBASE)/sparc/Makefile.targ 94 95# 96# Defines for local commands. 97# 98WARLOCK = warlock 99WLCC = wlcc 100TOUCH = touch 101SCCS = sccs 102TEST = test 103 104# 105# lock_lint rules 106# 107USB_AH_FILES = $(MODULE).ll 108 109warlock: $(MODULE).ok 110 111%.wlcmd: 112 $(TEST) -f $@ || $(SCCS) get $@ 113 114usb_ah.ok: usb_ah.ll usb_ah.wlcmd warlock_ddi.files 115 $(WARLOCK) -c usb_ah.wlcmd $(USB_AH_FILES) \ 116 -l ../warlock/ddi_dki_impl.ll 117 $(TOUCH) $@ 118 119%.ll: $(UTSBASE)/common/io/usb/clients/audio/usb_ah/%.c \ 120 $(UTSBASE)/common/sys/usb/clients/audio/usb_ah/usb_ah.h 121 $(WLCC) $(CPPFLAGS) -DDEBUG -o $@ $< 122 123warlock_ddi.files: 124 cd ../warlock; pwd; $(MAKE) warlock 125 126