xref: /titanic_41/usr/src/uts/intel/mxfe/Makefile (revision 7014882c6a3672fd0e5d60200af8643ae53c5928)
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#
25*7014882cSRichard 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)/%)
4129e83d4bSgd78059LINTS		= $(MXFE_OBJS:%.o=$(LINTS_DIR)/%.ln)
4229e83d4bSgd78059ROOTMODULE	= $(ROOT_DRV_DIR)/$(MODULE)
4329e83d4bSgd78059
4429e83d4bSgd78059#
4529e83d4bSgd78059#	Include common rules.
4629e83d4bSgd78059#
4729e83d4bSgd78059include $(UTSBASE)/intel/Makefile.intel
4829e83d4bSgd78059
4929e83d4bSgd78059#
5029e83d4bSgd78059#	Define targets
5129e83d4bSgd78059#
5229e83d4bSgd78059ALL_TARGET	= $(BINARY)
5329e83d4bSgd78059LINT_TARGET	= $(MODULE).lint
5429e83d4bSgd78059INSTALL_TARGET	= $(BINARY) $(ROOTMODULE)
5529e83d4bSgd78059
5629e83d4bSgd78059#
5729e83d4bSgd78059#	Overrides
5829e83d4bSgd78059#
5929e83d4bSgd78059
60*7014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-switch
61*7014882cSRichard Lowe
6229e83d4bSgd78059#
6329e83d4bSgd78059# Driver depends on GLDv3
6429e83d4bSgd78059#
6529e83d4bSgd78059LDFLAGS		+= -dy -N misc/mac
6629e83d4bSgd78059
6729e83d4bSgd78059#
6829e83d4bSgd78059#	Default build targets.
6929e83d4bSgd78059#
7029e83d4bSgd78059.KEEP_STATE:
7129e83d4bSgd78059
7229e83d4bSgd78059def:		$(DEF_DEPS)
7329e83d4bSgd78059
7429e83d4bSgd78059all:		$(ALL_DEPS)
7529e83d4bSgd78059
7629e83d4bSgd78059clean:		$(CLEAN_DEPS)
7729e83d4bSgd78059
7829e83d4bSgd78059clobber:	$(CLOBBER_DEPS)
7929e83d4bSgd78059
8029e83d4bSgd78059lint:		$(LINT_DEPS)
8129e83d4bSgd78059
8229e83d4bSgd78059modlintlib:	$(MODLINTLIB_DEPS)
8329e83d4bSgd78059
8429e83d4bSgd78059clean.lint:	$(CLEAN_LINT_DEPS)
8529e83d4bSgd78059
8629e83d4bSgd78059install:	$(INSTALL_DEPS)
8729e83d4bSgd78059
8829e83d4bSgd78059#
8929e83d4bSgd78059#	Include common targets.
9029e83d4bSgd78059#
9129e83d4bSgd78059include $(UTSBASE)/intel/Makefile.targ
92