Makefile revision 7c478bd95313f5f23a4c958a745db2134aa03244
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob Halley#
0e9b328d62f6b051113287e6bade704bff66a009Tinderbox User# CDDL HEADER START
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob Halley#
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob Halley# The contents of this file are subject to the terms of the
ec5347e2c775f027573ce5648b910361aa926c01Automatic Updater# Common Development and Distribution License, Version 1.0 only
dd750c560ae48cf6caeb9a9fe81d33fc4746106dBrian Wellington# (the "License"). You may not use this file except in compliance
dd750c560ae48cf6caeb9a9fe81d33fc4746106dBrian Wellington# with the License.
dd750c560ae48cf6caeb9a9fe81d33fc4746106dBrian Wellington#
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# or http://www.opensolaris.org/os/licensing.
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# See the License for the specific language governing permissions
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# and limitations under the License.
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews#
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# When distributing Covered Code, include this CDDL HEADER in each
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob Halley# If applicable, add the following below this CDDL HEADER, with the
2eeb74d1cf5355dd98f6d507a10086e16bb08c4bTinderbox User# fields enclosed by brackets "[]" replaced with your own identifying
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# information: Portions Copyright [yyyy] [name of copyright owner]
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt#
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# CDDL HEADER END
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt#
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt#
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob Halley# Copyright 2005 Sun Microsystems, Inc. All rights reserved.
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# Use is subject to license terms.
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt#
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob Halley#ident "%Z%%M% %I% %E% SMI"
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob Halley#
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob Halley# This makefile drives the production of the mac driver
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob Halley# kernel module.
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob Halley#
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob Halley# sparc architecture dependent
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob Halley#
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob Halley
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob Halley#
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob Halley# Path to the base of the uts directory tree (usually /usr/src/uts).
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob Halley#
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob HalleyUTSBASE = ../..
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob Halley
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein#
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# Define the module and object file sets.
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein#
f5d30e2864e048a42c4dc1134993ae7efdb5d6c3Mark AndrewsMODULE = mac
c1a883f2e04d94e99c433b1f6cfd0c0338f4ed85Mark AndrewsOBJECTS = $(MAC_OBJS:%=$(OBJS_DIR)/%)
3398334b3acda24b086957286288ca9852662b12Automatic UpdaterLINTS = $(MAC_OBJS:%.o=$(LINTS_DIR)/%.ln)
d60212e03fbef1d3dd7f7eb05c0545cc373cb9fcAutomatic UpdaterROOTMODULE = $(ROOT_MISC_DIR)/$(MODULE)
938440694b33cd752e9e4b71a526368b4811c177Tinderbox User
0e9b328d62f6b051113287e6bade704bff66a009Tinderbox User#
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# Include common rules.
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein#
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austeininclude $(UTSBASE)/sparc/Makefile.sparc
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein#
f5d30e2864e048a42c4dc1134993ae7efdb5d6c3Mark Andrews# Define targets
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein#
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinALL_TARGET = $(BINARY)
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinLINT_TARGET = $(MODULE).lint
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob HalleyINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob Halley#
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# Overrides.
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt#
14a656f94b1fd0ababd84a772228dfa52276ba15Evan HuntCFLAGS += $(CCVERBOSE)
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt$(RELEASE_BUILD)CFLAGS += -xinline=auto -xcrossfile
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt$(RELEASE_BUILD)COPTIMIZE = -xO5
14a656f94b1fd0ababd84a772228dfa52276ba15Evan HuntLDFLAGS += -dy -N misc/ght
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt#
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# Default build targets.
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt#
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt.KEEP_STATE:
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Huntdef: $(DEF_DEPS)
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Huntall: $(ALL_DEPS)
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob Halleyclean: $(CLEAN_DEPS)
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob Halley
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob Halleyclobber: $(CLOBBER_DEPS)
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Huntlint: $(LINT_DEPS)
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austeinmodlintlib: $(MODLINTLIB_DEPS)
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austeinclean.lint: $(CLEAN_LINT_DEPS)
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austeininstall: $(INSTALL_DEPS)
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob Halley#
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# Include common targets.
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein#
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austeininclude $(UTSBASE)/sparc/Makefile.targ
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein