Makefile revision 6716431ba7de213d5c318e58dc24c8a36da9b068
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupont#
28b3569d6248168e6c00caab951521cc8141a49dAutomatic Updater# This file and its contents are supplied under the terms of the
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupont# Common Development and Distribution License ("CDDL"), version 1.0.
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupont# You may only use this file in accordance with the terms of version
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupont# 1.0 of the CDDL.
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupont#
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupont# A full copy of the text of the CDDL should have accompanied this
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupont# source. A copy of the CDDL is also available via the Internet at
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupont# http://www.illumos.org/license/CDDL.
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupont#
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupont
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupont#
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupont# Copyright (c) 2014 Joyent, Inc. All rights reserved.
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupont#
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupont
731cc132f22dbc9e0ecd7035dce314a61076d31bAutomatic Updater#
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupont# Path to the base of the uts directory tree (usually /usr/src/uts).
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupont#
90f35c2f2a1c660f3b96eec413036d238df395f6Francis DupontUTSBASE = ../..
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupont
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupont#
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupont# Define the module and object file sets.
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupont#
90f35c2f2a1c660f3b96eec413036d238df395f6Francis DupontMODULE = urf
90f35c2f2a1c660f3b96eec413036d238df395f6Francis DupontOBJECTS = $(URF_OBJS:%=$(OBJS_DIR)/%)
90f35c2f2a1c660f3b96eec413036d238df395f6Francis DupontLINTS = $(URF_OBJS:%.o=$(LINTS_DIR)/%.ln)
90f35c2f2a1c660f3b96eec413036d238df395f6Francis DupontROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupont
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupont#
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupont# Include common rules.
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupont#
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupontinclude $(UTSBASE)/intel/Makefile.intel
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupont
28b3569d6248168e6c00caab951521cc8141a49dAutomatic UpdaterCPPFLAGS += -I$(UTSBASE)/common/io/usbgem
90f35c2f2a1c660f3b96eec413036d238df395f6Francis DupontCPPFLAGS += -DVERSION=\"2.0.0\"
90f35c2f2a1c660f3b96eec413036d238df395f6Francis DupontCPPFLAGS += -DUSBGEM_CONFIG_GLDv3
90f35c2f2a1c660f3b96eec413036d238df395f6Francis DupontCERRWARN += -_gcc=-Wno-uninitialized
90f35c2f2a1c660f3b96eec413036d238df395f6Francis DupontLDFLAGS += -dy -N misc/mac -N drv/ip -N misc/usba -N misc/usbgem
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupont
90f35c2f2a1c660f3b96eec413036d238df395f6Francis DupontCERRWARN += -_gcc=-Wno-unused-function
90f35c2f2a1c660f3b96eec413036d238df395f6Francis DupontCERRWARN += -_gcc=-Wno-unused-variable
28b3569d6248168e6c00caab951521cc8141a49dAutomatic UpdaterCERRWARN += -_gcc=-Wno-unused-label
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupont
90f35c2f2a1c660f3b96eec413036d238df395f6Francis DupontLINTTAGS += -erroff=E_FUNC_VAR_UNUSED
90f35c2f2a1c660f3b96eec413036d238df395f6Francis DupontLINTTAGS += -erroff=E_FUNC_ARG_UNUSED
90f35c2f2a1c660f3b96eec413036d238df395f6Francis DupontLINTTAGS += -erroff=E_STATIC_UNUSED
90f35c2f2a1c660f3b96eec413036d238df395f6Francis DupontLINTTAGS += -erroff=E_FUNC_RET_ALWAYS_IGNOR2
90f35c2f2a1c660f3b96eec413036d238df395f6Francis DupontLINTTAGS += -erroff=E_FUNC_SET_NOT_USED
731cc132f22dbc9e0ecd7035dce314a61076d31bAutomatic Updater
731cc132f22dbc9e0ecd7035dce314a61076d31bAutomatic Updater#
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupont# Define targets
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupont#
90f35c2f2a1c660f3b96eec413036d238df395f6Francis DupontALL_TARGET = $(BINARY)
90f35c2f2a1c660f3b96eec413036d238df395f6Francis DupontLINT_TARGET = $(MODULE).lint
90f35c2f2a1c660f3b96eec413036d238df395f6Francis DupontINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupont
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupont#
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupont# Default build targets.
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupont#
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupont.KEEP_STATE:
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupont
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupontdef: $(DEF_DEPS)
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupont
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupontall: $(ALL_DEPS)
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupont
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupontclean: $(CLEAN_DEPS)
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupont
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupontclobber: $(CLOBBER_DEPS)
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupont
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupontlint: $(LINT_DEPS)
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupont
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupontmodlintlib: $(MODLINTLIB_DEPS)
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupont
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupontclean.lint: $(CLEAN_LINT_DEPS)
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupont
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupontinstall: $(INSTALL_DEPS)
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupont
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupont# Include common targets.
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupont#
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupontinclude $(UTSBASE)/intel/Makefile.targ
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupont