xref: /illumos-gate/usr/src/uts/intel/vr/Makefile (revision 82d0151a507442720a3aea34c8925041894ab173)
1d7ddd43cSJoost Mulders#
2d7ddd43cSJoost Mulders# CDDL HEADER START
3d7ddd43cSJoost Mulders#
4d7ddd43cSJoost Mulders# The contents of this file are subject to the terms of the
5d7ddd43cSJoost Mulders# Common Development and Distribution License (the "License").
6d7ddd43cSJoost Mulders# You may not use this file except in compliance with the License.
7d7ddd43cSJoost Mulders#
8d7ddd43cSJoost Mulders# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9d7ddd43cSJoost Mulders# or http://www.opensolaris.org/os/licensing.
10d7ddd43cSJoost Mulders# See the License for the specific language governing permissions
11d7ddd43cSJoost Mulders# and limitations under the License.
12d7ddd43cSJoost Mulders#
13d7ddd43cSJoost Mulders# When distributing Covered Code, include this CDDL HEADER in each
14d7ddd43cSJoost Mulders# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15d7ddd43cSJoost Mulders# If applicable, add the following below this CDDL HEADER, with the
16d7ddd43cSJoost Mulders# fields enclosed by brackets "[]" replaced with your own identifying
17d7ddd43cSJoost Mulders# information: Portions Copyright [yyyy] [name of copyright owner]
18d7ddd43cSJoost Mulders#
19d7ddd43cSJoost Mulders# CDDL HEADER END
20d7ddd43cSJoost Mulders#
21d7ddd43cSJoost Mulders#
22d7ddd43cSJoost Mulders# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
23d7ddd43cSJoost Mulders# Use is subject to license terms.
24d7ddd43cSJoost Mulders#
25b6b206fcSJohn Levon# Copyright (c) 2018, Joyent, Inc.
26d7ddd43cSJoost Mulders
27d7ddd43cSJoost Mulders# This makefile drives the production of the VIA Rhine Ethernet
28d7ddd43cSJoost Mulders# (vr) driver module in intel systems
29d7ddd43cSJoost Mulders#
30d7ddd43cSJoost Mulders
31d7ddd43cSJoost Mulders#
32d7ddd43cSJoost Mulders#	Path to the base of the uts directory tree (usually /usr/src/uts).
33d7ddd43cSJoost Mulders#
34d7ddd43cSJoost MuldersUTSBASE		= ../..
35d7ddd43cSJoost Mulders
36d7ddd43cSJoost Mulders#
37d7ddd43cSJoost Mulders#	Define the module and object file sets.
38d7ddd43cSJoost Mulders#
39d7ddd43cSJoost MuldersMODULE		= vr
40d7ddd43cSJoost MuldersOBJECTS		= $(VR_OBJS:%=$(OBJS_DIR)/%)
41d7ddd43cSJoost MuldersROOTMODULE	= $(ROOT_DRV_DIR)/$(MODULE)
42d7ddd43cSJoost Mulders
43d7ddd43cSJoost Mulders#
44d7ddd43cSJoost Mulders#	Include common rules.
45d7ddd43cSJoost Mulders#
46d7ddd43cSJoost Muldersinclude $(UTSBASE)/intel/Makefile.intel
47d7ddd43cSJoost Mulders
48d7ddd43cSJoost Mulders#
49d7ddd43cSJoost Mulders#	Define targets
50d7ddd43cSJoost Mulders#
51d7ddd43cSJoost MuldersALL_TARGET	= $(BINARY)
52d7ddd43cSJoost MuldersINSTALL_TARGET	= $(BINARY) $(ROOTMODULE)
53d7ddd43cSJoost Mulders
54d7ddd43cSJoost Mulders#
55d7ddd43cSJoost Mulders#	Overrides
56d7ddd43cSJoost Mulders#
57d7ddd43cSJoost Mulders
587014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-unused-label
59d3b5f563SJohn LevonCERRWARN	+= $(CNOWARN_UNINIT)
607014882cSRichard Lowe
61b6b206fcSJohn Levon# needs work
62b6b206fcSJohn LevonSMOFF += array_condition
63b6b206fcSJohn Levon
64d7ddd43cSJoost Mulders#
65d7ddd43cSJoost Mulders# Driver depends on GLD
66d7ddd43cSJoost Mulders#
67*82d0151aSRichard LoweLDFLAGS		+= -N misc/mac
68d7ddd43cSJoost Mulders
69d7ddd43cSJoost Mulders#
70d7ddd43cSJoost Mulders#	Default build targets.
71d7ddd43cSJoost Mulders#
72d7ddd43cSJoost Mulders.KEEP_STATE:
73d7ddd43cSJoost Mulders
74d7ddd43cSJoost Muldersdef:		$(DEF_DEPS)
75d7ddd43cSJoost Mulders
76d7ddd43cSJoost Muldersall:		$(ALL_DEPS)
77d7ddd43cSJoost Mulders
78d7ddd43cSJoost Muldersclean:		$(CLEAN_DEPS)
79d7ddd43cSJoost Mulders
80d7ddd43cSJoost Muldersclobber:	$(CLOBBER_DEPS)
81d7ddd43cSJoost Mulders
82d7ddd43cSJoost Muldersinstall:	$(INSTALL_DEPS)
83d7ddd43cSJoost Mulders
84d7ddd43cSJoost Mulders#
85d7ddd43cSJoost Mulders#	Include common targets.
86d7ddd43cSJoost Mulders#
87d7ddd43cSJoost Muldersinclude $(UTSBASE)/intel/Makefile.targ
88