xref: /illumos-gate/usr/src/uts/intel/hme/Makefile (revision 82d0151a507442720a3aea34c8925041894ab173)
10219346bSGarrett D'Amore#
20219346bSGarrett D'Amore# CDDL HEADER START
30219346bSGarrett D'Amore#
40219346bSGarrett D'Amore# The contents of this file are subject to the terms of the
50219346bSGarrett D'Amore# Common Development and Distribution License (the "License").
60219346bSGarrett D'Amore# You may not use this file except in compliance with the License.
70219346bSGarrett D'Amore#
80219346bSGarrett D'Amore# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
90219346bSGarrett D'Amore# or http://www.opensolaris.org/os/licensing.
100219346bSGarrett D'Amore# See the License for the specific language governing permissions
110219346bSGarrett D'Amore# and limitations under the License.
120219346bSGarrett D'Amore#
130219346bSGarrett D'Amore# When distributing Covered Code, include this CDDL HEADER in each
140219346bSGarrett D'Amore# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
150219346bSGarrett D'Amore# If applicable, add the following below this CDDL HEADER, with the
160219346bSGarrett D'Amore# fields enclosed by brackets "[]" replaced with your own identifying
170219346bSGarrett D'Amore# information: Portions Copyright [yyyy] [name of copyright owner]
180219346bSGarrett D'Amore#
190219346bSGarrett D'Amore# CDDL HEADER END
200219346bSGarrett D'Amore#
210219346bSGarrett D'Amore#
220219346bSGarrett D'Amore# uts/intel/hme/Makefile
230219346bSGarrett D'Amore#
240219346bSGarrett D'Amore# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
250219346bSGarrett D'Amore# Use is subject to license terms.
260219346bSGarrett D'Amore#
27b6b206fcSJohn Levon# Copyright (c) 2018, Joyent, Inc.
28b6b206fcSJohn Levon
290219346bSGarrett D'Amore
300219346bSGarrett D'Amore#
310219346bSGarrett D'Amore#	Path to the base of the uts directory tree (usually /usr/src/uts).
320219346bSGarrett D'Amore#
330219346bSGarrett D'AmoreUTSBASE	= ../..
340219346bSGarrett D'Amore
350219346bSGarrett D'Amore#
360219346bSGarrett D'Amore#	Define the module and object file sets.
370219346bSGarrett D'Amore#
380219346bSGarrett D'AmoreMODULE		= hme
390219346bSGarrett D'AmoreOBJECTS		= $(HME_OBJS:%=$(OBJS_DIR)/%)
400219346bSGarrett D'AmoreROOTMODULE	= $(ROOT_DRV_DIR)/$(MODULE)
410219346bSGarrett D'Amore
420219346bSGarrett D'Amore#
430219346bSGarrett D'Amore#	Include common rules.
440219346bSGarrett D'Amore#
450219346bSGarrett D'Amoreinclude $(UTSBASE)/intel/Makefile.intel
460219346bSGarrett D'Amore
470219346bSGarrett D'Amore#
480219346bSGarrett D'Amore#	Define targets
490219346bSGarrett D'Amore#
500219346bSGarrett D'AmoreALL_TARGET	= $(BINARY)
510219346bSGarrett D'AmoreINSTALL_TARGET	= $(BINARY) $(ROOTMODULE)
520219346bSGarrett D'Amore
530219346bSGarrett D'Amore#
540219346bSGarrett D'Amore#	Overrides.
550219346bSGarrett D'Amore#
560219346bSGarrett D'AmoreCFLAGS		+= $(CCVERBOSE)
57*82d0151aSRichard LoweLDFLAGS		+= -Nmisc/mii -Nmisc/mac
580219346bSGarrett D'Amore
597014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-switch
607014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-unused-label
61d3b5f563SJohn LevonCERRWARN	+= $(CNOWARN_UNINIT)
627014882cSRichard Lowe
63b6b206fcSJohn Levon# needs work
64b6b206fcSJohn Levon$(OBJS_DIR)/hme.o := SMOFF += indenting,deref_check
65b6b206fcSJohn Levon
660219346bSGarrett D'Amore#
670219346bSGarrett D'Amore#	Default build targets.
680219346bSGarrett D'Amore#
690219346bSGarrett D'Amore.KEEP_STATE:
700219346bSGarrett D'Amore
710219346bSGarrett D'Amoredef:		$(DEF_DEPS)
720219346bSGarrett D'Amore
730219346bSGarrett D'Amoreall:		$(ALL_DEPS)
740219346bSGarrett D'Amore
750219346bSGarrett D'Amoreclean:		$(CLEAN_DEPS)
760219346bSGarrett D'Amore
770219346bSGarrett D'Amoreclobber:	$(CLOBBER_DEPS)
780219346bSGarrett D'Amore
790219346bSGarrett D'Amoreinstall:	$(INSTALL_DEPS)
800219346bSGarrett D'Amore
810219346bSGarrett D'Amore#
820219346bSGarrett D'Amore#	Include common targets.
830219346bSGarrett D'Amore#
840219346bSGarrett D'Amoreinclude $(UTSBASE)/intel/Makefile.targ
85