Makefile revision 6716431ba7de213d5c318e58dc24c8a36da9b068
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
1fdd2470b625a58b57d0b155e6caf8c4fc0afe8aAutomatic Updater# This file and its contents are supplied under the terms of the
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# Common Development and Distribution License ("CDDL"), version 1.0.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# You may only use this file in accordance with the terms of version
4a14ce5ba00ab7bc55c99ffdcf59c7a4ab902721Automatic Updater# 1.0 of the CDDL.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# A full copy of the text of the CDDL should have accompanied this
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# source. A copy of the CDDL is also available via the Internet at
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# http://www.illumos.org/license/CDDL.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# Copyright (c) 2014 Joyent, Inc. All rights reserved.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
4a14ce5ba00ab7bc55c99ffdcf59c7a4ab902721Automatic Updater# Path to the base of the uts directory tree (usually /usr/src/uts).
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsUTSBASE = ../..
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
e21a2904f02a03fa06b6db04d348f65fe9c67b2bMark Andrews# Define the module and object file sets.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsMODULE = axf
2cbb4ab75757fbb656997a82c14ca07db37d481aAutomatic UpdaterOBJECTS = $(AXF_OBJS:%=$(OBJS_DIR)/%)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsLINTS = $(AXF_OBJS:%.o=$(LINTS_DIR)/%.ln)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# Include common rules.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrewsinclude $(UTSBASE)/intel/Makefile.intel
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
2cbb4ab75757fbb656997a82c14ca07db37d481aAutomatic UpdaterCPPFLAGS += -I$(UTSBASE)/common/io/usbgem
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsCPPFLAGS += -DVERSION=\"2.0.2\"
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsCPPFLAGS += -DUSBGEM_CONFIG_GLDv3
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsLDFLAGS += -dy -N misc/mac -N drv/ip -N misc/usba -N misc/usbgem
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsCERRWARN += -_gcc=-Wno-unused-function
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsCERRWARN += -_gcc=-Wno-unused-variable
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsCERRWARN += -_gcc=-Wno-unused-label
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsLINTTAGS += -erroff=E_FUNC_VAR_UNUSED
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsLINTTAGS += -erroff=E_FUNC_ARG_UNUSED
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsLINTTAGS += -erroff=E_STATIC_UNUSED
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsLINTTAGS += -erroff=E_FUNC_RET_ALWAYS_IGNOR2
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsLINTTAGS += -erroff=E_FUNC_SET_NOT_USED
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsLINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
6283056805887de88040698685b8e1936a1f7a2dAutomatic Updater#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# Define targets
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
4a14ce5ba00ab7bc55c99ffdcf59c7a4ab902721Automatic UpdaterALL_TARGET = $(BINARY)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsLINT_TARGET = $(MODULE).lint
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# Default build targets.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews.KEEP_STATE:
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrewsdef: $(DEF_DEPS)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
4a14ce5ba00ab7bc55c99ffdcf59c7a4ab902721Automatic Updaterall: $(ALL_DEPS)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrewsclean: $(CLEAN_DEPS)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrewsclobber: $(CLOBBER_DEPS)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrewslint: $(LINT_DEPS)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrewsmodlintlib: $(MODLINTLIB_DEPS)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrewsclean.lint: $(CLEAN_LINT_DEPS)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrewsinstall: $(INSTALL_DEPS)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# Include common targets.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrewsinclude $(UTSBASE)/intel/Makefile.targ
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews