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# 13b6b206fcSJohn Levon# Copyright (c) 2018, Joyent, Inc. 14*7089fa46SGarrett D'Amore# Copyright 2022 Garrett D'Amore 156716431bSRobert Mustacchi# 166716431bSRobert Mustacchi 176716431bSRobert Mustacchi# 186716431bSRobert Mustacchi# Path to the base of the uts directory tree (usually /usr/src/uts). 196716431bSRobert Mustacchi# 206716431bSRobert MustacchiUTSBASE = ../.. 216716431bSRobert Mustacchi 226716431bSRobert Mustacchi# 236716431bSRobert Mustacchi# Define the module and object file sets. 246716431bSRobert Mustacchi# 256716431bSRobert MustacchiMODULE = usbgem 266716431bSRobert MustacchiOBJECTS = $(USBGEM_OBJS:%=$(OBJS_DIR)/%) 276716431bSRobert MustacchiROOTMODULE = $(ROOT_MISC_DIR)/$(MODULE) 286716431bSRobert Mustacchi 296716431bSRobert Mustacchi# 306716431bSRobert Mustacchi# Include common rules. 316716431bSRobert Mustacchi# 326716431bSRobert Mustacchiinclude $(UTSBASE)/intel/Makefile.intel 336716431bSRobert Mustacchi 346716431bSRobert Mustacchi# 356716431bSRobert Mustacchi# The USBGEM has support for various different features. We use 366716431bSRobert Mustacchi# these pre-processor macros to define the set we care about. 376716431bSRobert Mustacchi# 386716431bSRobert MustacchiCPPFLAGS += \ 396716431bSRobert Mustacchi -DMODULE \ 406716431bSRobert Mustacchi -DVERSION=\"1.6\" 416716431bSRobert Mustacchi 42d3b5f563SJohn LevonCERRWARN += $(CNOWARN_UNINIT) 436716431bSRobert MustacchiCERRWARN += -_gcc=-Wno-parentheses 446716431bSRobert MustacchiCERRWARN += -_gcc=-Wno-switch 456716431bSRobert MustacchiCERRWARN += -_gcc=-Wno-unused-variable 466716431bSRobert MustacchiCERRWARN += -_gcc=-Wno-unused-label 476716431bSRobert MustacchiCERRWARN += -_gcc=-Wno-unused-function 486716431bSRobert Mustacchi 49b6b206fcSJohn Levon# needs work 50b6b206fcSJohn LevonSMOFF += all_func_returns 51b6b206fcSJohn Levon 526716431bSRobert Mustacchi 5382d0151aSRichard LoweLDFLAGS += -N misc/mac -N drv/ip -N misc/usba 546716431bSRobert Mustacchi 556716431bSRobert Mustacchi# 566716431bSRobert Mustacchi# Define targets 576716431bSRobert Mustacchi# 586716431bSRobert MustacchiALL_TARGET = $(BINARY) 596716431bSRobert MustacchiINSTALL_TARGET = $(BINARY) $(ROOTMODULE) 606716431bSRobert Mustacchi 616716431bSRobert Mustacchi# 626716431bSRobert Mustacchi# Default build targets. 636716431bSRobert Mustacchi# 646716431bSRobert Mustacchi.KEEP_STATE: 656716431bSRobert Mustacchi 666716431bSRobert Mustacchidef: $(DEF_DEPS) 676716431bSRobert Mustacchi 686716431bSRobert Mustacchiall: $(ALL_DEPS) 696716431bSRobert Mustacchi 706716431bSRobert Mustacchiclean: $(CLEAN_DEPS) 716716431bSRobert Mustacchi 726716431bSRobert Mustacchiclobber: $(CLOBBER_DEPS) 736716431bSRobert Mustacchi 746716431bSRobert Mustacchiinstall: $(INSTALL_DEPS) 756716431bSRobert Mustacchi 766716431bSRobert Mustacchi# Include common targets. 776716431bSRobert Mustacchi# 786716431bSRobert Mustacchiinclude $(UTSBASE)/intel/Makefile.targ 79