xref: /illumos-gate/usr/src/uts/intel/afe/Makefile (revision 82d0151a)
11959748cSgd#
21959748cSgd# CDDL HEADER START
31959748cSgd#
41959748cSgd# The contents of this file are subject to the terms of the
51959748cSgd# Common Development and Distribution License (the "License").
61959748cSgd# You may not use this file except in compliance with the License.
71959748cSgd#
81959748cSgd# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
91959748cSgd# or http://www.opensolaris.org/os/licensing.
101959748cSgd# See the License for the specific language governing permissions
111959748cSgd# and limitations under the License.
121959748cSgd#
131959748cSgd# When distributing Covered Code, include this CDDL HEADER in each
141959748cSgd# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
151959748cSgd# If applicable, add the following below this CDDL HEADER, with the
161959748cSgd# fields enclosed by brackets "[]" replaced with your own identifying
171959748cSgd# information: Portions Copyright [yyyy] [name of copyright owner]
181959748cSgd#
191959748cSgd# CDDL HEADER END
201959748cSgd#
211959748cSgd#
22bdb9230aSGarrett D'Amore# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
231959748cSgd# Use is subject to license terms.
241959748cSgd#
251959748cSgd#	This makefile drives the production of the ADMtek
261959748cSgd#	Ethernet (AFE) driver module in intel systems
271959748cSgd#
281959748cSgd
291959748cSgd#
301959748cSgd#	Path to the base of the uts directory tree (usually /usr/src/uts).
311959748cSgd#
321959748cSgdUTSBASE		= ../..
331959748cSgd
341959748cSgd#
351959748cSgd#	Define the module and object file sets.
361959748cSgd#
371959748cSgdMODULE		= afe
381959748cSgdOBJECTS		= $(AFE_OBJS:%=$(OBJS_DIR)/%)
391959748cSgdROOTMODULE	= $(ROOT_DRV_DIR)/$(MODULE)
401959748cSgd
411959748cSgd#
421959748cSgd#	Include common rules.
431959748cSgd#
441959748cSgdinclude $(UTSBASE)/intel/Makefile.intel
451959748cSgd
461959748cSgd#
471959748cSgd#	Define targets
481959748cSgd#
491959748cSgdALL_TARGET	= $(BINARY)
501959748cSgdINSTALL_TARGET	= $(BINARY) $(ROOTMODULE)
511959748cSgd
521959748cSgd#
531959748cSgd#	Overrides
541959748cSgd#
551959748cSgd
561959748cSgd#
571959748cSgd# Driver depends on GLD
581959748cSgd#
59*82d0151aSRichard LoweLDFLAGS		+= -N misc/mac -Nmisc/mii
601959748cSgd
611959748cSgd#
621959748cSgd#	Default build targets.
631959748cSgd#
641959748cSgd.KEEP_STATE:
651959748cSgd
661959748cSgddef:		$(DEF_DEPS)
671959748cSgd
681959748cSgdall:		$(ALL_DEPS)
691959748cSgd
701959748cSgdclean:		$(CLEAN_DEPS)
711959748cSgd
721959748cSgdclobber:	$(CLOBBER_DEPS)
731959748cSgd
741959748cSgdinstall:	$(INSTALL_DEPS)
751959748cSgd
761959748cSgd#
771959748cSgd#	Include common targets.
781959748cSgd#
791959748cSgdinclude $(UTSBASE)/intel/Makefile.targ
80