438b5f69eb4f998015cc0835f19f2f80663f2f53Jason King#
438b5f69eb4f998015cc0835f19f2f80663f2f53Jason King# CDDL HEADER START
438b5f69eb4f998015cc0835f19f2f80663f2f53Jason King#
438b5f69eb4f998015cc0835f19f2f80663f2f53Jason King# The contents of this file are subject to the terms of the
438b5f69eb4f998015cc0835f19f2f80663f2f53Jason King# Common Development and Distribution License (the "License").
438b5f69eb4f998015cc0835f19f2f80663f2f53Jason King# You may not use this file except in compliance with the License.
438b5f69eb4f998015cc0835f19f2f80663f2f53Jason King#
438b5f69eb4f998015cc0835f19f2f80663f2f53Jason King# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
438b5f69eb4f998015cc0835f19f2f80663f2f53Jason King# or http://www.opensolaris.org/os/licensing.
438b5f69eb4f998015cc0835f19f2f80663f2f53Jason King# See the License for the specific language governing permissions
438b5f69eb4f998015cc0835f19f2f80663f2f53Jason King# and limitations under the License.
438b5f69eb4f998015cc0835f19f2f80663f2f53Jason King#
438b5f69eb4f998015cc0835f19f2f80663f2f53Jason King# When distributing Covered Code, include this CDDL HEADER in each
438b5f69eb4f998015cc0835f19f2f80663f2f53Jason King# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
438b5f69eb4f998015cc0835f19f2f80663f2f53Jason King# If applicable, add the following below this CDDL HEADER, with the
438b5f69eb4f998015cc0835f19f2f80663f2f53Jason King# fields enclosed by brackets "[]" replaced with your own identifying
438b5f69eb4f998015cc0835f19f2f80663f2f53Jason King# information: Portions Copyright [yyyy] [name of copyright owner]
438b5f69eb4f998015cc0835f19f2f80663f2f53Jason King#
438b5f69eb4f998015cc0835f19f2f80663f2f53Jason King# CDDL HEADER END
438b5f69eb4f998015cc0835f19f2f80663f2f53Jason King#
438b5f69eb4f998015cc0835f19f2f80663f2f53Jason King#
438b5f69eb4f998015cc0835f19f2f80663f2f53Jason King# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
438b5f69eb4f998015cc0835f19f2f80663f2f53Jason King# Copyright 2011 Jason King. All rights reserved.
438b5f69eb4f998015cc0835f19f2f80663f2f53Jason King# Use is subject to license terms.
438b5f69eb4f998015cc0835f19f2f80663f2f53Jason King#
438b5f69eb4f998015cc0835f19f2f80663f2f53Jason King# This makefile drives the production of the AMD Pcnet
438b5f69eb4f998015cc0835f19f2f80663f2f53Jason King# Ethernet (pcn) driver module in intel systems
438b5f69eb4f998015cc0835f19f2f80663f2f53Jason King#
438b5f69eb4f998015cc0835f19f2f80663f2f53Jason King
438b5f69eb4f998015cc0835f19f2f80663f2f53Jason King#
438b5f69eb4f998015cc0835f19f2f80663f2f53Jason King# Path to the base of the uts directory tree (usually /usr/src/uts).
438b5f69eb4f998015cc0835f19f2f80663f2f53Jason King#
438b5f69eb4f998015cc0835f19f2f80663f2f53Jason KingUTSBASE = ../..
438b5f69eb4f998015cc0835f19f2f80663f2f53Jason King
438b5f69eb4f998015cc0835f19f2f80663f2f53Jason King#
438b5f69eb4f998015cc0835f19f2f80663f2f53Jason King# Define the module and object file sets.
438b5f69eb4f998015cc0835f19f2f80663f2f53Jason King#
438b5f69eb4f998015cc0835f19f2f80663f2f53Jason KingMODULE = pcn
438b5f69eb4f998015cc0835f19f2f80663f2f53Jason KingOBJECTS = $(PCN_OBJS:%=$(OBJS_DIR)/%)
438b5f69eb4f998015cc0835f19f2f80663f2f53Jason KingLINTS = $(PCN_OBJS:%.o=$(LINTS_DIR)/%.ln)
438b5f69eb4f998015cc0835f19f2f80663f2f53Jason KingROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
438b5f69eb4f998015cc0835f19f2f80663f2f53Jason King
438b5f69eb4f998015cc0835f19f2f80663f2f53Jason King#
438b5f69eb4f998015cc0835f19f2f80663f2f53Jason King# Include common rules.
438b5f69eb4f998015cc0835f19f2f80663f2f53Jason King#
438b5f69eb4f998015cc0835f19f2f80663f2f53Jason Kinginclude $(UTSBASE)/intel/Makefile.intel
438b5f69eb4f998015cc0835f19f2f80663f2f53Jason King
438b5f69eb4f998015cc0835f19f2f80663f2f53Jason King#
438b5f69eb4f998015cc0835f19f2f80663f2f53Jason King# Define targets
438b5f69eb4f998015cc0835f19f2f80663f2f53Jason King#
438b5f69eb4f998015cc0835f19f2f80663f2f53Jason KingALL_TARGET = $(BINARY)
438b5f69eb4f998015cc0835f19f2f80663f2f53Jason KingLINT_TARGET = $(MODULE).lint
438b5f69eb4f998015cc0835f19f2f80663f2f53Jason KingINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
438b5f69eb4f998015cc0835f19f2f80663f2f53Jason King
438b5f69eb4f998015cc0835f19f2f80663f2f53Jason King#
438b5f69eb4f998015cc0835f19f2f80663f2f53Jason King# Overrides
438b5f69eb4f998015cc0835f19f2f80663f2f53Jason King#
438b5f69eb4f998015cc0835f19f2f80663f2f53Jason King
7014882c6a3672fd0e5d60200af8643ae53c5928Richard LoweCERRWARN += -_gcc=-Wno-parentheses
7014882c6a3672fd0e5d60200af8643ae53c5928Richard Lowe
438b5f69eb4f998015cc0835f19f2f80663f2f53Jason King#
438b5f69eb4f998015cc0835f19f2f80663f2f53Jason King# Driver depends on GLD
438b5f69eb4f998015cc0835f19f2f80663f2f53Jason King#
438b5f69eb4f998015cc0835f19f2f80663f2f53Jason KingLDFLAGS += -dy -N misc/mac -Nmisc/mii
438b5f69eb4f998015cc0835f19f2f80663f2f53Jason King
438b5f69eb4f998015cc0835f19f2f80663f2f53Jason King#
438b5f69eb4f998015cc0835f19f2f80663f2f53Jason King# Default build targets.
438b5f69eb4f998015cc0835f19f2f80663f2f53Jason King#
438b5f69eb4f998015cc0835f19f2f80663f2f53Jason King.KEEP_STATE:
438b5f69eb4f998015cc0835f19f2f80663f2f53Jason King
438b5f69eb4f998015cc0835f19f2f80663f2f53Jason Kingdef: $(DEF_DEPS)
438b5f69eb4f998015cc0835f19f2f80663f2f53Jason King
438b5f69eb4f998015cc0835f19f2f80663f2f53Jason Kingall: $(ALL_DEPS)
438b5f69eb4f998015cc0835f19f2f80663f2f53Jason King
438b5f69eb4f998015cc0835f19f2f80663f2f53Jason Kingclean: $(CLEAN_DEPS)
438b5f69eb4f998015cc0835f19f2f80663f2f53Jason King
438b5f69eb4f998015cc0835f19f2f80663f2f53Jason Kingclobber: $(CLOBBER_DEPS)
438b5f69eb4f998015cc0835f19f2f80663f2f53Jason King
438b5f69eb4f998015cc0835f19f2f80663f2f53Jason Kinglint: $(LINT_DEPS)
438b5f69eb4f998015cc0835f19f2f80663f2f53Jason King
438b5f69eb4f998015cc0835f19f2f80663f2f53Jason Kingmodlintlib: $(MODLINTLIB_DEPS)
438b5f69eb4f998015cc0835f19f2f80663f2f53Jason King
438b5f69eb4f998015cc0835f19f2f80663f2f53Jason Kingclean.lint: $(CLEAN_LINT_DEPS)
438b5f69eb4f998015cc0835f19f2f80663f2f53Jason King
438b5f69eb4f998015cc0835f19f2f80663f2f53Jason Kinginstall: $(INSTALL_DEPS)
438b5f69eb4f998015cc0835f19f2f80663f2f53Jason King
438b5f69eb4f998015cc0835f19f2f80663f2f53Jason King#
438b5f69eb4f998015cc0835f19f2f80663f2f53Jason King# Include common targets.
438b5f69eb4f998015cc0835f19f2f80663f2f53Jason King#
438b5f69eb4f998015cc0835f19f2f80663f2f53Jason Kinginclude $(UTSBASE)/intel/Makefile.targ