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