13227Syq193411# 23227Syq193411# CDDL HEADER START 33227Syq193411# 43227Syq193411# The contents of this file are subject to the terms of the 53227Syq193411# Common Development and Distribution License (the "License"). 63227Syq193411# You may not use this file except in compliance with the License. 73227Syq193411# 83227Syq193411# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 93227Syq193411# or http://www.opensolaris.org/os/licensing. 103227Syq193411# See the License for the specific language governing permissions 113227Syq193411# and limitations under the License. 123227Syq193411# 133227Syq193411# When distributing Covered Code, include this CDDL HEADER in each 143227Syq193411# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 153227Syq193411# If applicable, add the following below this CDDL HEADER, with the 163227Syq193411# fields enclosed by brackets "[]" replaced with your own identifying 173227Syq193411# information: Portions Copyright [yyyy] [name of copyright owner] 183227Syq193411# 193227Syq193411# CDDL HEADER END 203227Syq193411# 213227Syq193411# 223227Syq193411# uts/intel/usbsacm/Makefile 23*7492SZhigang.Lu@Sun.COM# Copyright 2008 Sun Microsystems, Inc. All rights reserved. 243227Syq193411# Use is subject to license terms. 253227Syq193411# 263227Syq193411# 273227Syq193411# This makefile drives the production of Abstract Control Model of 283227Syq193411# USB Communication Devices Class dirver. 293227Syq193411# 303227Syq193411# Path to the base of the uts directory tree (usually /usr/src/uts). 313227Syq193411# 323227Syq193411UTSBASE = ../.. 333227Syq193411 343227Syq193411# 353227Syq193411# Define the module and object file sets. 363227Syq193411# 373227Syq193411MODULE = usbsacm 383227Syq193411OBJECTS = $(USBSACM_OBJS:%=$(OBJS_DIR)/%) 393227Syq193411LINTS = $(USBSACM_OBJS:%.o=$(LINTS_DIR)/%.ln) 403227Syq193411ROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE) 413227Syq193411WARLOCK_OUT = $(USBSACM_OBJS:%.o=%.ll) 423227Syq193411WARLOCK_OK = $(MODULE).ok 433227Syq193411WLCMD_DIR = $(UTSBASE)/common/io/warlock 443227Syq193411 453227Syq193411# 463227Syq193411# Include common rules. 473227Syq193411# 483227Syq193411include $(UTSBASE)/intel/Makefile.intel 493227Syq193411 503227Syq193411LDFLAGS += -dy -Nmisc/usba -Nmisc/usbser 513227Syq193411 523227Syq193411# 533227Syq193411# Define targets 543227Syq193411# 553227Syq193411ALL_TARGET = $(BINARY) 563227Syq193411LINT_TARGET = $(MODULE).lint 573227Syq193411INSTALL_TARGET = $(BINARY) $(ROOTMODULE) 583227Syq193411 593227Syq193411.KEEP_STATE: 603227Syq193411 613227Syq193411all: $(ALL_DEPS) 623227Syq193411 633227Syq193411def: $(DEF_DEPS) 643227Syq193411 653227Syq193411clean: $(CLEAN_DEPS) 663227Syq193411 $(RM) $(WARLOCK_OUT) $(WARLOCK_OK) 673227Syq193411 683227Syq193411clobber: $(CLOBBER_DEPS) 693227Syq193411 $(RM) $(WARLOCK_OUT) $(WARLOCK_OK) 703227Syq193411 713227Syq193411lint: $(LINT_DEPS) 723227Syq193411 733227Syq193411modlintlib: $(MODLINTLIB_DEPS) 743227Syq193411 753227Syq193411clean.lint: $(CLEAN_LINT_DEPS) 763227Syq193411 773227Syq193411install: $(INSTALL_DEPS) 783227Syq193411 793227Syq193411# 803227Syq193411# Include common targets. 813227Syq193411# 823227Syq193411include $(UTSBASE)/intel/Makefile.targ 833227Syq193411 843227Syq193411# 853227Syq193411# Defines for local commands. 863227Syq193411# 873227Syq193411WLCC = wlcc 883227Syq193411TOUCH = touch 893227Syq193411WARLOCK = warlock 903227Syq193411TEST = test 913227Syq193411 923227Syq193411# 933227Syq193411# warlock 943227Syq193411# 954604SstevelWARLOCK_CMD = $(WLCMD_DIR)/$(MODULE).wlcmd 963227Syq193411 973227Syq193411USBSER_FILES = $(USBSER_OBJS:%.o=../usbser/%.ll) 983227Syq193411USBA_FILES = $(USBA_OBJS:%.o=../usba/%.ll) 993227Syq193411UHCI_FILES = $(UHCI_OBJS:%.o=../uhci/%.ll) 1003227Syq193411OHCI_FILES = $(OHCI_OBJS:%.o=../ohci/%.ll) 1013227Syq193411EHCI_FILES = $(EHCI_OBJS:%.o=../ehci/%.ll) 1023227Syq193411 1033227Syq193411warlock: $(WARLOCK_OK) 1043227Syq193411 1053227Syq193411$(WARLOCK_OK): warlock_with_usbser warlock_with_usba 1063227Syq193411 $(TOUCH) $@ 1073227Syq193411 1083227Syq193411%.ll: $(UTSBASE)/common/io/usb/clients/usbser/usbsacm/%.c 1093227Syq193411 $(WLCC) $(CPPFLAGS) -DDEBUG -o $@ $< 1103227Syq193411 1113227Syq193411warlock_with_usbser: $(WARLOCK_OUT) usbser_files warlock_ddi.files \ 1123227Syq193411 $(WARLOCK_CMD) 1134604Sstevel $(WARLOCK) -c $(WARLOCK_CMD) $(WARLOCK_OUT) \ 1143227Syq193411 $(USBSER_FILES) -l ../warlock/ddi_dki_impl.ll 1153227Syq193411 1164604Sstevelwarlock_with_usba: $(WLCMD_DIR)/usbsacm_with_usba.wlcmd $(WARLOCK_OUT) \ 1174604Sstevel usbser_files usba_files ohci_files uhci_files ehci_files \ 1184604Sstevel warlock_ddi.files 1193227Syq193411 $(WARLOCK) -c $(WLCMD_DIR)/usbsacm_with_usba.wlcmd \ 1203227Syq193411 $(USBA_FILES) $(OHCI_FILES) $(EHCI_FILES) $(UHCI_FILES) \ 1213227Syq193411 $(USBSER_FILES) \ 1223227Syq193411 $(WARLOCK_OUT) -l ../warlock/ddi_dki_impl.ll 1233227Syq193411 1243227Syq193411usbser_files: 1253227Syq193411 @cd ../usbser; pwd; $(MAKE) warlock 1263227Syq193411 1273227Syq193411usba_files: 1283227Syq193411 @cd ../usba;pwd; $(MAKE) warlock 1293227Syq193411 1303227Syq193411uhci_files: 1313227Syq193411 @cd ../uhci;pwd; $(MAKE) warlock 1323227Syq193411 1333227Syq193411ohci_files: 1343227Syq193411 @cd ../ohci;pwd; $(MAKE) warlock 1353227Syq193411 1363227Syq193411ehci_files: 1373227Syq193411 @cd ../ehci;pwd; $(MAKE) warlock 1383227Syq193411 1393227Syq193411warlock_ddi.files: 1403227Syq193411 cd ../warlock; pwd; $(MAKE) warlock 141