xref: /illumos-gate/usr/src/uts/intel/dnet/Makefile (revision 82d0151a507442720a3aea34c8925041894ab173)
1ae115bc7Smrj#
2ae115bc7Smrj# CDDL HEADER START
3ae115bc7Smrj#
4ae115bc7Smrj# The contents of this file are subject to the terms of the
5ae115bc7Smrj# Common Development and Distribution License (the "License").
6ae115bc7Smrj# You may not use this file except in compliance with the License.
7ae115bc7Smrj#
8ae115bc7Smrj# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9ae115bc7Smrj# or http://www.opensolaris.org/os/licensing.
10ae115bc7Smrj# See the License for the specific language governing permissions
11ae115bc7Smrj# and limitations under the License.
12ae115bc7Smrj#
13ae115bc7Smrj# When distributing Covered Code, include this CDDL HEADER in each
14ae115bc7Smrj# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15ae115bc7Smrj# If applicable, add the following below this CDDL HEADER, with the
16ae115bc7Smrj# fields enclosed by brackets "[]" replaced with your own identifying
17ae115bc7Smrj# information: Portions Copyright [yyyy] [name of copyright owner]
18ae115bc7Smrj#
19ae115bc7Smrj# CDDL HEADER END
20ae115bc7Smrj#
21ae115bc7Smrj#
22ae115bc7Smrj# uts/intel/dnet/Makefile
23ae115bc7Smrj#
24bdb9230aSGarrett D'Amore# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
25ae115bc7Smrj# Use is subject to license terms.
26ae115bc7Smrj#
27b6b206fcSJohn Levon# Copyright (c) 2018, Joyent, Inc.
28ae115bc7Smrj
29ae115bc7Smrj#
30ae115bc7Smrj#	Path to the base of the uts directory tree (usually /usr/src/uts).
31ae115bc7Smrj#
32ae115bc7SmrjUTSBASE	= ../..
33ae115bc7Smrj
34ae115bc7Smrj#
35ae115bc7Smrj#	Define the module and object file sets.
36ae115bc7Smrj#
37ae115bc7SmrjMODULE		= dnet
38ae115bc7SmrjOBJECTS		= $(DNET_OBJS:%=$(OBJS_DIR)/%)
39ae115bc7SmrjROOTMODULE	= $(ROOT_DRV_DIR)/$(MODULE)
40ae115bc7Smrj
41ae115bc7Smrj#
42ae115bc7Smrj#	Include common rules.
43ae115bc7Smrj#
44ae115bc7Smrjinclude $(UTSBASE)/intel/Makefile.intel
45ae115bc7Smrj
46ae115bc7Smrj#
47ae115bc7Smrj#	Define targets
48ae115bc7Smrj#
49bdb9230aSGarrett D'AmoreALL_TARGET	= $(BINARY)
50bdb9230aSGarrett D'AmoreINSTALL_TARGET	= $(BINARY) $(ROOTMODULE)
51ae115bc7Smrj
52ae115bc7Smrj#
530aaef2f5SRichard Lowe# For now, disable these warnings; maintainers should endeavor
540aaef2f5SRichard Lowe# to investigate and remove these for maximum coverage.
55ae115bc7Smrj# Please do not carry these forward to new Makefiles.
56ae115bc7Smrj#
57ae115bc7Smrj
587014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-parentheses
59d3b5f563SJohn LevonCERRWARN	+= $(CNOWARN_UNINIT)
607014882cSRichard Lowe
61b6b206fcSJohn Levon# needs work
62b6b206fcSJohn Levon$(OBJS_DIR)/dnet.o := SMOFF += index_overflow
63b6b206fcSJohn Levon$(OBJS_DIR)/dnet_mii.o := SMOFF += all_func_returns
64b6b206fcSJohn Levon
65*82d0151aSRichard LoweLDFLAGS		+= -N misc/mac
6698e8d175SSteven Stallion
67ae115bc7Smrj#
68ae115bc7Smrj#	Default build targets.
69ae115bc7Smrj#
70ae115bc7Smrj.KEEP_STATE:
71ae115bc7Smrj
72ae115bc7Smrjdef:		$(DEF_DEPS)
73ae115bc7Smrj
74ae115bc7Smrjall:		$(ALL_DEPS)
75ae115bc7Smrj
76ae115bc7Smrjclean:		$(CLEAN_DEPS)
77ae115bc7Smrj
78ae115bc7Smrjclobber:	$(CLOBBER_DEPS)
79ae115bc7Smrj
80ae115bc7Smrjinstall:	$(INSTALL_DEPS)
81ae115bc7Smrj
82ae115bc7Smrj#
83ae115bc7Smrj#	Include common targets.
84ae115bc7Smrj#
85ae115bc7Smrjinclude $(UTSBASE)/intel/Makefile.targ
86