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