Makefile revision e4b86885570d77af552e9cf94f142f4d744fb8c8
f743002678eb67b99bbc29fee116b65d9530fec0wrowe#
80833bb9a1bf25dcf19e814438a4b311d2e1f4cffuankg# CDDL HEADER START
15890c9306ba98f6fc243e15a3c4778ddc7d773erpluem#
28c31fb73c1264bd1d0ff932573677030b024c7dwrowe# The contents of this file are subject to the terms of the
28c31fb73c1264bd1d0ff932573677030b024c7dwrowe# Common Development and Distribution License (the "License").
28c31fb73c1264bd1d0ff932573677030b024c7dwrowe# You may not use this file except in compliance with the License.
28c31fb73c1264bd1d0ff932573677030b024c7dwrowe#
28c31fb73c1264bd1d0ff932573677030b024c7dwrowe# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
28c31fb73c1264bd1d0ff932573677030b024c7dwrowe# or http://www.opensolaris.org/os/licensing.
8491e0600f69b0405e156ea8a419653c065c645bcovener# See the License for the specific language governing permissions
8491e0600f69b0405e156ea8a419653c065c645bcovener# and limitations under the License.
8491e0600f69b0405e156ea8a419653c065c645bcovener#
8491e0600f69b0405e156ea8a419653c065c645bcovener# When distributing Covered Code, include this CDDL HEADER in each
8491e0600f69b0405e156ea8a419653c065c645bcovener# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
8491e0600f69b0405e156ea8a419653c065c645bcovener# If applicable, add the following below this CDDL HEADER, with the
8491e0600f69b0405e156ea8a419653c065c645bcovener# fields enclosed by brackets "[]" replaced with your own identifying
8741bcaa5df21e109bde21c01093d3991fcf1471jailletc# information: Portions Copyright [yyyy] [name of copyright owner]
8741bcaa5df21e109bde21c01093d3991fcf1471jailletc#
8741bcaa5df21e109bde21c01093d3991fcf1471jailletc# CDDL HEADER END
8741bcaa5df21e109bde21c01093d3991fcf1471jailletc#
2bf8c1f02b954a6b272f1708aabcc273fc318249covener#
2bf8c1f02b954a6b272f1708aabcc273fc318249covener# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
2bf8c1f02b954a6b272f1708aabcc273fc318249covener# Use is subject to license terms.
7512a6fac1f0e24ba550706a6c8e0c874c23aa7bcovener#
63b9f1f5880391261705f696d7d65507bbe9ace3covener
63b9f1f5880391261705f696d7d65507bbe9ace3covenerMODULE = cpumem-retire
63b9f1f5880391261705f696d7d65507bbe9ace3covenerCLASS = arch
87a26948305eab2bab8a4fb3f2a21f6725055790covenerARCH = sun4v
87a26948305eab2bab8a4fb3f2a21f6725055790covenerSRCS = \
87a26948305eab2bab8a4fb3f2a21f6725055790covener cma_main.c \
4efd27d2bd53a819a194f8a942f8881c1927755eylavic cma_cpu.c \
4efd27d2bd53a819a194f8a942f8881c1927755eylavic cma_cpu_sun4v.c \
4efd27d2bd53a819a194f8a942f8881c1927755eylavic cma_page.c \
4efd27d2bd53a819a194f8a942f8881c1927755eylavic cma_page_sun4v.c
983528026996668ea295be95aedb9c7a346af470ylavic
983528026996668ea295be95aedb9c7a346af470ylavicinclude ../../Makefile.plugin
983528026996668ea295be95aedb9c7a346af470ylavic
249ab52ef73a2b33446ae07904e3526b57251411ylavicCMA_VERSION = "1.1"
249ab52ef73a2b33446ae07904e3526b57251411ylavic
249ab52ef73a2b33446ae07904e3526b57251411ylavicCPUMEM_RETIRE_COMMON = ../../common/$(MODULE)
1f0836d4b1a203c7b375daae691beb95f6036205ylavic
1f0836d4b1a203c7b375daae691beb95f6036205ylavicINCDIRS = . \
1f0836d4b1a203c7b375daae691beb95f6036205ylavic $(ROOT)/usr/platform/sun4v/include \
3b11e6ec1c5273d6a8968460db650e7ca99c49c0ylavic $(CPUMEM_RETIRE_COMMON)
3b11e6ec1c5273d6a8968460db650e7ca99c49c0ylavic
3b11e6ec1c5273d6a8968460db650e7ca99c49c0ylavicCPPFLAGS += $(INCDIRS:%=-I%) -DCMA_VERSION='$(CMA_VERSION)' -Dsun4v
01402a0fbec8bd11f6c10d8ef9c9cceac68bb787ylavicLDFLAGS += -R/usr/lib/fm
01402a0fbec8bd11f6c10d8ef9c9cceac68bb787ylavicLDLIBS += -L$(ROOTLIB)/fm -lldom
01402a0fbec8bd11f6c10d8ef9c9cceac68bb787ylavic
49dacedb6c387b786b7911082ff35121a45f414bcovener%.o: $(CPUMEM_RETIRE_COMMON)/%.c
49dacedb6c387b786b7911082ff35121a45f414bcovener $(COMPILE.c) -o $@ $<
49dacedb6c387b786b7911082ff35121a45f414bcovener $(CTFCONVERT_O)
49dacedb6c387b786b7911082ff35121a45f414bcovener
3c990331fc6702119e4f5b8ba9eae3021aea5265jim%.ln: $(CPUMEM_RETIRE_COMMON)/%.c
3c990331fc6702119e4f5b8ba9eae3021aea5265jim $(LINT.c) -c $<
3c990331fc6702119e4f5b8ba9eae3021aea5265jim