Makefile revision 7c478bd95313f5f23a4c958a745db2134aa03244
3426f7118c92cab8714a7fddc9e721ff09554447Andreas Gustafsson#
3426f7118c92cab8714a7fddc9e721ff09554447Andreas Gustafsson# CDDL HEADER START
3426f7118c92cab8714a7fddc9e721ff09554447Andreas Gustafsson#
64a5004a66accd190bfd5ddf115667726537be50Andreas Gustafsson# The contents of this file are subject to the terms of the
64a5004a66accd190bfd5ddf115667726537be50Andreas Gustafsson# Common Development and Distribution License, Version 1.0 only
64a5004a66accd190bfd5ddf115667726537be50Andreas Gustafsson# (the "License"). You may not use this file except in compliance
64a5004a66accd190bfd5ddf115667726537be50Andreas Gustafsson# with the License.
64a5004a66accd190bfd5ddf115667726537be50Andreas Gustafsson#
b1ae7a591a4b99a26036e919b87247b65abfcd77Mark Andrews# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
b1ae7a591a4b99a26036e919b87247b65abfcd77Mark Andrews# or http://www.opensolaris.org/os/licensing.
b1ae7a591a4b99a26036e919b87247b65abfcd77Mark Andrews# See the License for the specific language governing permissions
b1ae7a591a4b99a26036e919b87247b65abfcd77Mark Andrews# and limitations under the License.
6dbc6fae496db1f584c055e63bcd7afd332fe8f6Andreas Gustafsson#
cab0ee644db604d56b45ec39429d505d635da347Andreas Gustafsson# When distributing Covered Code, include this CDDL HEADER in each
cab0ee644db604d56b45ec39429d505d635da347Andreas Gustafsson# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
cab0ee644db604d56b45ec39429d505d635da347Andreas Gustafsson# If applicable, add the following below this CDDL HEADER, with the
cab0ee644db604d56b45ec39429d505d635da347Andreas Gustafsson# fields enclosed by brackets "[]" replaced with your own identifying
7780a3e5a4659bb8fc44f8915d20a8d3ffa33e00Andreas Gustafsson# information: Portions Copyright [yyyy] [name of copyright owner]
7780a3e5a4659bb8fc44f8915d20a8d3ffa33e00Andreas Gustafsson#
7780a3e5a4659bb8fc44f8915d20a8d3ffa33e00Andreas Gustafsson# CDDL HEADER END
6dbc6fae496db1f584c055e63bcd7afd332fe8f6Andreas Gustafsson#
6dbc6fae496db1f584c055e63bcd7afd332fe8f6Andreas Gustafsson#
6dbc6fae496db1f584c055e63bcd7afd332fe8f6Andreas Gustafsson# uts/sparc/tphci/Makefile
6dbc6fae496db1f584c055e63bcd7afd332fe8f6Andreas Gustafsson#
6dbc6fae496db1f584c055e63bcd7afd332fe8f6Andreas Gustafsson
a24d253a3f4e6f4036800744b348fba858d4959eMark Andrews#
a24d253a3f4e6f4036800744b348fba858d4959eMark Andrews# Copyright 2004 Sun Microsystems, Inc. All rights reserved.
847169dab2d0496df1d66842b2cce67c66bf9680Andreas Gustafsson# Use is subject to license terms.
3f543c371fff724d1fb05eb564f732476e946b5bBrian Wellington#
3f543c371fff724d1fb05eb564f732476e946b5bBrian Wellington
3f543c371fff724d1fb05eb564f732476e946b5bBrian Wellington#ident "%Z%%M% %I% %E% SMI"
847169dab2d0496df1d66842b2cce67c66bf9680Andreas Gustafsson
847169dab2d0496df1d66842b2cce67c66bf9680Andreas Gustafsson#
847169dab2d0496df1d66842b2cce67c66bf9680Andreas Gustafsson# This makefile drives the production of a pHCI test driver
9aba20edee4e704433a464ae43b070b0775de506Mark Andrews# for testing the MPxIO framework.
9aba20edee4e704433a464ae43b070b0775de506Mark Andrews#
ed03e26c44347ec20aff6608de6082e3594d95fbMark Andrews
ed03e26c44347ec20aff6608de6082e3594d95fbMark Andrews#
9aba20edee4e704433a464ae43b070b0775de506Mark Andrews# Path to the base of the uts directory tree (usually /usr/src/uts).
e8d86192fc424f49e43df9cee439ca5c793e6000Mark Andrews#
e8d86192fc424f49e43df9cee439ca5c793e6000Mark AndrewsUTSBASE = ../..
e8d86192fc424f49e43df9cee439ca5c793e6000Mark Andrews
bae5d9fcb4616005fbc861e327b0a48b7bd4d89aMark Andrews#
bae5d9fcb4616005fbc861e327b0a48b7bd4d89aMark Andrews# Define the module and object file sets.
e8d86192fc424f49e43df9cee439ca5c793e6000Mark Andrews#
34b1adb9b3a6f8d47d47a6412e6db21d2b58421fMark AndrewsMODULE = tphci
98a5dc52bf668b093cda7901c057f7b54e18a2fcAndreas GustafssonOBJECTS = $(TPHCI_OBJS:%=$(OBJS_DIR)/%)
98a5dc52bf668b093cda7901c057f7b54e18a2fcAndreas GustafssonLINTS = $(TPHCI_OBJS:%.o=$(LINTS_DIR)/%.ln)
98a5dc52bf668b093cda7901c057f7b54e18a2fcAndreas GustafssonROOTMODULE = $(USR_DRV_DIR)/$(MODULE)
98a5dc52bf668b093cda7901c057f7b54e18a2fcAndreas Gustafsson
5af0708e7fd78976a33de70f9380785f4086a1f0Andreas Gustafsson
98a5dc52bf668b093cda7901c057f7b54e18a2fcAndreas Gustafsson#
98a5dc52bf668b093cda7901c057f7b54e18a2fcAndreas Gustafsson# Include common rules.
452b30ddb32dd9370b2e5ee10427dd3758ef98b4Mark Andrews#
452b30ddb32dd9370b2e5ee10427dd3758ef98b4Mark Andrewsinclude $(UTSBASE)/sparc/Makefile.sparc
452b30ddb32dd9370b2e5ee10427dd3758ef98b4Mark Andrews
452b30ddb32dd9370b2e5ee10427dd3758ef98b4Mark Andrews#
6668eca26bf3123750afda48b69991bd29d83807Mark Andrews# Define targets
6668eca26bf3123750afda48b69991bd29d83807Mark Andrews#
6668eca26bf3123750afda48b69991bd29d83807Mark AndrewsALL_TARGET = $(BINARY)
06a960c681566a163af5b9a655cf36023075ddcbMark AndrewsLINT_TARGET = $(MODULE).lint
06a960c681566a163af5b9a655cf36023075ddcbMark AndrewsINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
cb8fd52bbeaf40c9166a0144541c4ff2bafc2dd6Andreas Gustafsson
1eaad22e111709254c70953a4dc768b6d4d31646Mark Andrews#
cad3210bb95057a37aaed20bc8a1542e0534422cAndreas Gustafsson# Overrides
cad3210bb95057a37aaed20bc8a1542e0534422cAndreas Gustafsson#
cad3210bb95057a37aaed20bc8a1542e0534422cAndreas GustafssonCFLAGS += $(CCVERBOSE) -dalign
cad3210bb95057a37aaed20bc8a1542e0534422cAndreas Gustafsson
cad3210bb95057a37aaed20bc8a1542e0534422cAndreas Gustafsson#
cad3210bb95057a37aaed20bc8a1542e0534422cAndreas Gustafsson# Default build targets.
cad3210bb95057a37aaed20bc8a1542e0534422cAndreas Gustafsson#
afeded2289de8d193b072da2b44a2d580cc235c1Danny Mayer.KEEP_STATE:
afeded2289de8d193b072da2b44a2d580cc235c1Danny Mayer
afeded2289de8d193b072da2b44a2d580cc235c1Danny Mayerdef: $(DEF_DEPS)
afeded2289de8d193b072da2b44a2d580cc235c1Danny Mayer
afeded2289de8d193b072da2b44a2d580cc235c1Danny Mayerall: $(ALL_DEPS)
afeded2289de8d193b072da2b44a2d580cc235c1Danny Mayer
afeded2289de8d193b072da2b44a2d580cc235c1Danny Mayerclean: $(CLEAN_DEPS)
afeded2289de8d193b072da2b44a2d580cc235c1Danny Mayer
f462b9aed23b77bda867301f80ead6990df6f4f8Andreas Gustafssonclobber: $(CLOBBER_DEPS)
89555ff443c8127a533f6c742316c9b1a713cfd5Mark Andrews
aa9a67adeb48069f5c2e5d8936a8ed5aac7d6ad7Andreas Gustafssonlint: $(LINT_DEPS)
aa9a67adeb48069f5c2e5d8936a8ed5aac7d6ad7Andreas Gustafsson
aa9a67adeb48069f5c2e5d8936a8ed5aac7d6ad7Andreas Gustafssonmodlintlib: $(MODLINTLIB_DEPS)
aa9a67adeb48069f5c2e5d8936a8ed5aac7d6ad7Andreas Gustafsson
aa9a67adeb48069f5c2e5d8936a8ed5aac7d6ad7Andreas Gustafssonclean.lint: $(CLEAN_LINT_DEPS)
aa9a67adeb48069f5c2e5d8936a8ed5aac7d6ad7Andreas Gustafsson
73ac1894ea64bc50aff7406872d0e9c5df6d9cf6Mark Andrewsinstall: $(INSTALL_DEPS)
539cad8f49b38540b7c20c64d1ef456cb2fa7914Andreas Gustafsson
330b421487d7c3a5e699472fe889aa633772057fMark Andrews#
e22dca2a9ad30d493a869586abed86f7268204f9Mark Andrews# Include common targets.
aec9f4d0723b0cffcfa9152533fb8f616ec7313bAndreas Gustafsson#
e22dca2a9ad30d493a869586abed86f7268204f9Mark Andrewsinclude $(UTSBASE)/sparc/Makefile.targ
2c0b26955ee32fcee1757ec1be5a8caf8fe695a6Mark Andrews
aec9f4d0723b0cffcfa9152533fb8f616ec7313bAndreas Gustafssonbrowser: $(BINARY)
2c0b26955ee32fcee1757ec1be5a8caf8fe695a6Mark Andrews
2449f41e75d3b3f1c0ec3f05b1603fd8f80d8ae0Mark Andrewsbrowser := CFLAGS += -xsb
aec9f4d0723b0cffcfa9152533fb8f616ec7313bAndreas Gustafsson