Makefile revision bf56214c0556fa6864189c826d39dbe156bb22a0
1366N/A#
1366N/A# CDDL HEADER START
1422N/A#
1366N/A# The contents of this file are subject to the terms of the
1366N/A# Common Development and Distribution License (the "License").
1366N/A# You may not use this file except in compliance with the License.
1366N/A#
1366N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
1366N/A# or http://www.opensolaris.org/os/licensing.
1366N/A# See the License for the specific language governing permissions
1366N/A# and limitations under the License.
1366N/A#
1366N/A# When distributing Covered Code, include this CDDL HEADER in each
1366N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1366N/A# If applicable, add the following below this CDDL HEADER, with the
1366N/A# fields enclosed by brackets "[]" replaced with your own identifying
1366N/A# information: Portions Copyright [yyyy] [name of copyright owner]
1366N/A#
1366N/A# CDDL HEADER END
1366N/A#
1366N/A
1366N/A# uts/sparc/usb_mid/Makefile
1366N/A
1366N/A# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
1366N/A# Use is subject to license terms.
1366N/A#
1366N/A# This makefile drives the production of the usb_mid driver kernel module.
1366N/A# sparc architecture dependent
1366N/A#
1366N/A
1366N/A#ident "%Z%%M% %I% %E% SMI"
1366N/A
1366N/A#
1366N/A# Path to the base of the uts directory tree (usually /usr/src/uts).
1366N/A#
1366N/AUTSBASE = ../..
1366N/A
1366N/A#
1366N/A# Define the module and object file sets.
1366N/A#
1366N/AMODULE = usb_mid
1366N/AOBJECTS = $(USB_MID_OBJS:%=$(OBJS_DIR)/%)
1366N/ALINTS = $(USB_MID_OBJS:%.o=$(LINTS_DIR)/%.ln)
1366N/AROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
1366N/AWARLOCK_OUT = $(USB_MID_OBJS:%.o=%.ll)
1366N/AWARLOCK_OK = $(MODULE).ok
1366N/AWLCMD_DIR = $(UTSBASE)/common/io/warlock
1366N/A
1366N/A#
1366N/A# Include common rules.
1366N/A#
1366N/Ainclude $(UTSBASE)/sparc/Makefile.sparc
1366N/A
1366N/A#
1366N/A# lint pass one enforcement
1366N/A#
1366N/ACFLAGS += $(CCVERBOSE)
1366N/A
1366N/A#
1422N/A# depends on misc/usba
1422N/A#
1422N/ALDFLAGS += -dy -Nmisc/usba
1422N/A
1422N/A#
1422N/A# Define targets
1366N/A#
1366N/AALL_TARGET = $(BINARY)
1366N/ALINT_TARGET = $(MODULE).lint
1366N/AINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
1366N/A
1366N/A.KEEP_STATE:
1366N/A
1366N/Aall: $(ALL_DEPS)
1366N/A
1366N/Adef: $(DEF_DEPS)
1366N/A
1366N/Aclean: $(CLEAN_DEPS)
1366N/A $(RM) $(WARLOCK_OUT) $(WARLOCK_OK)
1366N/A
1366N/Aclobber: $(CLOBBER_DEPS)
1366N/A $(RM) $(WARLOCK_OUT) $(WARLOCK_OK)
1366N/A
1366N/Alint: $(LINT_DEPS)
1366N/A
1366N/Amodlintlib: $(MODLINTLIB_DEPS)
1366N/A
1366N/Aclean.lint: $(CLEAN_LINT_DEPS)
1366N/A
1366N/Ainstall: $(INSTALL_DEPS)
1366N/A
1366N/A#
1366N/A# Include common targets.
1366N/A#
1366N/Ainclude $(UTSBASE)/sparc/Makefile.targ
1366N/A
1366N/A#
1366N/A# Defines for local commands.
1366N/A#
1366N/AWARLOCK = warlock
1366N/AWLCC = wlcc
1366N/ATOUCH = touch
1366N/ATEST = test
1366N/A
1366N/A#
1366N/A# lock_lint rules
1366N/A#
1366N/AUSBA_FILES = $(USBA_OBJS:%.o=../usba/%.ll)
1366N/AUHCI_FILES = $(UHCI_OBJS:%.o=../uhci/%.ll)
1366N/AOHCI_FILES = $(OHCI_OBJS:%.o=../ohci/%.ll)
1366N/AEHCI_FILES = $(EHCI_OBJS:%.o=../ehci/%.ll)
1366N/A
1366N/Awarlock: $(WARLOCK_OK) warlock_with_usba
1366N/A
1366N/A$(WARLOCK_OK): $(WARLOCK_OUT) $(WLCMD_DIR)/usb_mid.wlcmd warlock_ddi.files
1366N/A $(WARLOCK) -c $(WLCMD_DIR)/usb_mid.wlcmd $(WARLOCK_OUT) \
1366N/A -l ../warlock/ddi_dki_impl.ll
1366N/A $(TOUCH) $@
1366N/A
1366N/A%.ll: $(UTSBASE)/common/io/usb/usb_mid/%.c \
1366N/A $(UTSBASE)/common/sys/usb/usb_mid/usb_midvar.h
1366N/A $(WLCC) $(CPPFLAGS) -DDEBUG -o $@ $<
1366N/A
1366N/Awarlock_with_usba: $(WLCMD_DIR)/usb_mid_with_usba.wlcmd $(WARLOCK_OUT) \
1366N/A usba_files ohci_files ehci_files uhci_files warlock_ddi.files
1366N/A $(WARLOCK) -c $(WLCMD_DIR)/usb_mid_with_usba.wlcmd \
1366N/A $(USBA_FILES) $(OHCI_FILES) $(EHCI_FILES) $(UHCI_FILES) \
1366N/A $(WARLOCK_OUT) \
1366N/A -l ../warlock/ddi_dki_impl.ll
1366N/A
1366N/Ausba_files:
1366N/A @cd ../usba;pwd; $(MAKE) warlock
1366N/A
1366N/Auhci_files:
1366N/A @cd ../uhci;pwd; $(MAKE) warlock
1366N/A
1366N/Aohci_files:
1366N/A @cd ../ohci;pwd; $(MAKE) warlock
1366N/A
1366N/Aehci_files:
1366N/A @cd ../ehci;pwd; $(MAKE) warlock
1366N/A
1366N/Awarlock_ddi.files:
1366N/A cd ../warlock; pwd; $(MAKE) warlock
1366N/A