16716431bSRobert Mustacchi# 26716431bSRobert Mustacchi# This file and its contents are supplied under the terms of the 36716431bSRobert Mustacchi# Common Development and Distribution License ("CDDL"), version 1.0. 46716431bSRobert Mustacchi# You may only use this file in accordance with the terms of version 56716431bSRobert Mustacchi# 1.0 of the CDDL. 66716431bSRobert Mustacchi# 76716431bSRobert Mustacchi# A full copy of the text of the CDDL should have accompanied this 86716431bSRobert Mustacchi# source. A copy of the CDDL is also available via the Internet at 96716431bSRobert Mustacchi# http://www.illumos.org/license/CDDL. 106716431bSRobert Mustacchi# 116716431bSRobert Mustacchi 126716431bSRobert Mustacchi# 136716431bSRobert Mustacchi# Copyright (c) 2014 Joyent, Inc. All rights reserved. 146716431bSRobert Mustacchi# 156716431bSRobert Mustacchi 166716431bSRobert Mustacchi# 176716431bSRobert Mustacchi# Path to the base of the uts directory tree (usually /usr/src/uts). 186716431bSRobert Mustacchi# 196716431bSRobert MustacchiUTSBASE = ../.. 206716431bSRobert Mustacchi 216716431bSRobert Mustacchi# 226716431bSRobert Mustacchi# Define the module and object file sets. 236716431bSRobert Mustacchi# 246716431bSRobert MustacchiMODULE = axf 256716431bSRobert MustacchiOBJECTS = $(AXF_OBJS:%=$(OBJS_DIR)/%) 266716431bSRobert MustacchiROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE) 276716431bSRobert Mustacchi 286716431bSRobert Mustacchi# 296716431bSRobert Mustacchi# Include common rules. 306716431bSRobert Mustacchi# 316716431bSRobert Mustacchiinclude $(UTSBASE)/intel/Makefile.intel 326716431bSRobert Mustacchi 336716431bSRobert MustacchiCPPFLAGS += -I$(UTSBASE)/common/io/usbgem 346716431bSRobert MustacchiCPPFLAGS += -DVERSION=\"2.0.2\" 356716431bSRobert MustacchiCPPFLAGS += -DUSBGEM_CONFIG_GLDv3 36*82d0151aSRichard LoweLDFLAGS += -N misc/mac -N drv/ip -N misc/usba -N misc/usbgem 376716431bSRobert Mustacchi 386716431bSRobert MustacchiCERRWARN += -_gcc=-Wno-unused-function 396716431bSRobert MustacchiCERRWARN += -_gcc=-Wno-unused-variable 406716431bSRobert Mustacchi 416716431bSRobert Mustacchi 426716431bSRobert Mustacchi# 436716431bSRobert Mustacchi# Define targets 446716431bSRobert Mustacchi# 456716431bSRobert MustacchiALL_TARGET = $(BINARY) 466716431bSRobert MustacchiINSTALL_TARGET = $(BINARY) $(ROOTMODULE) 476716431bSRobert Mustacchi 486716431bSRobert Mustacchi# 496716431bSRobert Mustacchi# Default build targets. 506716431bSRobert Mustacchi# 516716431bSRobert Mustacchi.KEEP_STATE: 526716431bSRobert Mustacchi 536716431bSRobert Mustacchidef: $(DEF_DEPS) 546716431bSRobert Mustacchi 556716431bSRobert Mustacchiall: $(ALL_DEPS) 566716431bSRobert Mustacchi 576716431bSRobert Mustacchiclean: $(CLEAN_DEPS) 586716431bSRobert Mustacchi 596716431bSRobert Mustacchiclobber: $(CLOBBER_DEPS) 606716431bSRobert Mustacchi 616716431bSRobert Mustacchiinstall: $(INSTALL_DEPS) 626716431bSRobert Mustacchi 636716431bSRobert Mustacchi# Include common targets. 646716431bSRobert Mustacchi# 656716431bSRobert Mustacchiinclude $(UTSBASE)/intel/Makefile.targ 66