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