xref: /illumos-gate/usr/src/uts/intel/usbgem/Makefile (revision 33efde4275d24731ef87927237b0ffb0630b6b2d)
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-function
476716431bSRobert Mustacchi
48b6b206fcSJohn Levon# needs work
49b6b206fcSJohn LevonSMOFF += all_func_returns
50b6b206fcSJohn Levon
516716431bSRobert Mustacchi
5282d0151aSRichard LoweLDFLAGS		+= -N misc/mac -N drv/ip -N misc/usba
536716431bSRobert Mustacchi
546716431bSRobert Mustacchi#
556716431bSRobert Mustacchi#	Define targets
566716431bSRobert Mustacchi#
576716431bSRobert MustacchiALL_TARGET	= $(BINARY)
586716431bSRobert MustacchiINSTALL_TARGET	= $(BINARY) $(ROOTMODULE)
596716431bSRobert Mustacchi
606716431bSRobert Mustacchi#
616716431bSRobert Mustacchi#	Default build targets.
626716431bSRobert Mustacchi#
636716431bSRobert Mustacchi.KEEP_STATE:
646716431bSRobert Mustacchi
656716431bSRobert Mustacchidef:		$(DEF_DEPS)
666716431bSRobert Mustacchi
676716431bSRobert Mustacchiall:		$(ALL_DEPS)
686716431bSRobert Mustacchi
696716431bSRobert Mustacchiclean:		$(CLEAN_DEPS)
706716431bSRobert Mustacchi
716716431bSRobert Mustacchiclobber:	$(CLOBBER_DEPS)
726716431bSRobert Mustacchi
736716431bSRobert Mustacchiinstall:	$(INSTALL_DEPS)
746716431bSRobert Mustacchi
756716431bSRobert Mustacchi#	Include common targets.
766716431bSRobert Mustacchi#
776716431bSRobert Mustacchiinclude $(UTSBASE)/intel/Makefile.targ
78