Makefile revision 7014882c6a3672fd0e5d60200af8643ae53c5928
0c91911b4d1e872b87eaf6431ed47fe24d18dd43Mark Andrews#
33d0a7767d53cb366039fd0ac4f63cf8a9c351b0Tinderbox User# CDDL HEADER START
663272199096ed57917f2bfb1d748a0a622b7b24Tinderbox User#
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User# The contents of this file are subject to the terms of the
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User# Common Development and Distribution License (the "License").
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User# You may not use this file except in compliance with the License.
0c91911b4d1e872b87eaf6431ed47fe24d18dd43Mark Andrews#
0c91911b4d1e872b87eaf6431ed47fe24d18dd43Mark Andrews# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
0c91911b4d1e872b87eaf6431ed47fe24d18dd43Mark Andrews# or http://www.opensolaris.org/os/licensing.
0c91911b4d1e872b87eaf6431ed47fe24d18dd43Mark Andrews# See the License for the specific language governing permissions
0c91911b4d1e872b87eaf6431ed47fe24d18dd43Mark Andrews# and limitations under the License.
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User#
0c91911b4d1e872b87eaf6431ed47fe24d18dd43Mark Andrews# When distributing Covered Code, include this CDDL HEADER in each
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
0c91911b4d1e872b87eaf6431ed47fe24d18dd43Mark Andrews# If applicable, add the following below this CDDL HEADER, with the
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# fields enclosed by brackets "[]" replaced with your own identifying
0c91911b4d1e872b87eaf6431ed47fe24d18dd43Mark Andrews# information: Portions Copyright [yyyy] [name of copyright owner]
dec590a3deb8e87380a8bd3a77d535dba3729bf6Tinderbox User#
0c91911b4d1e872b87eaf6431ed47fe24d18dd43Mark Andrews# CDDL HEADER END
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User#
0c91911b4d1e872b87eaf6431ed47fe24d18dd43Mark Andrews#
e62b9c9ce6413fb183c8116381e75dcd07ca5517Tinderbox User# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
e62b9c9ce6413fb183c8116381e75dcd07ca5517Tinderbox User# Use is subject to license terms.
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User#
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# uts/intel/e1000g/Makefile
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User#
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# This makefile drives the production of the iprb
914ed533b846624c8ba5e7a72a5e8e50c9018b0aTinderbox User# network driver kernel module.
914ed533b846624c8ba5e7a72a5e8e50c9018b0aTinderbox User#
914ed533b846624c8ba5e7a72a5e8e50c9018b0aTinderbox User# intel architecture dependent
914ed533b846624c8ba5e7a72a5e8e50c9018b0aTinderbox User#
914ed533b846624c8ba5e7a72a5e8e50c9018b0aTinderbox User
914ed533b846624c8ba5e7a72a5e8e50c9018b0aTinderbox User#
914ed533b846624c8ba5e7a72a5e8e50c9018b0aTinderbox User# Paths to the base of the uts directory trees
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User#
914ed533b846624c8ba5e7a72a5e8e50c9018b0aTinderbox UserUTSBASE = ../..
914ed533b846624c8ba5e7a72a5e8e50c9018b0aTinderbox User
914ed533b846624c8ba5e7a72a5e8e50c9018b0aTinderbox User#
914ed533b846624c8ba5e7a72a5e8e50c9018b0aTinderbox User# Define the module and object file sets.
914ed533b846624c8ba5e7a72a5e8e50c9018b0aTinderbox User#
914ed533b846624c8ba5e7a72a5e8e50c9018b0aTinderbox UserMODULE = e1000g
914ed533b846624c8ba5e7a72a5e8e50c9018b0aTinderbox UserOBJECTS = $(E1000G_OBJS:%=$(OBJS_DIR)/%)
0c91911b4d1e872b87eaf6431ed47fe24d18dd43Mark AndrewsLINTS = $(E1000G_OBJS:%.o=$(LINTS_DIR)/%.ln)
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserCONF_SRCDIR = $(UTSBASE)/common/io/e1000g
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User#
0c91911b4d1e872b87eaf6431ed47fe24d18dd43Mark Andrews# Include common rules.
914ed533b846624c8ba5e7a72a5e8e50c9018b0aTinderbox User#
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox Userinclude $(UTSBASE)/intel/Makefile.intel
e62b9c9ce6413fb183c8116381e75dcd07ca5517Tinderbox User
914ed533b846624c8ba5e7a72a5e8e50c9018b0aTinderbox UserCFLAGS += -D_KERNEL -Di386 -DNEWSTAT -DNOMUT -DRCVWORKAROUND \
e62b9c9ce6413fb183c8116381e75dcd07ca5517Tinderbox User -DINTEL_IP \
e62b9c9ce6413fb183c8116381e75dcd07ca5517Tinderbox User -DPAXSON -DBAY_CITY \
e62b9c9ce6413fb183c8116381e75dcd07ca5517Tinderbox User -DTANAX_WORKAROUND -I$(UTSBASE)/common/io/e1000g
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User
e62b9c9ce6413fb183c8116381e75dcd07ca5517Tinderbox UserCFLAGS_CPP_COMMENTS = -xCC
e62b9c9ce6413fb183c8116381e75dcd07ca5517Tinderbox User
e62b9c9ce6413fb183c8116381e75dcd07ca5517Tinderbox UserCFLAGS += $(CFLAGS_CPP_COMMENTS)
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User
0c91911b4d1e872b87eaf6431ed47fe24d18dd43Mark AndrewsCERRWARN += -_gcc=-Wno-uninitialized
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserCERRWARN += -_gcc=-Wno-parentheses
e62b9c9ce6413fb183c8116381e75dcd07ca5517Tinderbox UserCERRWARN += -_gcc=-Wno-switch
e62b9c9ce6413fb183c8116381e75dcd07ca5517Tinderbox UserCERRWARN += -_gcc=-Wno-unused-label
0c91911b4d1e872b87eaf6431ed47fe24d18dd43Mark AndrewsCERRWARN += -_gcc=-Wno-unused-variable
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User
e62b9c9ce6413fb183c8116381e75dcd07ca5517Tinderbox User#
e62b9c9ce6413fb183c8116381e75dcd07ca5517Tinderbox User# Define targets
e62b9c9ce6413fb183c8116381e75dcd07ca5517Tinderbox User#
e62b9c9ce6413fb183c8116381e75dcd07ca5517Tinderbox UserALL_TARGET = $(BINARY) $(CONFMOD)
e62b9c9ce6413fb183c8116381e75dcd07ca5517Tinderbox UserLINT_TARGET = $(MODULE).lint
e62b9c9ce6413fb183c8116381e75dcd07ca5517Tinderbox UserINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
e62b9c9ce6413fb183c8116381e75dcd07ca5517Tinderbox User
0c91911b4d1e872b87eaf6431ed47fe24d18dd43Mark Andrews#
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# Driver depends on MAC
0c91911b4d1e872b87eaf6431ed47fe24d18dd43Mark Andrews#
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserLDFLAGS += -dy -N misc/mac
0c91911b4d1e872b87eaf6431ed47fe24d18dd43Mark Andrews
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User#
e62b9c9ce6413fb183c8116381e75dcd07ca5517Tinderbox User# Default build targets.
e62b9c9ce6413fb183c8116381e75dcd07ca5517Tinderbox User#
6f1205897504b8f50b1785975482c995888dd630Tinderbox User.KEEP_STATE:
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User
6f1205897504b8f50b1785975482c995888dd630Tinderbox Userdef: $(DEF_DEPS)
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User
0c91911b4d1e872b87eaf6431ed47fe24d18dd43Mark Andrewsall: $(ALL_DEPS)
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox Userclean: $(CLEAN_DEPS)
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox Userclobber: $(CLOBBER_DEPS)
0c91911b4d1e872b87eaf6431ed47fe24d18dd43Mark Andrews
0c91911b4d1e872b87eaf6431ed47fe24d18dd43Mark Andrews
0c91911b4d1e872b87eaf6431ed47fe24d18dd43Mark Andrewslint: $(LINT_DEPS)
0c91911b4d1e872b87eaf6431ed47fe24d18dd43Mark Andrews
0c91911b4d1e872b87eaf6431ed47fe24d18dd43Mark Andrewsmodlintlib: $(MODLINTLIB_DEPS)
0c91911b4d1e872b87eaf6431ed47fe24d18dd43Mark Andrews
0c91911b4d1e872b87eaf6431ed47fe24d18dd43Mark Andrewsclean.lint: $(CLEAN_LINT_DEPS)
914ed533b846624c8ba5e7a72a5e8e50c9018b0aTinderbox User
914ed533b846624c8ba5e7a72a5e8e50c9018b0aTinderbox Userinstall: $(INSTALL_DEPS)
0c91911b4d1e872b87eaf6431ed47fe24d18dd43Mark Andrews
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User#
0c91911b4d1e872b87eaf6431ed47fe24d18dd43Mark Andrews# Include common targets.
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User#
e62b9c9ce6413fb183c8116381e75dcd07ca5517Tinderbox Userinclude $(UTSBASE)/intel/Makefile.targ
e62b9c9ce6413fb183c8116381e75dcd07ca5517Tinderbox User