11959748cSgd78059# 21959748cSgd78059# CDDL HEADER START 31959748cSgd78059# 41959748cSgd78059# The contents of this file are subject to the terms of the 51959748cSgd78059# Common Development and Distribution License (the "License"). 61959748cSgd78059# You may not use this file except in compliance with the License. 71959748cSgd78059# 81959748cSgd78059# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 91959748cSgd78059# or http://www.opensolaris.org/os/licensing. 101959748cSgd78059# See the License for the specific language governing permissions 111959748cSgd78059# and limitations under the License. 121959748cSgd78059# 131959748cSgd78059# When distributing Covered Code, include this CDDL HEADER in each 141959748cSgd78059# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 151959748cSgd78059# If applicable, add the following below this CDDL HEADER, with the 161959748cSgd78059# fields enclosed by brackets "[]" replaced with your own identifying 171959748cSgd78059# information: Portions Copyright [yyyy] [name of copyright owner] 181959748cSgd78059# 191959748cSgd78059# CDDL HEADER END 201959748cSgd78059# 211959748cSgd78059# 22*bdb9230aSGarrett D'Amore# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 231959748cSgd78059# Use is subject to license terms. 241959748cSgd78059# 251959748cSgd78059# This makefile drives the production of the ADMtek 261959748cSgd78059# Ethernet (AFE) driver module in sparc systems 271959748cSgd78059# 281959748cSgd78059 291959748cSgd78059# 301959748cSgd78059# Path to the base of the uts directory tree (usually /usr/src/uts). 311959748cSgd78059# 321959748cSgd78059UTSBASE = ../.. 331959748cSgd78059 341959748cSgd78059# 351959748cSgd78059# Define the module and object file sets. 361959748cSgd78059# 371959748cSgd78059MODULE = afe 381959748cSgd78059OBJECTS = $(AFE_OBJS:%=$(OBJS_DIR)/%) 391959748cSgd78059LINTS = $(AFE_OBJS:%.o=$(LINTS_DIR)/%.ln) 401959748cSgd78059ROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE) 411959748cSgd78059 421959748cSgd78059# 431959748cSgd78059# Include common rules. 441959748cSgd78059# 451959748cSgd78059include $(UTSBASE)/sparc/Makefile.sparc 461959748cSgd78059 471959748cSgd78059# 481959748cSgd78059# Define targets 491959748cSgd78059# 501959748cSgd78059ALL_TARGET = $(BINARY) 511959748cSgd78059LINT_TARGET = $(MODULE).lint 521959748cSgd78059INSTALL_TARGET = $(BINARY) $(ROOTMODULE) 531959748cSgd78059 541959748cSgd78059# 551959748cSgd78059# lint pass one enforcement 561959748cSgd78059# 571959748cSgd78059CFLAGS += $(CCVERBOSE) 581959748cSgd78059 591959748cSgd78059# 601959748cSgd78059# Driver depends on GLD 611959748cSgd78059# 62*bdb9230aSGarrett D'AmoreLDFLAGS += -dy -N misc/mac -Nmisc/mii 631959748cSgd78059 641959748cSgd78059# 651959748cSgd78059# Default build targets. 661959748cSgd78059# 671959748cSgd78059.KEEP_STATE: 681959748cSgd78059 691959748cSgd78059def: $(DEF_DEPS) 701959748cSgd78059 711959748cSgd78059all: $(ALL_DEPS) 721959748cSgd78059 731959748cSgd78059clean: $(CLEAN_DEPS) 741959748cSgd78059 751959748cSgd78059clobber: $(CLOBBER_DEPS) 761959748cSgd78059 771959748cSgd78059lint: $(LINT_DEPS) 781959748cSgd78059 791959748cSgd78059modlintlib: $(MODLINTLIB_DEPS) 801959748cSgd78059 811959748cSgd78059clean.lint: $(CLEAN_LINT_DEPS) 821959748cSgd78059 831959748cSgd78059install: $(INSTALL_DEPS) 841959748cSgd78059 851959748cSgd78059# 861959748cSgd78059# Include common targets. 871959748cSgd78059# 881959748cSgd78059include $(UTSBASE)/sparc/Makefile.targ 89