1c7fd2ed0Sgs150176# 2c7fd2ed0Sgs150176# CDDL HEADER START 3c7fd2ed0Sgs150176# 4c7fd2ed0Sgs150176# The contents of this file are subject to the terms of the 5bb25c06cSjg# Common Development and Distribution License (the "License"). 6bb25c06cSjg# You may not use this file except in compliance with the License. 7c7fd2ed0Sgs150176# 8c7fd2ed0Sgs150176# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9c7fd2ed0Sgs150176# or http://www.opensolaris.org/os/licensing. 10c7fd2ed0Sgs150176# See the License for the specific language governing permissions 11c7fd2ed0Sgs150176# and limitations under the License. 12c7fd2ed0Sgs150176# 13c7fd2ed0Sgs150176# When distributing Covered Code, include this CDDL HEADER in each 14c7fd2ed0Sgs150176# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15c7fd2ed0Sgs150176# If applicable, add the following below this CDDL HEADER, with the 16c7fd2ed0Sgs150176# fields enclosed by brackets "[]" replaced with your own identifying 17c7fd2ed0Sgs150176# information: Portions Copyright [yyyy] [name of copyright owner] 18c7fd2ed0Sgs150176# 19c7fd2ed0Sgs150176# CDDL HEADER END 20c7fd2ed0Sgs150176# 21c7fd2ed0Sgs150176# 2222eb7cb5Sgd78059# Copyright 2008 Sun Microsystems, Inc. All rights reserved. 23c7fd2ed0Sgs150176# Use is subject to license terms. 24c7fd2ed0Sgs150176# 25*7014882cSRichard Lowe 26c7fd2ed0Sgs150176# 27c7fd2ed0Sgs150176# This makefile drives the production of the Realtek 28c7fd2ed0Sgs150176# Gigabit Ethernet (RGE) driver module in sparc systems 29c7fd2ed0Sgs150176# 30c7fd2ed0Sgs150176 31c7fd2ed0Sgs150176# 32c7fd2ed0Sgs150176# Path to the base of the uts directory tree (usually /usr/src/uts). 33c7fd2ed0Sgs150176# 34c7fd2ed0Sgs150176UTSBASE = ../.. 35c7fd2ed0Sgs150176 36c7fd2ed0Sgs150176# 37c7fd2ed0Sgs150176# Define the module and object file sets. 38c7fd2ed0Sgs150176# 39c7fd2ed0Sgs150176MODULE = rge 40c7fd2ed0Sgs150176OBJECTS = $(RGE_OBJS:%=$(OBJS_DIR)/%) 41c7fd2ed0Sgs150176LINTS = $(RGE_OBJS:%.o=$(LINTS_DIR)/%.ln) 42c7fd2ed0Sgs150176ROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE) 43c7fd2ed0Sgs150176 44c7fd2ed0Sgs150176# 45c7fd2ed0Sgs150176# Include common rules. 46c7fd2ed0Sgs150176# 47c7fd2ed0Sgs150176include $(UTSBASE)/sparc/Makefile.sparc 48c7fd2ed0Sgs150176 49c7fd2ed0Sgs150176# 50c7fd2ed0Sgs150176# Define targets 51c7fd2ed0Sgs150176# 52c7fd2ed0Sgs150176ALL_TARGET = $(BINARY) 53c7fd2ed0Sgs150176LINT_TARGET = $(MODULE).lint 54c7fd2ed0Sgs150176INSTALL_TARGET = $(BINARY) $(ROOTMODULE) 55c7fd2ed0Sgs150176 56c7fd2ed0Sgs150176# 57c7fd2ed0Sgs150176# lint pass one enforcement 58c7fd2ed0Sgs150176# 59c7fd2ed0Sgs150176CFLAGS += $(CCVERBOSE) 60c7fd2ed0Sgs150176 61c7fd2ed0Sgs150176# 62c7fd2ed0Sgs150176# Turn on doubleword alignment for 64 bit registers 63c7fd2ed0Sgs150176# 64c7fd2ed0Sgs150176CFLAGS += -dalign 65c7fd2ed0Sgs150176 66c7fd2ed0Sgs150176# 67c7fd2ed0Sgs150176# Driver depends on MAC & IP 68c7fd2ed0Sgs150176# 69c7fd2ed0Sgs150176LDFLAGS += -dy -N misc/mac -N drv/ip 70c7fd2ed0Sgs150176 71*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-switch 72*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-uninitialized 73*7014882cSRichard Lowe 74c7fd2ed0Sgs150176# 75bb25c06cSjg# For now, disable these lint checks; maintainers should endeavor 76bb25c06cSjg# to investigate and remove these for maximum lint coverage. 77bb25c06cSjg# Please do not carry these forward to new Makefiles. 78bb25c06cSjg# 79bb25c06cSjgLINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN 80bb25c06cSjgLINTTAGS += -erroff=E_ASSIGN_NARROW_CONV 81bb25c06cSjgLINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON 82bb25c06cSjg 83bb25c06cSjg# 84c7fd2ed0Sgs150176# Default build targets. 85c7fd2ed0Sgs150176# 86c7fd2ed0Sgs150176.KEEP_STATE: 87c7fd2ed0Sgs150176 88c7fd2ed0Sgs150176def: $(DEF_DEPS) 89c7fd2ed0Sgs150176 90c7fd2ed0Sgs150176all: $(ALL_DEPS) 91c7fd2ed0Sgs150176 92c7fd2ed0Sgs150176clean: $(CLEAN_DEPS) 93c7fd2ed0Sgs150176 94c7fd2ed0Sgs150176clobber: $(CLOBBER_DEPS) 95c7fd2ed0Sgs150176 96c7fd2ed0Sgs150176lint: $(LINT_DEPS) 97c7fd2ed0Sgs150176 98c7fd2ed0Sgs150176modlintlib: $(MODLINTLIB_DEPS) 99c7fd2ed0Sgs150176 100c7fd2ed0Sgs150176clean.lint: $(CLEAN_LINT_DEPS) 101c7fd2ed0Sgs150176 102c7fd2ed0Sgs150176install: $(INSTALL_DEPS) 103c7fd2ed0Sgs150176 104c7fd2ed0Sgs150176# 105c7fd2ed0Sgs150176# Include common targets. 106c7fd2ed0Sgs150176# 107c7fd2ed0Sgs150176include $(UTSBASE)/sparc/Makefile.targ 108