1*c7fd2ed0Sgs150176# 2*c7fd2ed0Sgs150176# CDDL HEADER START 3*c7fd2ed0Sgs150176# 4*c7fd2ed0Sgs150176# The contents of this file are subject to the terms of the 5*c7fd2ed0Sgs150176# Common Development and Distribution License, Version 1.0 only 6*c7fd2ed0Sgs150176# (the "License"). You may not use this file except in compliance 7*c7fd2ed0Sgs150176# with the License. 8*c7fd2ed0Sgs150176# 9*c7fd2ed0Sgs150176# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 10*c7fd2ed0Sgs150176# or http://www.opensolaris.org/os/licensing. 11*c7fd2ed0Sgs150176# See the License for the specific language governing permissions 12*c7fd2ed0Sgs150176# and limitations under the License. 13*c7fd2ed0Sgs150176# 14*c7fd2ed0Sgs150176# When distributing Covered Code, include this CDDL HEADER in each 15*c7fd2ed0Sgs150176# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 16*c7fd2ed0Sgs150176# If applicable, add the following below this CDDL HEADER, with the 17*c7fd2ed0Sgs150176# fields enclosed by brackets "[]" replaced with your own identifying 18*c7fd2ed0Sgs150176# information: Portions Copyright [yyyy] [name of copyright owner] 19*c7fd2ed0Sgs150176# 20*c7fd2ed0Sgs150176# CDDL HEADER END 21*c7fd2ed0Sgs150176# 22*c7fd2ed0Sgs150176# 23*c7fd2ed0Sgs150176# Copyright 2005 Sun Microsystems, Inc. All rights reserved. 24*c7fd2ed0Sgs150176# Use is subject to license terms. 25*c7fd2ed0Sgs150176# 26*c7fd2ed0Sgs150176#ident "%Z%%M% %I% %E% SMI" 27*c7fd2ed0Sgs150176# 28*c7fd2ed0Sgs150176# This makefile drives the production of the Realtek 29*c7fd2ed0Sgs150176# Gigabit Ethernet (BGE) driver module in intel systems 30*c7fd2ed0Sgs150176# 31*c7fd2ed0Sgs150176 32*c7fd2ed0Sgs150176# 33*c7fd2ed0Sgs150176# Path to the base of the uts directory tree (usually /usr/src/uts). 34*c7fd2ed0Sgs150176# 35*c7fd2ed0Sgs150176UTSBASE = ../.. 36*c7fd2ed0Sgs150176 37*c7fd2ed0Sgs150176# 38*c7fd2ed0Sgs150176# Define the module and object file sets. 39*c7fd2ed0Sgs150176# 40*c7fd2ed0Sgs150176MODULE = rge 41*c7fd2ed0Sgs150176OBJECTS = $(RGE_OBJS:%=$(OBJS_DIR)/%) 42*c7fd2ed0Sgs150176LINTS = $(RGE_OBJS:%.o=$(LINTS_DIR)/%.ln) 43*c7fd2ed0Sgs150176ROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE) 44*c7fd2ed0Sgs150176 45*c7fd2ed0Sgs150176# 46*c7fd2ed0Sgs150176# Include common rules. 47*c7fd2ed0Sgs150176# 48*c7fd2ed0Sgs150176include $(UTSBASE)/intel/Makefile.intel 49*c7fd2ed0Sgs150176 50*c7fd2ed0Sgs150176# 51*c7fd2ed0Sgs150176# Define targets 52*c7fd2ed0Sgs150176# 53*c7fd2ed0Sgs150176ALL_TARGET = $(BINARY) 54*c7fd2ed0Sgs150176LINT_TARGET = $(MODULE).lint 55*c7fd2ed0Sgs150176INSTALL_TARGET = $(BINARY) $(ROOTMODULE) 56*c7fd2ed0Sgs150176 57*c7fd2ed0Sgs150176# 58*c7fd2ed0Sgs150176# Overrides 59*c7fd2ed0Sgs150176# 60*c7fd2ed0Sgs150176 61*c7fd2ed0Sgs150176# 62*c7fd2ed0Sgs150176# Driver depends on GLD & IP 63*c7fd2ed0Sgs150176# 64*c7fd2ed0Sgs150176LDFLAGS += -dy -N misc/mac -N drv/ip 65*c7fd2ed0Sgs150176 66*c7fd2ed0Sgs150176# 67*c7fd2ed0Sgs150176# Default build targets. 68*c7fd2ed0Sgs150176# 69*c7fd2ed0Sgs150176.KEEP_STATE: 70*c7fd2ed0Sgs150176 71*c7fd2ed0Sgs150176def: $(DEF_DEPS) 72*c7fd2ed0Sgs150176 73*c7fd2ed0Sgs150176all: $(ALL_DEPS) 74*c7fd2ed0Sgs150176 75*c7fd2ed0Sgs150176clean: $(CLEAN_DEPS) 76*c7fd2ed0Sgs150176 77*c7fd2ed0Sgs150176clobber: $(CLOBBER_DEPS) 78*c7fd2ed0Sgs150176 79*c7fd2ed0Sgs150176lint: $(LINT_DEPS) 80*c7fd2ed0Sgs150176 81*c7fd2ed0Sgs150176modlintlib: $(MODLINTLIB_DEPS) 82*c7fd2ed0Sgs150176 83*c7fd2ed0Sgs150176clean.lint: $(CLEAN_LINT_DEPS) 84*c7fd2ed0Sgs150176 85*c7fd2ed0Sgs150176install: $(INSTALL_DEPS) 86*c7fd2ed0Sgs150176 87*c7fd2ed0Sgs150176# 88*c7fd2ed0Sgs150176# Include common targets. 89*c7fd2ed0Sgs150176# 90*c7fd2ed0Sgs150176include $(UTSBASE)/intel/Makefile.targ 91