1d7ddd43cSJoost Mulders# 2d7ddd43cSJoost Mulders# CDDL HEADER START 3d7ddd43cSJoost Mulders# 4d7ddd43cSJoost Mulders# The contents of this file are subject to the terms of the 5d7ddd43cSJoost Mulders# Common Development and Distribution License (the "License"). 6d7ddd43cSJoost Mulders# You may not use this file except in compliance with the License. 7d7ddd43cSJoost Mulders# 8d7ddd43cSJoost Mulders# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9d7ddd43cSJoost Mulders# or http://www.opensolaris.org/os/licensing. 10d7ddd43cSJoost Mulders# See the License for the specific language governing permissions 11d7ddd43cSJoost Mulders# and limitations under the License. 12d7ddd43cSJoost Mulders# 13d7ddd43cSJoost Mulders# When distributing Covered Code, include this CDDL HEADER in each 14d7ddd43cSJoost Mulders# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15d7ddd43cSJoost Mulders# If applicable, add the following below this CDDL HEADER, with the 16d7ddd43cSJoost Mulders# fields enclosed by brackets "[]" replaced with your own identifying 17d7ddd43cSJoost Mulders# information: Portions Copyright [yyyy] [name of copyright owner] 18d7ddd43cSJoost Mulders# 19d7ddd43cSJoost Mulders# CDDL HEADER END 20d7ddd43cSJoost Mulders# 21d7ddd43cSJoost Mulders# 22d7ddd43cSJoost Mulders# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 23d7ddd43cSJoost Mulders# Use is subject to license terms. 24d7ddd43cSJoost Mulders# 25d7ddd43cSJoost Mulders 26d7ddd43cSJoost Mulders# This makefile drives the production of the VIA Rhine Ethernet 27d7ddd43cSJoost Mulders# (vr) driver module in intel systems 28d7ddd43cSJoost Mulders# 29d7ddd43cSJoost Mulders 30d7ddd43cSJoost Mulders# 31d7ddd43cSJoost Mulders# Path to the base of the uts directory tree (usually /usr/src/uts). 32d7ddd43cSJoost Mulders# 33d7ddd43cSJoost MuldersUTSBASE = ../.. 34d7ddd43cSJoost Mulders 35d7ddd43cSJoost Mulders# 36d7ddd43cSJoost Mulders# Define the module and object file sets. 37d7ddd43cSJoost Mulders# 38d7ddd43cSJoost MuldersMODULE = vr 39d7ddd43cSJoost MuldersOBJECTS = $(VR_OBJS:%=$(OBJS_DIR)/%) 40d7ddd43cSJoost MuldersLINTS = $(VR_OBJS:%.o=$(LINTS_DIR)/%.ln) 41d7ddd43cSJoost MuldersROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE) 42d7ddd43cSJoost Mulders 43d7ddd43cSJoost Mulders# 44d7ddd43cSJoost Mulders# Include common rules. 45d7ddd43cSJoost Mulders# 46d7ddd43cSJoost Muldersinclude $(UTSBASE)/intel/Makefile.intel 47d7ddd43cSJoost Mulders 48d7ddd43cSJoost Mulders# 49d7ddd43cSJoost Mulders# Define targets 50d7ddd43cSJoost Mulders# 51d7ddd43cSJoost MuldersALL_TARGET = $(BINARY) 52d7ddd43cSJoost MuldersLINT_TARGET = $(MODULE).lint 53d7ddd43cSJoost MuldersINSTALL_TARGET = $(BINARY) $(ROOTMODULE) 54d7ddd43cSJoost Mulders 55d7ddd43cSJoost Mulders# 56d7ddd43cSJoost Mulders# Overrides 57d7ddd43cSJoost Mulders# 58d7ddd43cSJoost Mulders 59*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-unused-label 60*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-uninitialized 61*7014882cSRichard Lowe 62d7ddd43cSJoost Mulders# 63d7ddd43cSJoost Mulders# Driver depends on GLD 64d7ddd43cSJoost Mulders# 65d7ddd43cSJoost MuldersLDFLAGS += -dy -N misc/mac 66d7ddd43cSJoost Mulders 67d7ddd43cSJoost Mulders# 68d7ddd43cSJoost Mulders# Default build targets. 69d7ddd43cSJoost Mulders# 70d7ddd43cSJoost Mulders.KEEP_STATE: 71d7ddd43cSJoost Mulders 72d7ddd43cSJoost Muldersdef: $(DEF_DEPS) 73d7ddd43cSJoost Mulders 74d7ddd43cSJoost Muldersall: $(ALL_DEPS) 75d7ddd43cSJoost Mulders 76d7ddd43cSJoost Muldersclean: $(CLEAN_DEPS) 77d7ddd43cSJoost Mulders 78d7ddd43cSJoost Muldersclobber: $(CLOBBER_DEPS) 79d7ddd43cSJoost Mulders 80d7ddd43cSJoost Mulderslint: $(LINT_DEPS) 81d7ddd43cSJoost Mulders 82d7ddd43cSJoost Muldersmodlintlib: $(MODLINTLIB_DEPS) 83d7ddd43cSJoost Mulders 84d7ddd43cSJoost Muldersclean.lint: $(CLEAN_LINT_DEPS) 85d7ddd43cSJoost Mulders 86d7ddd43cSJoost Muldersinstall: $(INSTALL_DEPS) 87d7ddd43cSJoost Mulders 88d7ddd43cSJoost Mulders# 89d7ddd43cSJoost Mulders# Include common targets. 90d7ddd43cSJoost Mulders# 91d7ddd43cSJoost Muldersinclude $(UTSBASE)/intel/Makefile.targ 92