xref: /illumos-gate/usr/src/uts/intel/amd8111s/Makefile (revision 82d0151a)
175ab5f91Slh#
275ab5f91Slh# CDDL HEADER START
375ab5f91Slh#
475ab5f91Slh# The contents of this file are subject to the terms of the
575ab5f91Slh# Common Development and Distribution License (the "License").
675ab5f91Slh# You may not use this file except in compliance with the License.
775ab5f91Slh#
875ab5f91Slh# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
975ab5f91Slh# or http://www.opensolaris.org/os/licensing.
1075ab5f91Slh# See the License for the specific language governing permissions
1175ab5f91Slh# and limitations under the License.
1275ab5f91Slh#
1375ab5f91Slh# When distributing Covered Code, include this CDDL HEADER in each
1475ab5f91Slh# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1575ab5f91Slh# If applicable, add the following below this CDDL HEADER, with the
1675ab5f91Slh# fields enclosed by brackets "[]" replaced with your own identifying
1775ab5f91Slh# information: Portions Copyright [yyyy] [name of copyright owner]
1875ab5f91Slh#
1975ab5f91Slh# CDDL HEADER END
2075ab5f91Slh#
2175ab5f91Slh#
2222eb7cb5Sgd# Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
2375ab5f91Slh# Use is subject to license terms.
2475ab5f91Slh#
25b6b206fcSJohn Levon# Copyright (c) 2018, Joyent, Inc.
2675ab5f91Slh
2775ab5f91Slh#
2875ab5f91Slh#	Path to the base of the uts directory tree (usually /usr/src/uts).
2975ab5f91Slh#
3075ab5f91SlhUTSBASE		= ../..
3175ab5f91Slh
3275ab5f91Slh#
3375ab5f91Slh#	Define the module and object file sets.
3475ab5f91Slh#
3575ab5f91SlhMODULE		= amd8111s
3675ab5f91SlhOBJECTS		= $(AMD8111S_OBJS:%=$(OBJS_DIR)/%)
3775ab5f91SlhROOTMODULE	= $(ROOT_DRV_DIR)/$(MODULE)
3875ab5f91Slh
3975ab5f91Slh#
4075ab5f91Slh#	Include common rules.
4175ab5f91Slh#
4275ab5f91Slhinclude $(UTSBASE)/intel/Makefile.intel
4375ab5f91Slh
4475ab5f91Slh#
4575ab5f91Slh#	Define targets
4675ab5f91Slh#
4775ab5f91SlhALL_TARGET	= $(BINARY)
4875ab5f91SlhINSTALL_TARGET	= $(BINARY) $(ROOTMODULE)
4975ab5f91Slh
5075ab5f91Slh#
5175ab5f91Slh#	Overrides
5275ab5f91Slh#
5375ab5f91Slh
5475ab5f91Slh#
5522eb7cb5Sgd# Driver depends on GLDv3
5675ab5f91Slh#
57*82d0151aSRichard LoweLDFLAGS		+= -N misc/mac
5875ab5f91Slh
59b6b206fcSJohn Levon# seems wrong
60b6b206fcSJohn Levon$(OBJS_DIR)/amd8111s_hw.o := SMOFF += precedence
61b6b206fcSJohn Levon
6275ab5f91Slh#
6375ab5f91Slh#	Default build targets.
6475ab5f91Slh#
6575ab5f91Slh.KEEP_STATE:
6675ab5f91Slh
6775ab5f91Slhdef:		$(DEF_DEPS)
6875ab5f91Slh
6975ab5f91Slhall:		$(ALL_DEPS)
7075ab5f91Slh
7175ab5f91Slhclean:		$(CLEAN_DEPS)
7275ab5f91Slh
7375ab5f91Slhclobber:	$(CLOBBER_DEPS)
7475ab5f91Slh
7575ab5f91Slhinstall:	$(INSTALL_DEPS)
7675ab5f91Slh
7775ab5f91Slh#
7875ab5f91Slh#	Include common targets.
7975ab5f91Slh#
8075ab5f91Slhinclude $(UTSBASE)/intel/Makefile.targ
81