1438b5f69SJason King# 2438b5f69SJason King# CDDL HEADER START 3438b5f69SJason King# 4438b5f69SJason King# The contents of this file are subject to the terms of the 5438b5f69SJason King# Common Development and Distribution License (the "License"). 6438b5f69SJason King# You may not use this file except in compliance with the License. 7438b5f69SJason King# 8438b5f69SJason King# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9438b5f69SJason King# or http://www.opensolaris.org/os/licensing. 10438b5f69SJason King# See the License for the specific language governing permissions 11438b5f69SJason King# and limitations under the License. 12438b5f69SJason King# 13438b5f69SJason King# When distributing Covered Code, include this CDDL HEADER in each 14438b5f69SJason King# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15438b5f69SJason King# If applicable, add the following below this CDDL HEADER, with the 16438b5f69SJason King# fields enclosed by brackets "[]" replaced with your own identifying 17438b5f69SJason King# information: Portions Copyright [yyyy] [name of copyright owner] 18438b5f69SJason King# 19438b5f69SJason King# CDDL HEADER END 20438b5f69SJason King# 21438b5f69SJason King# 22438b5f69SJason King# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 23438b5f69SJason King# Copyright 2011 Jason King. All rights reserved. 24438b5f69SJason King# Use is subject to license terms. 25438b5f69SJason King# 26438b5f69SJason King# This makefile drives the production of the AMD Pcnet 27438b5f69SJason King# Ethernet (pcn) driver module in intel systems 28438b5f69SJason King# 29438b5f69SJason King 30438b5f69SJason King# 31438b5f69SJason King# Path to the base of the uts directory tree (usually /usr/src/uts). 32438b5f69SJason King# 33438b5f69SJason KingUTSBASE = ../.. 34438b5f69SJason King 35438b5f69SJason King# 36438b5f69SJason King# Define the module and object file sets. 37438b5f69SJason King# 38438b5f69SJason KingMODULE = pcn 39438b5f69SJason KingOBJECTS = $(PCN_OBJS:%=$(OBJS_DIR)/%) 40438b5f69SJason KingROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE) 41438b5f69SJason King 42438b5f69SJason King# 43438b5f69SJason King# Include common rules. 44438b5f69SJason King# 45438b5f69SJason Kinginclude $(UTSBASE)/intel/Makefile.intel 46438b5f69SJason King 47438b5f69SJason King# 48438b5f69SJason King# Define targets 49438b5f69SJason King# 50438b5f69SJason KingALL_TARGET = $(BINARY) 51438b5f69SJason KingINSTALL_TARGET = $(BINARY) $(ROOTMODULE) 52438b5f69SJason King 53438b5f69SJason King# 54438b5f69SJason King# Overrides 55438b5f69SJason King# 56438b5f69SJason King 577014882cSRichard LoweCERRWARN += -_gcc=-Wno-parentheses 587014882cSRichard Lowe 59438b5f69SJason King# 60438b5f69SJason King# Driver depends on GLD 61438b5f69SJason King# 62*82d0151aSRichard LoweLDFLAGS += -N misc/mac -Nmisc/mii 63438b5f69SJason King 64438b5f69SJason King# 65438b5f69SJason King# Default build targets. 66438b5f69SJason King# 67438b5f69SJason King.KEEP_STATE: 68438b5f69SJason King 69438b5f69SJason Kingdef: $(DEF_DEPS) 70438b5f69SJason King 71438b5f69SJason Kingall: $(ALL_DEPS) 72438b5f69SJason King 73438b5f69SJason Kingclean: $(CLEAN_DEPS) 74438b5f69SJason King 75438b5f69SJason Kingclobber: $(CLOBBER_DEPS) 76438b5f69SJason King 77438b5f69SJason Kinginstall: $(INSTALL_DEPS) 78438b5f69SJason King 79438b5f69SJason King# 80438b5f69SJason King# Include common targets. 81438b5f69SJason King# 82438b5f69SJason Kinginclude $(UTSBASE)/intel/Makefile.targ 83