xref: /illumos-gate/usr/src/uts/intel/myri10ge/Makefile (revision b6b206fc7fb36f7b13b01acf70ed6e676e405998)
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#
22310da939SSurya Prakki# Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
2304b6cca3Slucy wang - Sun Microsystems - Beijing China#
24*b6b206fcSJohn Levon# Copyright (c) 2018, Joyent, Inc.
2504b6cca3Slucy wang - Sun Microsystems - Beijing China
2604b6cca3Slucy wang - Sun Microsystems - Beijing China#
2704b6cca3Slucy wang - Sun Microsystems - Beijing China#	Path to the base of the uts directory tree (usually /usr/src/uts).
2804b6cca3Slucy wang - Sun Microsystems - Beijing China#
2904b6cca3Slucy wang - Sun Microsystems - Beijing ChinaUTSBASE		= ../..
3004b6cca3Slucy wang - Sun Microsystems - Beijing China
3104b6cca3Slucy wang - Sun Microsystems - Beijing China#
3204b6cca3Slucy wang - Sun Microsystems - Beijing China#	Define the module and object file sets.
3304b6cca3Slucy wang - Sun Microsystems - Beijing China#
3404b6cca3Slucy wang - Sun Microsystems - Beijing ChinaMODULE		= myri10ge
3504b6cca3Slucy wang - Sun Microsystems - Beijing China
3604b6cca3Slucy wang - Sun Microsystems - Beijing ChinaOBJECTS		+= $(MYRI10GE_OBJS:%=$(OBJS_DIR)/%)
3704b6cca3Slucy wang - Sun Microsystems - Beijing China
3804b6cca3Slucy wang - Sun Microsystems - Beijing ChinaLINTS	    += $(MYRI10GE_OBJS:%.o=$(LINTS_DIR)/%.ln)
3904b6cca3Slucy wang - Sun Microsystems - Beijing China
4004b6cca3Slucy wang - Sun Microsystems - Beijing ChinaROOTMODULE	= $(ROOT_DRV_DIR)/$(MODULE)
4104b6cca3Slucy wang - Sun Microsystems - Beijing China
4204b6cca3Slucy wang - Sun Microsystems - Beijing China#
4304b6cca3Slucy wang - Sun Microsystems - Beijing China#	Include common rules.
4404b6cca3Slucy wang - Sun Microsystems - Beijing China#
4504b6cca3Slucy wang - Sun Microsystems - Beijing Chinainclude $(UTSBASE)/intel/Makefile.intel
4604b6cca3Slucy wang - Sun Microsystems - Beijing China
4704b6cca3Slucy wang - Sun Microsystems - Beijing China#
4804b6cca3Slucy wang - Sun Microsystems - Beijing China#	Define targets
4904b6cca3Slucy wang - Sun Microsystems - Beijing China#
5004b6cca3Slucy wang - Sun Microsystems - Beijing ChinaALL_TARGET	    = $(BINARY)
5104b6cca3Slucy wang - Sun Microsystems - Beijing ChinaLINT_TARGET	    = $(MODULE).lint
5204b6cca3Slucy wang - Sun Microsystems - Beijing ChinaINSTALL_TARGET  = $(BINARY) $(ROOTMODULE)
5304b6cca3Slucy wang - Sun Microsystems - Beijing China
5404b6cca3Slucy wang - Sun Microsystems - Beijing China#
5504b6cca3Slucy wang - Sun Microsystems - Beijing China# Overrides
5604b6cca3Slucy wang - Sun Microsystems - Beijing China#
5704b6cca3Slucy wang - Sun Microsystems - Beijing ChinaLINTTAGS  += -DSOLARIS_S11 -erroff=E_STATIC_UNUSED
5804b6cca3Slucy wang - Sun Microsystems - Beijing China
59*b6b206fcSJohn Levon# needs work
60*b6b206fcSJohn LevonSMATCH=off
6104b6cca3Slucy wang - Sun Microsystems - Beijing China
6204b6cca3Slucy wang - Sun Microsystems - Beijing ChinaINC_PATH  += -I$(UTSBASE)/common/io/myri10ge -I$(UTSBASE)/common/io/myri10ge/firmware
6304b6cca3Slucy wang - Sun Microsystems - Beijing China
64310da939SSurya PrakkiCFLAGS    += -DSOLARIS_S11
6504b6cca3Slucy wang - Sun Microsystems - Beijing China
6604b6cca3Slucy wang - Sun Microsystems - Beijing China#
6704b6cca3Slucy wang - Sun Microsystems - Beijing China# Driver depends on MAC
6804b6cca3Slucy wang - Sun Microsystems - Beijing China#
6904b6cca3Slucy wang - Sun Microsystems - Beijing ChinaLDFLAGS	  += -dy -N misc/mac -N drv/ip
7004b6cca3Slucy wang - Sun Microsystems - Beijing China
7104b6cca3Slucy wang - Sun Microsystems - Beijing China#
7204b6cca3Slucy wang - Sun Microsystems - Beijing China#	Default build targets.
7304b6cca3Slucy wang - Sun Microsystems - Beijing China#
7404b6cca3Slucy wang - Sun Microsystems - Beijing China.KEEP_STATE:
7504b6cca3Slucy wang - Sun Microsystems - Beijing China
7604b6cca3Slucy wang - Sun Microsystems - Beijing Chinadef:		    $(DEF_DEPS)
7704b6cca3Slucy wang - Sun Microsystems - Beijing China
7804b6cca3Slucy wang - Sun Microsystems - Beijing Chinaall:		    $(ALL_DEPS)
7904b6cca3Slucy wang - Sun Microsystems - Beijing China
8004b6cca3Slucy wang - Sun Microsystems - Beijing Chinaclean:		  $(CLEAN_DEPS)
8104b6cca3Slucy wang - Sun Microsystems - Beijing China
8204b6cca3Slucy wang - Sun Microsystems - Beijing Chinaclobber:	  $(CLOBBER_DEPS)
8304b6cca3Slucy wang - Sun Microsystems - Beijing China
8404b6cca3Slucy wang - Sun Microsystems - Beijing Chinalint:		    $(LINT_DEPS)
8504b6cca3Slucy wang - Sun Microsystems - Beijing China
8604b6cca3Slucy wang - Sun Microsystems - Beijing Chinamodlintlib: $(MODLINTLIB_DEPS)
8704b6cca3Slucy wang - Sun Microsystems - Beijing China
8804b6cca3Slucy wang - Sun Microsystems - Beijing Chinaclean.lint: $(CLEAN_LINT_DEPS)
8904b6cca3Slucy wang - Sun Microsystems - Beijing China
9004b6cca3Slucy wang - Sun Microsystems - Beijing Chinainstall:	  $(INSTALL_DEPS)
9104b6cca3Slucy wang - Sun Microsystems - Beijing China
9204b6cca3Slucy wang - Sun Microsystems - Beijing China#
9304b6cca3Slucy wang - Sun Microsystems - Beijing China#	Include common targets.
9404b6cca3Slucy wang - Sun Microsystems - Beijing China#
9504b6cca3Slucy wang - Sun Microsystems - Beijing Chinainclude $(UTSBASE)/intel/Makefile.targ
96