Makefile revision 310da939904e5e37a19c8a427209c0d4d9683ec8
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync#
99be02f9e15a3ca61b6a7c207cc7eb68dbd04817vboxsync# CDDL HEADER START
99be02f9e15a3ca61b6a7c207cc7eb68dbd04817vboxsync#
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync# The contents of this file are subject to the terms of the
99be02f9e15a3ca61b6a7c207cc7eb68dbd04817vboxsync# Common Development and Distribution License (the "License").
99be02f9e15a3ca61b6a7c207cc7eb68dbd04817vboxsync# You may not use this file except in compliance with the License.
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync#
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync# or http://www.opensolaris.org/os/licensing.
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync# See the License for the specific language governing permissions
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync# and limitations under the License.
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync#
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync# When distributing Covered Code, include this CDDL HEADER in each
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync# If applicable, add the following below this CDDL HEADER, with the
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync# fields enclosed by brackets "[]" replaced with your own identifying
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync# information: Portions Copyright [yyyy] [name of copyright owner]
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync#
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync# CDDL HEADER END
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync#
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync#
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync# Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync#
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync#
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync# Path to the base of the uts directory tree (usually /usr/src/uts).
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync#
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsyncUTSBASE = ../..
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync#
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync# Define the module and object file sets.
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync#
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsyncMODULE = myri10ge
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsyncOBJECTS += $(MYRI10GE_OBJS:%=$(OBJS_DIR)/%)
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsyncLINTS += $(MYRI10GE_OBJS:%.o=$(LINTS_DIR)/%.ln)
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync
4b42d28ec5f7347d82a7f7348629363b64036d9evboxsyncROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync#
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync# Include common rules.
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync#
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsyncinclude $(UTSBASE)/intel/Makefile.intel
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync#
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync# Define targets
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync#
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsyncALL_TARGET = $(BINARY)
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsyncLINT_TARGET = $(MODULE).lint
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsyncINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync#
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync# Overrides
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync#
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsyncLINTTAGS += -DSOLARIS_S11 -erroff=E_STATIC_UNUSED
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync#COPTIMIZE = -xO4
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsyncINC_PATH += -I$(UTSBASE)/common/io/myri10ge -I$(UTSBASE)/common/io/myri10ge/firmware
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsyncCFLAGS += -DSOLARIS_S11
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync#
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync# Driver depends on MAC
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync#
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsyncLDFLAGS += -dy -N misc/mac -N drv/ip
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync#
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync# Default build targets.
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync#
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync.KEEP_STATE:
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsyncdef: $(DEF_DEPS)
aa4bcf0a4b2db3ac352b56a291d49cb8d4b66d32vboxsync
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsyncall: $(ALL_DEPS)
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync
e43535ace2499e7f8ef8822186047979bd58d464vboxsyncclean: $(CLEAN_DEPS)
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsyncclobber: $(CLOBBER_DEPS)
lint: $(LINT_DEPS)
modlintlib: $(MODLINTLIB_DEPS)
clean.lint: $(CLEAN_LINT_DEPS)
install: $(INSTALL_DEPS)
#
# Include common targets.
#
include $(UTSBASE)/intel/Makefile.targ