xref: /illumos-gate/usr/src/uts/sparc/myri10ge/Makefile (revision 0aaef2f5)
1*04b6cca3Slucy wang - Sun Microsystems - Beijing China#
2*04b6cca3Slucy wang - Sun Microsystems - Beijing China# CDDL HEADER START
3*04b6cca3Slucy wang - Sun Microsystems - Beijing China#
4*04b6cca3Slucy wang - Sun Microsystems - Beijing China# The contents of this file are subject to the terms of the
5*04b6cca3Slucy wang - Sun Microsystems - Beijing China# Common Development and Distribution License (the "License").
6*04b6cca3Slucy wang - Sun Microsystems - Beijing China# You may not use this file except in compliance with the License.
7*04b6cca3Slucy wang - Sun Microsystems - Beijing China#
8*04b6cca3Slucy wang - Sun Microsystems - Beijing China# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*04b6cca3Slucy wang - Sun Microsystems - Beijing China# or http://www.opensolaris.org/os/licensing.
10*04b6cca3Slucy wang - Sun Microsystems - Beijing China# See the License for the specific language governing permissions
11*04b6cca3Slucy wang - Sun Microsystems - Beijing China# and limitations under the License.
12*04b6cca3Slucy wang - Sun Microsystems - Beijing China#
13*04b6cca3Slucy wang - Sun Microsystems - Beijing China# When distributing Covered Code, include this CDDL HEADER in each
14*04b6cca3Slucy wang - Sun Microsystems - Beijing China# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*04b6cca3Slucy wang - Sun Microsystems - Beijing China# If applicable, add the following below this CDDL HEADER, with the
16*04b6cca3Slucy wang - Sun Microsystems - Beijing China# fields enclosed by brackets "[]" replaced with your own identifying
17*04b6cca3Slucy wang - Sun Microsystems - Beijing China# information: Portions Copyright [yyyy] [name of copyright owner]
18*04b6cca3Slucy wang - Sun Microsystems - Beijing China#
19*04b6cca3Slucy wang - Sun Microsystems - Beijing China# CDDL HEADER END
20*04b6cca3Slucy wang - Sun Microsystems - Beijing China#
21*04b6cca3Slucy wang - Sun Microsystems - Beijing China#
22*04b6cca3Slucy wang - Sun Microsystems - Beijing China# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
23*04b6cca3Slucy wang - Sun Microsystems - Beijing China# Use is subject to license terms.
24*04b6cca3Slucy wang - Sun Microsystems - Beijing China#
25*04b6cca3Slucy wang - Sun Microsystems - Beijing China
26*04b6cca3Slucy wang - Sun Microsystems - Beijing China#
27*04b6cca3Slucy wang - Sun Microsystems - Beijing China#	Path to the base of the uts directory tree (usually /usr/src/uts).
28*04b6cca3Slucy wang - Sun Microsystems - Beijing China#
29*04b6cca3Slucy wang - Sun Microsystems - Beijing ChinaUTSBASE		= ../..
30*04b6cca3Slucy wang - Sun Microsystems - Beijing China
31*04b6cca3Slucy wang - Sun Microsystems - Beijing China#
32*04b6cca3Slucy wang - Sun Microsystems - Beijing China#	Define the module and object file sets.
33*04b6cca3Slucy wang - Sun Microsystems - Beijing China#
34*04b6cca3Slucy wang - Sun Microsystems - Beijing ChinaMODULE		= myri10ge
35*04b6cca3Slucy wang - Sun Microsystems - Beijing China
36*04b6cca3Slucy wang - Sun Microsystems - Beijing ChinaOBJECTS		+= $(MYRI10GE_OBJS:%=$(OBJS_DIR)/%)
37*04b6cca3Slucy wang - Sun Microsystems - Beijing China
38*04b6cca3Slucy wang - Sun Microsystems - Beijing China
39*04b6cca3Slucy wang - Sun Microsystems - Beijing ChinaROOTMODULE	= $(ROOT_DRV_DIR)/$(MODULE)
40*04b6cca3Slucy wang - Sun Microsystems - Beijing China
41*04b6cca3Slucy wang - Sun Microsystems - Beijing China#
42*04b6cca3Slucy wang - Sun Microsystems - Beijing China#	Include common rules.
43*04b6cca3Slucy wang - Sun Microsystems - Beijing China#
44*04b6cca3Slucy wang - Sun Microsystems - Beijing Chinainclude $(UTSBASE)/sparc/Makefile.sparc
45*04b6cca3Slucy wang - Sun Microsystems - Beijing China
46*04b6cca3Slucy wang - Sun Microsystems - Beijing China#
47*04b6cca3Slucy wang - Sun Microsystems - Beijing China#	Define targets
48*04b6cca3Slucy wang - Sun Microsystems - Beijing China#
49*04b6cca3Slucy wang - Sun Microsystems - Beijing ChinaALL_TARGET	    = $(BINARY)
50*04b6cca3Slucy wang - Sun Microsystems - Beijing ChinaINSTALL_TARGET  = $(BINARY) $(ROOTMODULE)
51*04b6cca3Slucy wang - Sun Microsystems - Beijing China
52*04b6cca3Slucy wang - Sun Microsystems - Beijing China#
53*04b6cca3Slucy wang - Sun Microsystems - Beijing China# Overrides
54*04b6cca3Slucy wang - Sun Microsystems - Beijing China#
55*04b6cca3Slucy wang - Sun Microsystems - Beijing China
56*04b6cca3Slucy wang - Sun Microsystems - Beijing China#COPTIMIZE = -xO4
57*04b6cca3Slucy wang - Sun Microsystems - Beijing China
58*04b6cca3Slucy wang - Sun Microsystems - Beijing ChinaINC_PATH  += -I$(UTSBASE)/common/io/myri10ge -I$(UTSBASE)/common/io/myri10ge/firmware
59*04b6cca3Slucy wang - Sun Microsystems - Beijing China
60*04b6cca3Slucy wang - Sun Microsystems - Beijing ChinaCFLAGS    += -dalign -DSOLARIS_S11
61*04b6cca3Slucy wang - Sun Microsystems - Beijing China
62*04b6cca3Slucy wang - Sun Microsystems - Beijing China#
63*04b6cca3Slucy wang - Sun Microsystems - Beijing China# Driver depends on MAC
64*04b6cca3Slucy wang - Sun Microsystems - Beijing China#
65*04b6cca3Slucy wang - Sun Microsystems - Beijing ChinaLDFLAGS	  += -dy -N misc/mac -N drv/ip
66*04b6cca3Slucy wang - Sun Microsystems - Beijing China
67*04b6cca3Slucy wang - Sun Microsystems - Beijing China#
68*04b6cca3Slucy wang - Sun Microsystems - Beijing China#	Default build targets.
69*04b6cca3Slucy wang - Sun Microsystems - Beijing China#
70*04b6cca3Slucy wang - Sun Microsystems - Beijing China.KEEP_STATE:
71*04b6cca3Slucy wang - Sun Microsystems - Beijing China
72*04b6cca3Slucy wang - Sun Microsystems - Beijing Chinadef:		    $(DEF_DEPS)
73*04b6cca3Slucy wang - Sun Microsystems - Beijing China
74*04b6cca3Slucy wang - Sun Microsystems - Beijing Chinaall:		    $(ALL_DEPS)
75*04b6cca3Slucy wang - Sun Microsystems - Beijing China
76*04b6cca3Slucy wang - Sun Microsystems - Beijing Chinaclean:		  $(CLEAN_DEPS)
77*04b6cca3Slucy wang - Sun Microsystems - Beijing China
78*04b6cca3Slucy wang - Sun Microsystems - Beijing Chinaclobber:	  $(CLOBBER_DEPS)
79*04b6cca3Slucy wang - Sun Microsystems - Beijing China
80*04b6cca3Slucy wang - Sun Microsystems - Beijing Chinainstall:	  $(INSTALL_DEPS)
81*04b6cca3Slucy wang - Sun Microsystems - Beijing China
82*04b6cca3Slucy wang - Sun Microsystems - Beijing China#
83*04b6cca3Slucy wang - Sun Microsystems - Beijing China#	Include common targets.
84*04b6cca3Slucy wang - Sun Microsystems - Beijing China#
85*04b6cca3Slucy wang - Sun Microsystems - Beijing Chinainclude $(UTSBASE)/sparc/Makefile.targ
86