Makefile revision bdb9230ac765cb7af3fc1f4119caf2c5720dceb3
21d1aaa1db4fde9bcad8256491ab72421651aa85Trond Norbye#
21d1aaa1db4fde9bcad8256491ab72421651aa85Trond Norbye# CDDL HEADER START
21d1aaa1db4fde9bcad8256491ab72421651aa85Trond Norbye#
21d1aaa1db4fde9bcad8256491ab72421651aa85Trond Norbye# The contents of this file are subject to the terms of the
21d1aaa1db4fde9bcad8256491ab72421651aa85Trond Norbye# Common Development and Distribution License (the "License").
21d1aaa1db4fde9bcad8256491ab72421651aa85Trond Norbye# You may not use this file except in compliance with the License.
21d1aaa1db4fde9bcad8256491ab72421651aa85Trond Norbye#
21d1aaa1db4fde9bcad8256491ab72421651aa85Trond Norbye# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
21d1aaa1db4fde9bcad8256491ab72421651aa85Trond Norbye# or http://www.opensolaris.org/os/licensing.
21d1aaa1db4fde9bcad8256491ab72421651aa85Trond Norbye# See the License for the specific language governing permissions
21d1aaa1db4fde9bcad8256491ab72421651aa85Trond Norbye# and limitations under the License.
21d1aaa1db4fde9bcad8256491ab72421651aa85Trond Norbye#
21d1aaa1db4fde9bcad8256491ab72421651aa85Trond Norbye# When distributing Covered Code, include this CDDL HEADER in each
21d1aaa1db4fde9bcad8256491ab72421651aa85Trond Norbye# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
21d1aaa1db4fde9bcad8256491ab72421651aa85Trond Norbye# If applicable, add the following below this CDDL HEADER, with the
21d1aaa1db4fde9bcad8256491ab72421651aa85Trond Norbye# fields enclosed by brackets "[]" replaced with your own identifying
21d1aaa1db4fde9bcad8256491ab72421651aa85Trond Norbye# information: Portions Copyright [yyyy] [name of copyright owner]
21d1aaa1db4fde9bcad8256491ab72421651aa85Trond Norbye#
21d1aaa1db4fde9bcad8256491ab72421651aa85Trond Norbye# CDDL HEADER END
21d1aaa1db4fde9bcad8256491ab72421651aa85Trond Norbye#
01f9a93a99959e8614f8ac3e0f41e17ce84184a7Knut Anders Hatlen# uts/intel/dmfe/Makefile
21d1aaa1db4fde9bcad8256491ab72421651aa85Trond Norbye#
01f9a93a99959e8614f8ac3e0f41e17ce84184a7Knut Anders Hatlen# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
21d1aaa1db4fde9bcad8256491ab72421651aa85Trond Norbye# Use is subject to license terms.
21d1aaa1db4fde9bcad8256491ab72421651aa85Trond Norbye#
20a0bde399487a651cdeb66fc8b44b2212036355Trond Norbye# This makefile drives the production of the dmfe driver module.
21d1aaa1db4fde9bcad8256491ab72421651aa85Trond Norbye#
20a0bde399487a651cdeb66fc8b44b2212036355Trond Norbye
21d1aaa1db4fde9bcad8256491ab72421651aa85Trond Norbye#
20a0bde399487a651cdeb66fc8b44b2212036355Trond Norbye# Path to the base of the uts directory tree (usually /usr/src/uts).
8739a8f4d16d06ac76f16ec8b80837cfd2448490Trond Norbye#
854585887bca366ee433303cae0e99572240a568Trond NorbyeUTSBASE = ../..
8ea4b8d9796de43443cdf7b66e3f185aedf7b570Jens Elkner
20a0bde399487a651cdeb66fc8b44b2212036355Trond Norbye#
20a0bde399487a651cdeb66fc8b44b2212036355Trond Norbye# Define the module and object file sets.
20a0bde399487a651cdeb66fc8b44b2212036355Trond Norbye#
20a0bde399487a651cdeb66fc8b44b2212036355Trond NorbyeMODULE = dmfe
20a0bde399487a651cdeb66fc8b44b2212036355Trond NorbyeOBJECTS = $(DMFE_OBJS:%=$(OBJS_DIR)/%)
854585887bca366ee433303cae0e99572240a568Trond NorbyeLINTS = $(DMFE_OBJS:%.o=$(LINTS_DIR)/%.ln)
8739a8f4d16d06ac76f16ec8b80837cfd2448490Trond NorbyeROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
20a0bde399487a651cdeb66fc8b44b2212036355Trond Norbye
20a0bde399487a651cdeb66fc8b44b2212036355Trond Norbye#
20a0bde399487a651cdeb66fc8b44b2212036355Trond Norbye# Include common rules.
20a0bde399487a651cdeb66fc8b44b2212036355Trond Norbye#
20a0bde399487a651cdeb66fc8b44b2212036355Trond Norbyeinclude $(UTSBASE)/intel/Makefile.intel
21d1aaa1db4fde9bcad8256491ab72421651aa85Trond Norbye
21d1aaa1db4fde9bcad8256491ab72421651aa85Trond Norbye#
20a0bde399487a651cdeb66fc8b44b2212036355Trond Norbye# Define targets
20a0bde399487a651cdeb66fc8b44b2212036355Trond Norbye#
ef04451832b2553303ae511b4c09ed332eb4c06aKnut Anders HatlenALL_TARGET = $(BINARY)
20a0bde399487a651cdeb66fc8b44b2212036355Trond NorbyeLINT_TARGET = $(MODULE).lint
20a0bde399487a651cdeb66fc8b44b2212036355Trond NorbyeINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
20a0bde399487a651cdeb66fc8b44b2212036355Trond Norbye
21d1aaa1db4fde9bcad8256491ab72421651aa85Trond Norbye#
e372bd6df6fcf2bc7f7c925fe702a9e62fd7c466Trond Norbye# lint pass one enforcement
2aef10a5d2ebeaeb6b9cb6fed41933d19a76292fTrond Norbye#
8ea4b8d9796de43443cdf7b66e3f185aedf7b570Jens ElknerCFLAGS += $(CCVERBOSE)
ff5eba819da0cf7964d884630fb13262ef12c505Trond Norbye
8ea4b8d9796de43443cdf7b66e3f185aedf7b570Jens Elkner#
8ea4b8d9796de43443cdf7b66e3f185aedf7b570Jens Elkner# extra link arguments
8ea4b8d9796de43443cdf7b66e3f185aedf7b570Jens Elkner#
8247ba75ae77540a334b19527df7d963265c590bTrond NorbyeLDFLAGS += -dy -N misc/mac -N misc/mii
8ea4b8d9796de43443cdf7b66e3f185aedf7b570Jens Elkner
20a0bde399487a651cdeb66fc8b44b2212036355Trond Norbye#
f60d84bfe9ece4779c642dfe4849acd35ade9388Trond Norbye# Default build targets.
f60d84bfe9ece4779c642dfe4849acd35ade9388Trond Norbye#
3bd91b9bbb9915421b772c357165fbc6fdeaf286Trond Norbye.KEEP_STATE:
f60d84bfe9ece4779c642dfe4849acd35ade9388Trond Norbye
f60d84bfe9ece4779c642dfe4849acd35ade9388Trond Norbyedef: $(DEF_DEPS)
20a0bde399487a651cdeb66fc8b44b2212036355Trond Norbye
bd4999e099547832430739402d07284e957f32ddTrond Norbyeall: $(ALL_DEPS)
bd4999e099547832430739402d07284e957f32ddTrond Norbye
bd4999e099547832430739402d07284e957f32ddTrond Norbyeclean: $(CLEAN_DEPS)
20a0bde399487a651cdeb66fc8b44b2212036355Trond Norbye
20a0bde399487a651cdeb66fc8b44b2212036355Trond Norbyeclobber: $(CLOBBER_DEPS)
20a0bde399487a651cdeb66fc8b44b2212036355Trond Norbye
8ea4b8d9796de43443cdf7b66e3f185aedf7b570Jens Elknerlint: $(LINT_DEPS)
20a0bde399487a651cdeb66fc8b44b2212036355Trond Norbye
20a0bde399487a651cdeb66fc8b44b2212036355Trond Norbyemodlintlib: $(MODLINTLIB_DEPS)
20a0bde399487a651cdeb66fc8b44b2212036355Trond Norbye
20a0bde399487a651cdeb66fc8b44b2212036355Trond Norbyeclean.lint: $(CLEAN_LINT_DEPS)
20a0bde399487a651cdeb66fc8b44b2212036355Trond Norbye
20a0bde399487a651cdeb66fc8b44b2212036355Trond Norbyeinstall: $(INSTALL_DEPS)
8247ba75ae77540a334b19527df7d963265c590bTrond Norbye
8247ba75ae77540a334b19527df7d963265c590bTrond Norbye#
cfb5c66ccd74f4bcab7168acea8daec98f1b39e7Jorgen Austvik# Include common targets.
cfb5c66ccd74f4bcab7168acea8daec98f1b39e7Jorgen Austvik#
cfb5c66ccd74f4bcab7168acea8daec98f1b39e7Jorgen Austvikinclude $(UTSBASE)/intel/Makefile.targ
8247ba75ae77540a334b19527df7d963265c590bTrond Norbye