Makefile revision 7c478bd95313f5f23a4c958a745db2134aa03244
5cd4555ad444fd391002ae32450572054369fd42Rob Austein#
5cd4555ad444fd391002ae32450572054369fd42Rob Austein# CDDL HEADER START
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein#
9c49c394b4218cc9c743a372a8fcfb787f5ea8caAndreas Gustafsson# The contents of this file are subject to the terms of the
5fa46bc91672ef5737aee6f99763161511566c24Tinderbox User# Common Development and Distribution License, Version 1.0 only
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# (the "License"). You may not use this file except in compliance
9c49c394b4218cc9c743a372a8fcfb787f5ea8caAndreas Gustafsson# with the License.
ec5347e2c775f027573ce5648b910361aa926c01Automatic Updater#
9c49c394b4218cc9c743a372a8fcfb787f5ea8caAndreas Gustafsson# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9c49c394b4218cc9c743a372a8fcfb787f5ea8caAndreas Gustafsson# or http://www.opensolaris.org/os/licensing.
9c49c394b4218cc9c743a372a8fcfb787f5ea8caAndreas Gustafsson# 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.
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# If applicable, add the following below this CDDL HEADER, with the
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# fields enclosed by brackets "[]" replaced with your own identifying
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# information: Portions Copyright [yyyy] [name of copyright owner]
9c49c394b4218cc9c743a372a8fcfb787f5ea8caAndreas Gustafsson#
f5d30e2864e048a42c4dc1134993ae7efdb5d6c3Mark Andrews# CDDL HEADER END
74777c4523801dca13edf329494a1e3cf9e3c379Mark Andrews#
072440df4f65033eb058c06f2cc72be450606720Jeremy Reed#
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# uts/sparc/tphci/Makefile
de10c46b2a714b0fb74837da7867f55cccc6d261Jeremy Reed#
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein#
072440df4f65033eb058c06f2cc72be450606720Jeremy Reed# Copyright 2004 Sun Microsystems, Inc. All rights reserved.
a8f6b2aa46f882c7c680b7bdab1dfb78a76787eaMark Andrews# Use is subject to license terms.
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein#
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein#ident "%Z%%M% %I% %E% SMI"
072440df4f65033eb058c06f2cc72be450606720Jeremy Reed
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein#
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# This makefile drives the production of a pHCI test driver
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# for testing the MPxIO framework.
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein#
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein#
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# Path to the base of the uts directory tree (usually /usr/src/uts).
26e2a07a0b6a3b1eccef82ba31270d0c54ad4f06Mark Andrews#
c1a883f2e04d94e99c433b1f6cfd0c0338f4ed85Mark AndrewsUTSBASE = ../..
030aac3dbc57f99bad1d251b0783890ff0369952Automatic Updater
d60212e03fbef1d3dd7f7eb05c0545cc373cb9fcAutomatic Updater#
1b892cf691dd0907e0e75774df102dd4d92dd877Automatic Updater# Define the module and object file sets.
a9f68291c8db8111b88442635a04dfd35221411bAutomatic Updater#
5fa46bc91672ef5737aee6f99763161511566c24Tinderbox UserMODULE = tphci
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinOBJECTS = $(TPHCI_OBJS:%=$(OBJS_DIR)/%)
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinLINTS = $(TPHCI_OBJS:%.o=$(LINTS_DIR)/%.ln)
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinROOTMODULE = $(USR_DRV_DIR)/$(MODULE)
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein#
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# Include common rules.
f5d30e2864e048a42c4dc1134993ae7efdb5d6c3Mark Andrews#
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austeininclude $(UTSBASE)/sparc/Makefile.sparc
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein#
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# Define targets
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein#
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinALL_TARGET = $(BINARY)
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinLINT_TARGET = $(MODULE).lint
6098d364b690cb9dabf96e9664c4689c8559bd2eMark AndrewsINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
b98225ff8a5721a998ccb440df4d261488fef163Mark Andrews#
b98225ff8a5721a998ccb440df4d261488fef163Mark Andrews# Overrides
de10c46b2a714b0fb74837da7867f55cccc6d261Jeremy Reed#
c6d4f781529d2f28693546b25b2967d44ec89e60Mark AndrewsCFLAGS += $(CCVERBOSE) -dalign
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein#
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# Default build targets.
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein#
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein.KEEP_STATE:
9a41f786b167a2a6df498d5e9c699f9835e1e9dcMark Andrews
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austeindef: $(DEF_DEPS)
f5b7359c5730d39ff6eff24ae87c9c74a04c2e5cMark Andrews
f5b7359c5730d39ff6eff24ae87c9c74a04c2e5cMark Andrewsall: $(ALL_DEPS)
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austeinclean: $(CLEAN_DEPS)
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austeinclobber: $(CLOBBER_DEPS)
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austeinlint: $(LINT_DEPS)
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
8f7de3db7ec299ddeded142905f5eb1f22076353Evan Huntmodlintlib: $(MODLINTLIB_DEPS)
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austeinclean.lint: $(CLEAN_LINT_DEPS)
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austeininstall: $(INSTALL_DEPS)
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein#
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# Include common targets.
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein#
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austeininclude $(UTSBASE)/sparc/Makefile.targ
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austeinbrowser: $(BINARY)
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austeinbrowser := CFLAGS += -xsb
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein