xref: /illumos-gate/usr/src/uts/intel/mxfe/Makefile (revision 82d0151a507442720a3aea34c8925041894ab173)
129e83d4bSgd78059#
229e83d4bSgd78059# CDDL HEADER START
329e83d4bSgd78059#
429e83d4bSgd78059# The contents of this file are subject to the terms of the
529e83d4bSgd78059# Common Development and Distribution License (the "License").
629e83d4bSgd78059# You may not use this file except in compliance with the License.
729e83d4bSgd78059#
829e83d4bSgd78059# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
929e83d4bSgd78059# or http://www.opensolaris.org/os/licensing.
1029e83d4bSgd78059# See the License for the specific language governing permissions
1129e83d4bSgd78059# and limitations under the License.
1229e83d4bSgd78059#
1329e83d4bSgd78059# When distributing Covered Code, include this CDDL HEADER in each
1429e83d4bSgd78059# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1529e83d4bSgd78059# If applicable, add the following below this CDDL HEADER, with the
1629e83d4bSgd78059# fields enclosed by brackets "[]" replaced with your own identifying
1729e83d4bSgd78059# information: Portions Copyright [yyyy] [name of copyright owner]
1829e83d4bSgd78059#
1929e83d4bSgd78059# CDDL HEADER END
2029e83d4bSgd78059#
2129e83d4bSgd78059#
2229e83d4bSgd78059# Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
2329e83d4bSgd78059# Use is subject to license terms.
2429e83d4bSgd78059#
257014882cSRichard Lowe
2629e83d4bSgd78059#
2729e83d4bSgd78059#	This makefile drives the production of the Macronix
2829e83d4bSgd78059#	Fast Ethernet (MXFE) driver module in intel systems
2929e83d4bSgd78059#
3029e83d4bSgd78059
3129e83d4bSgd78059#
3229e83d4bSgd78059#	Path to the base of the uts directory tree (usually /usr/src/uts).
3329e83d4bSgd78059#
3429e83d4bSgd78059UTSBASE		= ../..
3529e83d4bSgd78059
3629e83d4bSgd78059#
3729e83d4bSgd78059#	Define the module and object file sets.
3829e83d4bSgd78059#
3929e83d4bSgd78059MODULE		= mxfe
4029e83d4bSgd78059OBJECTS		= $(MXFE_OBJS:%=$(OBJS_DIR)/%)
4129e83d4bSgd78059ROOTMODULE	= $(ROOT_DRV_DIR)/$(MODULE)
4229e83d4bSgd78059
4329e83d4bSgd78059#
4429e83d4bSgd78059#	Include common rules.
4529e83d4bSgd78059#
4629e83d4bSgd78059include $(UTSBASE)/intel/Makefile.intel
4729e83d4bSgd78059
4829e83d4bSgd78059#
4929e83d4bSgd78059#	Define targets
5029e83d4bSgd78059#
5129e83d4bSgd78059ALL_TARGET	= $(BINARY)
5229e83d4bSgd78059INSTALL_TARGET	= $(BINARY) $(ROOTMODULE)
5329e83d4bSgd78059
5429e83d4bSgd78059#
5529e83d4bSgd78059#	Overrides
5629e83d4bSgd78059#
5729e83d4bSgd78059
587014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-switch
597014882cSRichard Lowe
6029e83d4bSgd78059#
6129e83d4bSgd78059# Driver depends on GLDv3
6229e83d4bSgd78059#
63*82d0151aSRichard LoweLDFLAGS		+= -N misc/mac
6429e83d4bSgd78059
6529e83d4bSgd78059#
6629e83d4bSgd78059#	Default build targets.
6729e83d4bSgd78059#
6829e83d4bSgd78059.KEEP_STATE:
6929e83d4bSgd78059
7029e83d4bSgd78059def:		$(DEF_DEPS)
7129e83d4bSgd78059
7229e83d4bSgd78059all:		$(ALL_DEPS)
7329e83d4bSgd78059
7429e83d4bSgd78059clean:		$(CLEAN_DEPS)
7529e83d4bSgd78059
7629e83d4bSgd78059clobber:	$(CLOBBER_DEPS)
7729e83d4bSgd78059
7829e83d4bSgd78059install:	$(INSTALL_DEPS)
7929e83d4bSgd78059
8029e83d4bSgd78059#
8129e83d4bSgd78059#	Include common targets.
8229e83d4bSgd78059#
8329e83d4bSgd78059include $(UTSBASE)/intel/Makefile.targ
84