Makefile revision 3f1e69bef33050bee99ea1e9992af13fc467281f
c25356d5978632df6203437e1953bcb29e0c736fTimo Sirainen#
c25356d5978632df6203437e1953bcb29e0c736fTimo Sirainen# CDDL HEADER START
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen#
80c1d98d3638b71e57a39cafa88b9122bf8169c6Timo Sirainen# The contents of this file are subject to the terms of the
b780aa272b742a43579cdb523cc79cc8d4521306Timo Sirainen# Common Development and Distribution License (the "License").
de62ce819d59a529530da4b57be1b8d6dad13d6bTimo Sirainen# You may not use this file except in compliance with the License.
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen#
94a8cb0ee1d85569ad1a2acacd92d3ce22f8a1cbTimo Sirainen# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen# or http://www.opensolaris.org/os/licensing.
16c89b1260c9d07c01c83a9219424d3727069b2eTimo Sirainen# See the License for the specific language governing permissions
795aeec896095aa8f08cc5d3282c88cc0921bff6Timo Sirainen# and limitations under the License.
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen#
6a19e109ee8c5a6f688da83a86a7f6abeb71abddTimo Sirainen# When distributing Covered Code, include this CDDL HEADER in each
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
e307c8202280c6db60a0615381f18cac33e46a53Timo Sirainen# If applicable, add the following below this CDDL HEADER, with the
e307c8202280c6db60a0615381f18cac33e46a53Timo Sirainen# fields enclosed by brackets "[]" replaced with your own identifying
e307c8202280c6db60a0615381f18cac33e46a53Timo Sirainen# information: Portions Copyright [yyyy] [name of copyright owner]
e307c8202280c6db60a0615381f18cac33e46a53Timo Sirainen#
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen# CDDL HEADER END
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen#
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen#
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
31ddc75584c5cde53d2e78a737587f2e7fdcb0d2Timo Sirainen# Use is subject to license terms.
8887bf3757d51d73887dd20b1db3334d867d3817Timo Sirainen#
8887bf3757d51d73887dd20b1db3334d867d3817Timo Sirainen
51b979b6414b940f04677a7e2d064be119345954Timo SirainenMODULE = cpumem-retire
51b979b6414b940f04677a7e2d064be119345954Timo SirainenCLASS = arch
c53e8ee216904ffe6de4f6518d9f9f5107b7610eTimo SirainenARCH = sun4v
589a9c6e8ee22071c14171c04bfc6bfe17121871Timo SirainenSRCS = \
589a9c6e8ee22071c14171c04bfc6bfe17121871Timo Sirainen cma_main.c \
ef5fb27361cc5e15766e85e28355750ff04b13c9Timo Sirainen cma_cpu.c \
ef5fb27361cc5e15766e85e28355750ff04b13c9Timo Sirainen cma_cpu_sun4v.c \
ef5fb27361cc5e15766e85e28355750ff04b13c9Timo Sirainen cma_page.c \
18d92dbbb752c79dc461514e52f7ef11847e636bTimo Sirainen cma_page_sun4v.c
18d92dbbb752c79dc461514e52f7ef11847e636bTimo Sirainen
18d92dbbb752c79dc461514e52f7ef11847e636bTimo Siraineninclude ../../Makefile.plugin
18d92dbbb752c79dc461514e52f7ef11847e636bTimo Sirainen
a53cb86b4d733d9c48ee4d285bed477c80825804Timo SirainenCMA_VERSION = "1.1"
a53cb86b4d733d9c48ee4d285bed477c80825804Timo Sirainen
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo SirainenCPUMEM_RETIRE_COMMON = ../../common/$(MODULE)
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo SirainenINCDIRS = . \
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen $(ROOT)/usr/platform/sun4v/include \
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen $(CPUMEM_RETIRE_COMMON)
b7b81543899e306c71e6152516d8698416162bcbTimo Sirainen
fd3d711f219fd6813492acbe051e04327f0ca0f0Timo SirainenCPPFLAGS += $(INCDIRS:%=-I%) -DCMA_VERSION='$(CMA_VERSION)' -Dsun4v
6ec7cf71ccd0eed1f9cc1b0bda8960796b04160bTimo SirainenLDFLAGS += -R/usr/lib/fm
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo SirainenLDLIBS += -L$(ROOTLIB)/fm -lldom -ltopo
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen
fd3d711f219fd6813492acbe051e04327f0ca0f0Timo Sirainen%.o: $(CPUMEM_RETIRE_COMMON)/%.c
db5164c9a1129af0cfb11fc18d88da361a8011fbTimo Sirainen $(COMPILE.c) -o $@ $<
5da1aa5197a43d83f0fb3eeb83125c7cd73d1b62Timo Sirainen $(CTFCONVERT_O)
db5164c9a1129af0cfb11fc18d88da361a8011fbTimo Sirainen
5da1aa5197a43d83f0fb3eeb83125c7cd73d1b62Timo Sirainen%.ln: $(CPUMEM_RETIRE_COMMON)/%.c
5da1aa5197a43d83f0fb3eeb83125c7cd73d1b62Timo Sirainen $(LINT.c) -c $<
5da1aa5197a43d83f0fb3eeb83125c7cd73d1b62Timo Sirainen