Makefile revision 7014882c6a3672fd0e5d60200af8643ae53c5928
1186N/A#
949N/A# CDDL HEADER START
1294N/A#
1186N/A# The contents of this file are subject to the terms of the
954N/A# Common Development and Distribution License (the "License").
954N/A# You may not use this file except in compliance with the License.
1186N/A#
949N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
949N/A# or http://www.opensolaris.org/os/licensing.
949N/A# See the License for the specific language governing permissions
1186N/A# and limitations under the License.
1186N/A#
1186N/A# When distributing Covered Code, include this CDDL HEADER in each
1186N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1186N/A# If applicable, add the following below this CDDL HEADER, with the
1186N/A# fields enclosed by brackets "[]" replaced with your own identifying
1186N/A# information: Portions Copyright [yyyy] [name of copyright owner]
1186N/A#
1186N/A# CDDL HEADER END
1186N/A#
1186N/A#
1186N/A# uts/intel/usbsacm/Makefile
1186N/A# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
1186N/A# Use is subject to license terms.
1186N/A#
1186N/A#
1186N/A# This makefile drives the production of Abstract Control Model of
1186N/A# USB Communication Devices Class dirver.
1186N/A#
1186N/A# Path to the base of the uts directory tree (usually /usr/src/uts).
1186N/A#
1186N/AUTSBASE = ../..
1186N/A
1186N/A#
1186N/A# Define the module and object file sets.
1186N/A#
1186N/AMODULE = usbsacm
1186N/AOBJECTS = $(USBSACM_OBJS:%=$(OBJS_DIR)/%)
1186N/ALINTS = $(USBSACM_OBJS:%.o=$(LINTS_DIR)/%.ln)
1186N/AROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
1186N/AWARLOCK_OUT = $(USBSACM_OBJS:%.o=%.ll)
1186N/AWARLOCK_OK = $(MODULE).ok
1186N/AWLCMD_DIR = $(UTSBASE)/common/io/warlock
1186N/A
1186N/A#
1186N/A# Include common rules.
1186N/A#
1186N/Ainclude $(UTSBASE)/intel/Makefile.intel
1186N/A
1186N/ALDFLAGS += -dy -Nmisc/usba -Nmisc/usbser
1186N/A
1186N/ACERRWARN += -_gcc=-Wno-uninitialized
1186N/A
1186N/A#
1186N/A# Define targets
1186N/A#
1186N/AALL_TARGET = $(BINARY)
1186N/ALINT_TARGET = $(MODULE).lint
1294N/AINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
1186N/A
1186N/A.KEEP_STATE:
1186N/A
1186N/Aall: $(ALL_DEPS)
1186N/A
1186N/Adef: $(DEF_DEPS)
1186N/A
1186N/Aclean: $(CLEAN_DEPS)
1186N/A $(RM) $(WARLOCK_OUT) $(WARLOCK_OK)
1186N/A
1186N/Aclobber: $(CLOBBER_DEPS)
1186N/A $(RM) $(WARLOCK_OUT) $(WARLOCK_OK)
1186N/A
1186N/Alint: $(LINT_DEPS)
1186N/A
1186N/Amodlintlib: $(MODLINTLIB_DEPS)
1186N/A
1186N/Aclean.lint: $(CLEAN_LINT_DEPS)
1186N/A
1186N/Ainstall: $(INSTALL_DEPS)
1186N/A
1186N/A#
1186N/A# Include common targets.
1186N/A#
1186N/Ainclude $(UTSBASE)/intel/Makefile.targ
1186N/A
1186N/A#
1186N/A# Defines for local commands.
1186N/A#
1186N/AWLCC = wlcc
1186N/ATOUCH = touch
1186N/AWARLOCK = warlock
1186N/ATEST = test
1186N/A
1186N/A#
1186N/A# warlock
1186N/A#
1186N/AWARLOCK_CMD = $(WLCMD_DIR)/$(MODULE).wlcmd
1186N/A
1186N/AUSBSER_FILES = $(USBSER_OBJS:%.o=../usbser/%.ll)
1186N/AUSBA_FILES = $(USBA_OBJS:%.o=../usba/%.ll)
1186N/AUHCI_FILES = $(UHCI_OBJS:%.o=../uhci/%.ll)
1186N/AOHCI_FILES = $(OHCI_OBJS:%.o=../ohci/%.ll)
1186N/AEHCI_FILES = $(EHCI_OBJS:%.o=../ehci/%.ll)
1186N/A
1186N/Awarlock: $(WARLOCK_OK)
1186N/A
1186N/A$(WARLOCK_OK): warlock_with_usbser warlock_with_usba
1186N/A $(TOUCH) $@
1186N/A
1186N/A%.ll: $(UTSBASE)/common/io/usb/clients/usbser/usbsacm/%.c
1186N/A $(WLCC) $(CPPFLAGS) -DDEBUG -o $@ $<
1186N/A
1186N/Awarlock_with_usbser: $(WARLOCK_OUT) usbser_files warlock_ddi.files \
1186N/A $(WARLOCK_CMD)
1186N/A $(WARLOCK) -c $(WARLOCK_CMD) $(WARLOCK_OUT) \
1186N/A $(USBSER_FILES) -l ../warlock/ddi_dki_impl.ll
949N/A
949N/Awarlock_with_usba: $(WLCMD_DIR)/usbsacm_with_usba.wlcmd $(WARLOCK_OUT) \
1186N/A usbser_files usba_files ohci_files uhci_files ehci_files \
1186N/A warlock_ddi.files
1186N/A $(WARLOCK) -c $(WLCMD_DIR)/usbsacm_with_usba.wlcmd \
1186N/A $(USBA_FILES) $(OHCI_FILES) $(EHCI_FILES) $(UHCI_FILES) \
1186N/A $(USBSER_FILES) \
1186N/A $(WARLOCK_OUT) -l ../warlock/ddi_dki_impl.ll
1186N/A
1186N/Ausbser_files:
1186N/A @cd ../usbser; pwd; $(MAKE) warlock
1186N/A
1186N/Ausba_files:
1186N/A @cd ../usba;pwd; $(MAKE) warlock
1186N/A
1186N/Auhci_files:
1186N/A @cd ../uhci;pwd; $(MAKE) warlock
1186N/A
1186N/Aohci_files:
1186N/A @cd ../ohci;pwd; $(MAKE) warlock
1186N/A
1186N/Aehci_files:
1186N/A @cd ../ehci;pwd; $(MAKE) warlock
1186N/A
1186N/Awarlock_ddi.files:
1186N/A cd ../warlock; pwd; $(MAKE) warlock
1186N/A