1bdb9230aSGarrett D'Amore# 2bdb9230aSGarrett D'Amore# CDDL HEADER START 3bdb9230aSGarrett D'Amore# 4bdb9230aSGarrett D'Amore# The contents of this file are subject to the terms of the 5bdb9230aSGarrett D'Amore# Common Development and Distribution License (the "License"). 6bdb9230aSGarrett D'Amore# You may not use this file except in compliance with the License. 7bdb9230aSGarrett D'Amore# 8bdb9230aSGarrett D'Amore# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9bdb9230aSGarrett D'Amore# or http://www.opensolaris.org/os/licensing. 10bdb9230aSGarrett D'Amore# See the License for the specific language governing permissions 11bdb9230aSGarrett D'Amore# and limitations under the License. 12bdb9230aSGarrett D'Amore# 13bdb9230aSGarrett D'Amore# When distributing Covered Code, include this CDDL HEADER in each 14bdb9230aSGarrett D'Amore# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15bdb9230aSGarrett D'Amore# If applicable, add the following below this CDDL HEADER, with the 16bdb9230aSGarrett D'Amore# fields enclosed by brackets "[]" replaced with your own identifying 17bdb9230aSGarrett D'Amore# information: Portions Copyright [yyyy] [name of copyright owner] 18bdb9230aSGarrett D'Amore# 19bdb9230aSGarrett D'Amore# CDDL HEADER END 20bdb9230aSGarrett D'Amore# 21bdb9230aSGarrett D'Amore# 22bdb9230aSGarrett D'Amore# uts/intel/mii/Makefile 23bdb9230aSGarrett D'Amore# 240dc2366fSVenugopal Iyer# Copyright 2010 Sun Microsystems, Inc. All rights reserved. 25bdb9230aSGarrett D'Amore# Use is subject to license terms. 26bdb9230aSGarrett D'Amore# 27b6b206fcSJohn Levon# Copyright (c) 2018, Joyent, Inc. 28bdb9230aSGarrett D'Amore 29bdb9230aSGarrett D'Amore# 30bdb9230aSGarrett D'Amore# Path to the base of the uts directory tree (usually /usr/src/uts). 31bdb9230aSGarrett D'Amore# 32bdb9230aSGarrett D'AmoreUTSBASE = ../.. 33bdb9230aSGarrett D'Amore 34bdb9230aSGarrett D'Amore# 35bdb9230aSGarrett D'Amore# Define the module and object file sets. 36bdb9230aSGarrett D'Amore# 37bdb9230aSGarrett D'AmoreMODULE = mii 38bdb9230aSGarrett D'AmoreOBJECTS = $(MII_OBJS:%=$(OBJS_DIR)/%) 39bdb9230aSGarrett D'AmoreROOTMODULE = $(ROOT_MISC_DIR)/$(MODULE) 40bdb9230aSGarrett D'Amore 41bdb9230aSGarrett D'Amore# 42bdb9230aSGarrett D'Amore# Include common rules. 43bdb9230aSGarrett D'Amore# 44bdb9230aSGarrett D'Amoreinclude $(UTSBASE)/intel/Makefile.intel 45bdb9230aSGarrett D'Amore 46bdb9230aSGarrett D'Amore# 47bdb9230aSGarrett D'Amore# Define targets 48bdb9230aSGarrett D'Amore# 49bdb9230aSGarrett D'AmoreALL_TARGET = $(BINARY) 50bdb9230aSGarrett D'AmoreINSTALL_TARGET = $(BINARY) $(ROOTMODULE) 51bdb9230aSGarrett D'Amore 52*82d0151aSRichard LoweLDFLAGS += -N misc/mac 53bdb9230aSGarrett D'Amore 547014882cSRichard LoweCERRWARN += -_gcc=-Wno-switch 55d3b5f563SJohn LevonCERRWARN += $(CNOWARN_UNINIT) 567014882cSRichard Lowe 57b6b206fcSJohn Levon# needs work 58b6b206fcSJohn LevonSMOFF += all_func_returns 59b6b206fcSJohn Levon 60bdb9230aSGarrett D'Amore# 61bdb9230aSGarrett D'Amore# Default build targets. 62bdb9230aSGarrett D'Amore# 63bdb9230aSGarrett D'Amore.KEEP_STATE: 64bdb9230aSGarrett D'Amore 65bdb9230aSGarrett D'Amoredef: $(DEF_DEPS) 66bdb9230aSGarrett D'Amore 67bdb9230aSGarrett D'Amoreall: $(ALL_DEPS) 68bdb9230aSGarrett D'Amore 69bdb9230aSGarrett D'Amoreclean: $(CLEAN_DEPS) 70bdb9230aSGarrett D'Amore 71bdb9230aSGarrett D'Amoreclobber: $(CLOBBER_DEPS) 72bdb9230aSGarrett D'Amore 73bdb9230aSGarrett D'Amoreinstall: $(INSTALL_DEPS) 74bdb9230aSGarrett D'Amore 75bdb9230aSGarrett D'Amore# 76bdb9230aSGarrett D'Amore# Include common targets. 77bdb9230aSGarrett D'Amore# 78bdb9230aSGarrett D'Amoreinclude $(UTSBASE)/intel/Makefile.targ 79