12ca5b659SJoost Mulders# 22ca5b659SJoost Mulders# CDDL HEADER START 32ca5b659SJoost Mulders# 42ca5b659SJoost Mulders# The contents of this file are subject to the terms of the 52ca5b659SJoost Mulders# Common Development and Distribution License (the "License"). 62ca5b659SJoost Mulders# You may not use this file except in compliance with the License. 72ca5b659SJoost Mulders# 82ca5b659SJoost Mulders# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 92ca5b659SJoost Mulders# or http://www.opensolaris.org/os/licensing. 102ca5b659SJoost Mulders# See the License for the specific language governing permissions 112ca5b659SJoost Mulders# and limitations under the License. 122ca5b659SJoost Mulders# 132ca5b659SJoost Mulders# When distributing Covered Code, include this CDDL HEADER in each 142ca5b659SJoost Mulders# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 152ca5b659SJoost Mulders# If applicable, add the following below this CDDL HEADER, with the 162ca5b659SJoost Mulders# fields enclosed by brackets "[]" replaced with your own identifying 172ca5b659SJoost Mulders# information: Portions Copyright [yyyy] [name of copyright owner] 182ca5b659SJoost Mulders# 192ca5b659SJoost Mulders# CDDL HEADER END 202ca5b659SJoost Mulders# 212ca5b659SJoost Mulders# 222ca5b659SJoost Mulders# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 232ca5b659SJoost Mulders# Use is subject to license terms. 242ca5b659SJoost Mulders# 252ca5b659SJoost Mulders 262ca5b659SJoost Mulders# 272ca5b659SJoost Mulders# This makefile drives the production of the VIA Rhine Ethernet 282ca5b659SJoost Mulders# (vr) driver module in sparc systems 292ca5b659SJoost Mulders# 302ca5b659SJoost Mulders 312ca5b659SJoost Mulders# 322ca5b659SJoost Mulders# Path to the base of the uts directory tree (usually /usr/src/uts). 332ca5b659SJoost Mulders# 342ca5b659SJoost MuldersUTSBASE = ../.. 352ca5b659SJoost Mulders 362ca5b659SJoost Mulders# 372ca5b659SJoost Mulders# Define the module and object file sets. 382ca5b659SJoost Mulders# 392ca5b659SJoost MuldersMODULE = vr 402ca5b659SJoost MuldersOBJECTS = $(VR_OBJS:%=$(OBJS_DIR)/%) 412ca5b659SJoost MuldersLINTS = $(VR_OBJS:%.o=$(LINTS_DIR)/%.ln) 422ca5b659SJoost MuldersROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE) 432ca5b659SJoost Mulders 442ca5b659SJoost Mulders# 452ca5b659SJoost Mulders# Include common rules. 462ca5b659SJoost Mulders# 472ca5b659SJoost Muldersinclude $(UTSBASE)/sparc/Makefile.sparc 482ca5b659SJoost Mulders 492ca5b659SJoost Mulders# 502ca5b659SJoost Mulders# Define targets 512ca5b659SJoost Mulders# 522ca5b659SJoost MuldersALL_TARGET = $(BINARY) 532ca5b659SJoost MuldersLINT_TARGET = $(MODULE).lint 542ca5b659SJoost MuldersINSTALL_TARGET = $(BINARY) $(ROOTMODULE) 552ca5b659SJoost Mulders 562ca5b659SJoost Mulders# 572ca5b659SJoost Mulders# Overrides 582ca5b659SJoost Mulders# 592ca5b659SJoost Mulders 60*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-unused-label 61*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-uninitialized 62*7014882cSRichard Lowe 632ca5b659SJoost Mulders# 642ca5b659SJoost Mulders# Driver depends on GLD 652ca5b659SJoost Mulders# 662ca5b659SJoost MuldersLDFLAGS += -dy -N misc/mac 672ca5b659SJoost Mulders 682ca5b659SJoost Mulders# 692ca5b659SJoost Mulders# Default build targets. 702ca5b659SJoost Mulders# 712ca5b659SJoost Mulders.KEEP_STATE: 722ca5b659SJoost Mulders 732ca5b659SJoost Muldersdef: $(DEF_DEPS) 742ca5b659SJoost Mulders 752ca5b659SJoost Muldersall: $(ALL_DEPS) 762ca5b659SJoost Mulders 772ca5b659SJoost Muldersclean: $(CLEAN_DEPS) 782ca5b659SJoost Mulders 792ca5b659SJoost Muldersclobber: $(CLOBBER_DEPS) 802ca5b659SJoost Mulders 812ca5b659SJoost Mulderslint: $(LINT_DEPS) 822ca5b659SJoost Mulders 832ca5b659SJoost Muldersmodlintlib: $(MODLINTLIB_DEPS) 842ca5b659SJoost Mulders 852ca5b659SJoost Muldersclean.lint: $(CLEAN_LINT_DEPS) 862ca5b659SJoost Mulders 872ca5b659SJoost Muldersinstall: $(INSTALL_DEPS) 882ca5b659SJoost Mulders 892ca5b659SJoost Mulders# 902ca5b659SJoost Mulders# Include common targets. 912ca5b659SJoost Mulders# 922ca5b659SJoost Muldersinclude $(UTSBASE)/sparc/Makefile.targ 93