xref: /illumos-gate/usr/src/uts/intel/rge/Makefile (revision 1bf7fef05f03f468064d8133608dbb24ec3acaa1)
1c7fd2ed0Sgs150176#
2c7fd2ed0Sgs150176# CDDL HEADER START
3c7fd2ed0Sgs150176#
4c7fd2ed0Sgs150176# The contents of this file are subject to the terms of the
5bb25c06cSjg# Common Development and Distribution License (the "License").
6bb25c06cSjg# You may not use this file except in compliance with the License.
7c7fd2ed0Sgs150176#
8c7fd2ed0Sgs150176# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9c7fd2ed0Sgs150176# or http://www.opensolaris.org/os/licensing.
10c7fd2ed0Sgs150176# See the License for the specific language governing permissions
11c7fd2ed0Sgs150176# and limitations under the License.
12c7fd2ed0Sgs150176#
13c7fd2ed0Sgs150176# When distributing Covered Code, include this CDDL HEADER in each
14c7fd2ed0Sgs150176# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15c7fd2ed0Sgs150176# If applicable, add the following below this CDDL HEADER, with the
16c7fd2ed0Sgs150176# fields enclosed by brackets "[]" replaced with your own identifying
17c7fd2ed0Sgs150176# information: Portions Copyright [yyyy] [name of copyright owner]
18c7fd2ed0Sgs150176#
19c7fd2ed0Sgs150176# CDDL HEADER END
20c7fd2ed0Sgs150176#
21c7fd2ed0Sgs150176#
2222eb7cb5Sgd78059# Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
23c7fd2ed0Sgs150176# Use is subject to license terms.
24c7fd2ed0Sgs150176#
25b6b206fcSJohn Levon# Copyright (c) 2018, Joyent, Inc.
26c7fd2ed0Sgs150176
27c7fd2ed0Sgs150176#
28c7fd2ed0Sgs150176#	Path to the base of the uts directory tree (usually /usr/src/uts).
29c7fd2ed0Sgs150176#
30c7fd2ed0Sgs150176UTSBASE		= ../..
31c7fd2ed0Sgs150176
32c7fd2ed0Sgs150176#
33c7fd2ed0Sgs150176#	Define the module and object file sets.
34c7fd2ed0Sgs150176#
35c7fd2ed0Sgs150176MODULE		= rge
36c7fd2ed0Sgs150176OBJECTS		= $(RGE_OBJS:%=$(OBJS_DIR)/%)
37c7fd2ed0Sgs150176ROOTMODULE	= $(ROOT_DRV_DIR)/$(MODULE)
38c7fd2ed0Sgs150176
39c7fd2ed0Sgs150176#
40c7fd2ed0Sgs150176#	Include common rules.
41c7fd2ed0Sgs150176#
42c7fd2ed0Sgs150176include $(UTSBASE)/intel/Makefile.intel
43c7fd2ed0Sgs150176
44c7fd2ed0Sgs150176#
45c7fd2ed0Sgs150176#	Define targets
46c7fd2ed0Sgs150176#
47c7fd2ed0Sgs150176ALL_TARGET	= $(BINARY)
48c7fd2ed0Sgs150176INSTALL_TARGET	= $(BINARY) $(ROOTMODULE)
49c7fd2ed0Sgs150176
50c7fd2ed0Sgs150176#
51c7fd2ed0Sgs150176#	Overrides
52c7fd2ed0Sgs150176#
53c7fd2ed0Sgs150176
54c7fd2ed0Sgs150176#
55c7fd2ed0Sgs150176# Driver depends on GLD & IP
56c7fd2ed0Sgs150176#
57*82d0151aSRichard LoweLDFLAGS		+= -N misc/mac -N drv/ip
58c7fd2ed0Sgs150176
59c7fd2ed0Sgs150176#
600aaef2f5SRichard Lowe# For now, disable these warnings; maintainers should endeavor
610aaef2f5SRichard Lowe# to investigate and remove these for maximum coverage.
62bb25c06cSjg# Please do not carry these forward to new Makefiles.
63bb25c06cSjg#
64bb25c06cSjg
657014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-switch
66d3b5f563SJohn LevonCERRWARN	+= $(CNOWARN_UNINIT)
677014882cSRichard Lowe
68bb25c06cSjg#
69c7fd2ed0Sgs150176#	Default build targets.
70c7fd2ed0Sgs150176#
71c7fd2ed0Sgs150176.KEEP_STATE:
72c7fd2ed0Sgs150176
73c7fd2ed0Sgs150176def:		$(DEF_DEPS)
74c7fd2ed0Sgs150176
75c7fd2ed0Sgs150176all:		$(ALL_DEPS)
76c7fd2ed0Sgs150176
77c7fd2ed0Sgs150176clean:		$(CLEAN_DEPS)
78c7fd2ed0Sgs150176
79c7fd2ed0Sgs150176clobber:	$(CLOBBER_DEPS)
80c7fd2ed0Sgs150176
81c7fd2ed0Sgs150176install:	$(INSTALL_DEPS)
82c7fd2ed0Sgs150176
83c7fd2ed0Sgs150176#
84c7fd2ed0Sgs150176#	Include common targets.
85c7fd2ed0Sgs150176#
86c7fd2ed0Sgs150176include $(UTSBASE)/intel/Makefile.targ
87