xref: /titanic_41/usr/src/uts/intel/myri10ge/Makefile (revision 310da939904e5e37a19c8a427209c0d4d9683ec8)
104b6cca3Slucy wang - Sun Microsystems - Beijing China#
204b6cca3Slucy wang - Sun Microsystems - Beijing China# CDDL HEADER START
304b6cca3Slucy wang - Sun Microsystems - Beijing China#
404b6cca3Slucy wang - Sun Microsystems - Beijing China# The contents of this file are subject to the terms of the
504b6cca3Slucy wang - Sun Microsystems - Beijing China# Common Development and Distribution License (the "License").
604b6cca3Slucy wang - Sun Microsystems - Beijing China# You may not use this file except in compliance with the License.
704b6cca3Slucy wang - Sun Microsystems - Beijing China#
804b6cca3Slucy wang - Sun Microsystems - Beijing China# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
904b6cca3Slucy wang - Sun Microsystems - Beijing China# or http://www.opensolaris.org/os/licensing.
1004b6cca3Slucy wang - Sun Microsystems - Beijing China# See the License for the specific language governing permissions
1104b6cca3Slucy wang - Sun Microsystems - Beijing China# and limitations under the License.
1204b6cca3Slucy wang - Sun Microsystems - Beijing China#
1304b6cca3Slucy wang - Sun Microsystems - Beijing China# When distributing Covered Code, include this CDDL HEADER in each
1404b6cca3Slucy wang - Sun Microsystems - Beijing China# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1504b6cca3Slucy wang - Sun Microsystems - Beijing China# If applicable, add the following below this CDDL HEADER, with the
1604b6cca3Slucy wang - Sun Microsystems - Beijing China# fields enclosed by brackets "[]" replaced with your own identifying
1704b6cca3Slucy wang - Sun Microsystems - Beijing China# information: Portions Copyright [yyyy] [name of copyright owner]
1804b6cca3Slucy wang - Sun Microsystems - Beijing China#
1904b6cca3Slucy wang - Sun Microsystems - Beijing China# CDDL HEADER END
2004b6cca3Slucy wang - Sun Microsystems - Beijing China#
2104b6cca3Slucy wang - Sun Microsystems - Beijing China#
22*310da939SSurya Prakki# Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
2304b6cca3Slucy wang - Sun Microsystems - Beijing China#
2404b6cca3Slucy wang - Sun Microsystems - Beijing China
2504b6cca3Slucy wang - Sun Microsystems - Beijing China#
2604b6cca3Slucy wang - Sun Microsystems - Beijing China#	Path to the base of the uts directory tree (usually /usr/src/uts).
2704b6cca3Slucy wang - Sun Microsystems - Beijing China#
2804b6cca3Slucy wang - Sun Microsystems - Beijing ChinaUTSBASE		= ../..
2904b6cca3Slucy wang - Sun Microsystems - Beijing China
3004b6cca3Slucy wang - Sun Microsystems - Beijing China#
3104b6cca3Slucy wang - Sun Microsystems - Beijing China#	Define the module and object file sets.
3204b6cca3Slucy wang - Sun Microsystems - Beijing China#
3304b6cca3Slucy wang - Sun Microsystems - Beijing ChinaMODULE		= myri10ge
3404b6cca3Slucy wang - Sun Microsystems - Beijing China
3504b6cca3Slucy wang - Sun Microsystems - Beijing ChinaOBJECTS		+= $(MYRI10GE_OBJS:%=$(OBJS_DIR)/%)
3604b6cca3Slucy wang - Sun Microsystems - Beijing China
3704b6cca3Slucy wang - Sun Microsystems - Beijing ChinaLINTS	    += $(MYRI10GE_OBJS:%.o=$(LINTS_DIR)/%.ln)
3804b6cca3Slucy wang - Sun Microsystems - Beijing China
3904b6cca3Slucy wang - Sun Microsystems - Beijing ChinaROOTMODULE	= $(ROOT_DRV_DIR)/$(MODULE)
4004b6cca3Slucy wang - Sun Microsystems - Beijing China
4104b6cca3Slucy wang - Sun Microsystems - Beijing China#
4204b6cca3Slucy wang - Sun Microsystems - Beijing China#	Include common rules.
4304b6cca3Slucy wang - Sun Microsystems - Beijing China#
4404b6cca3Slucy wang - Sun Microsystems - Beijing Chinainclude $(UTSBASE)/intel/Makefile.intel
4504b6cca3Slucy wang - Sun Microsystems - Beijing China
4604b6cca3Slucy wang - Sun Microsystems - Beijing China#
4704b6cca3Slucy wang - Sun Microsystems - Beijing China#	Define targets
4804b6cca3Slucy wang - Sun Microsystems - Beijing China#
4904b6cca3Slucy wang - Sun Microsystems - Beijing ChinaALL_TARGET	    = $(BINARY)
5004b6cca3Slucy wang - Sun Microsystems - Beijing ChinaLINT_TARGET	    = $(MODULE).lint
5104b6cca3Slucy wang - Sun Microsystems - Beijing ChinaINSTALL_TARGET  = $(BINARY) $(ROOTMODULE)
5204b6cca3Slucy wang - Sun Microsystems - Beijing China
5304b6cca3Slucy wang - Sun Microsystems - Beijing China#
5404b6cca3Slucy wang - Sun Microsystems - Beijing China# Overrides
5504b6cca3Slucy wang - Sun Microsystems - Beijing China#
5604b6cca3Slucy wang - Sun Microsystems - Beijing ChinaLINTTAGS  += -DSOLARIS_S11 -erroff=E_STATIC_UNUSED
5704b6cca3Slucy wang - Sun Microsystems - Beijing China
5804b6cca3Slucy wang - Sun Microsystems - Beijing China#COPTIMIZE = -xO4
5904b6cca3Slucy wang - Sun Microsystems - Beijing China
6004b6cca3Slucy wang - Sun Microsystems - Beijing ChinaINC_PATH  += -I$(UTSBASE)/common/io/myri10ge -I$(UTSBASE)/common/io/myri10ge/firmware
6104b6cca3Slucy wang - Sun Microsystems - Beijing China
62*310da939SSurya PrakkiCFLAGS    += -DSOLARIS_S11
6304b6cca3Slucy wang - Sun Microsystems - Beijing China
6404b6cca3Slucy wang - Sun Microsystems - Beijing China#
6504b6cca3Slucy wang - Sun Microsystems - Beijing China# Driver depends on MAC
6604b6cca3Slucy wang - Sun Microsystems - Beijing China#
6704b6cca3Slucy wang - Sun Microsystems - Beijing ChinaLDFLAGS	  += -dy -N misc/mac -N drv/ip
6804b6cca3Slucy wang - Sun Microsystems - Beijing China
6904b6cca3Slucy wang - Sun Microsystems - Beijing China#
7004b6cca3Slucy wang - Sun Microsystems - Beijing China#	Default build targets.
7104b6cca3Slucy wang - Sun Microsystems - Beijing China#
7204b6cca3Slucy wang - Sun Microsystems - Beijing China.KEEP_STATE:
7304b6cca3Slucy wang - Sun Microsystems - Beijing China
7404b6cca3Slucy wang - Sun Microsystems - Beijing Chinadef:		    $(DEF_DEPS)
7504b6cca3Slucy wang - Sun Microsystems - Beijing China
7604b6cca3Slucy wang - Sun Microsystems - Beijing Chinaall:		    $(ALL_DEPS)
7704b6cca3Slucy wang - Sun Microsystems - Beijing China
7804b6cca3Slucy wang - Sun Microsystems - Beijing Chinaclean:		  $(CLEAN_DEPS)
7904b6cca3Slucy wang - Sun Microsystems - Beijing China
8004b6cca3Slucy wang - Sun Microsystems - Beijing Chinaclobber:	  $(CLOBBER_DEPS)
8104b6cca3Slucy wang - Sun Microsystems - Beijing China
8204b6cca3Slucy wang - Sun Microsystems - Beijing Chinalint:		    $(LINT_DEPS)
8304b6cca3Slucy wang - Sun Microsystems - Beijing China
8404b6cca3Slucy wang - Sun Microsystems - Beijing Chinamodlintlib: $(MODLINTLIB_DEPS)
8504b6cca3Slucy wang - Sun Microsystems - Beijing China
8604b6cca3Slucy wang - Sun Microsystems - Beijing Chinaclean.lint: $(CLEAN_LINT_DEPS)
8704b6cca3Slucy wang - Sun Microsystems - Beijing China
8804b6cca3Slucy wang - Sun Microsystems - Beijing Chinainstall:	  $(INSTALL_DEPS)
8904b6cca3Slucy wang - Sun Microsystems - Beijing China
9004b6cca3Slucy wang - Sun Microsystems - Beijing China#
9104b6cca3Slucy wang - Sun Microsystems - Beijing China#	Include common targets.
9204b6cca3Slucy wang - Sun Microsystems - Beijing China#
9304b6cca3Slucy wang - Sun Microsystems - Beijing Chinainclude $(UTSBASE)/intel/Makefile.targ
94