xref: /illumos-gate/usr/src/uts/intel/myri10ge/Makefile (revision 82d0151a507442720a3aea34c8925041894ab173)
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#
24b6b206fcSJohn 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 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 ChinaINSTALL_TARGET  = $(BINARY) $(ROOTMODULE)
5104b6cca3Slucy wang - Sun Microsystems - Beijing China
5204b6cca3Slucy wang - Sun Microsystems - Beijing China#
5304b6cca3Slucy wang - Sun Microsystems - Beijing China# Overrides
5404b6cca3Slucy wang - Sun Microsystems - Beijing China#
5504b6cca3Slucy wang - Sun Microsystems - Beijing China
56b6b206fcSJohn Levon# needs work
57b6b206fcSJohn LevonSMATCH=off
5804b6cca3Slucy wang - Sun Microsystems - Beijing China
5904b6cca3Slucy wang - Sun Microsystems - Beijing ChinaINC_PATH  += -I$(UTSBASE)/common/io/myri10ge -I$(UTSBASE)/common/io/myri10ge/firmware
6004b6cca3Slucy wang - Sun Microsystems - Beijing China
61310da939SSurya PrakkiCFLAGS    += -DSOLARIS_S11
6204b6cca3Slucy wang - Sun Microsystems - Beijing China
6304b6cca3Slucy wang - Sun Microsystems - Beijing China#
6404b6cca3Slucy wang - Sun Microsystems - Beijing China# Driver depends on MAC
6504b6cca3Slucy wang - Sun Microsystems - Beijing China#
66*82d0151aSRichard LoweLDFLAGS	  += -N misc/mac -N drv/ip
6704b6cca3Slucy wang - Sun Microsystems - Beijing China
6804b6cca3Slucy wang - Sun Microsystems - Beijing China#
6904b6cca3Slucy wang - Sun Microsystems - Beijing China#	Default build targets.
7004b6cca3Slucy wang - Sun Microsystems - Beijing China#
7104b6cca3Slucy wang - Sun Microsystems - Beijing China.KEEP_STATE:
7204b6cca3Slucy wang - Sun Microsystems - Beijing China
7304b6cca3Slucy wang - Sun Microsystems - Beijing Chinadef:		    $(DEF_DEPS)
7404b6cca3Slucy wang - Sun Microsystems - Beijing China
7504b6cca3Slucy wang - Sun Microsystems - Beijing Chinaall:		    $(ALL_DEPS)
7604b6cca3Slucy wang - Sun Microsystems - Beijing China
7704b6cca3Slucy wang - Sun Microsystems - Beijing Chinaclean:		  $(CLEAN_DEPS)
7804b6cca3Slucy wang - Sun Microsystems - Beijing China
7904b6cca3Slucy wang - Sun Microsystems - Beijing Chinaclobber:	  $(CLOBBER_DEPS)
8004b6cca3Slucy wang - Sun Microsystems - Beijing China
8104b6cca3Slucy wang - Sun Microsystems - Beijing Chinainstall:	  $(INSTALL_DEPS)
8204b6cca3Slucy wang - Sun Microsystems - Beijing China
8304b6cca3Slucy wang - Sun Microsystems - Beijing China#
8404b6cca3Slucy wang - Sun Microsystems - Beijing China#	Include common targets.
8504b6cca3Slucy wang - Sun Microsystems - Beijing China#
8604b6cca3Slucy wang - Sun Microsystems - Beijing Chinainclude $(UTSBASE)/intel/Makefile.targ
87