Makefile revision e4b86885570d77af552e9cf94f142f4d744fb8c8
929329d2d66a7e1083c70a9c918381935bf12799Mukund Sivaraman#
929329d2d66a7e1083c70a9c918381935bf12799Mukund Sivaraman# CDDL HEADER START
929329d2d66a7e1083c70a9c918381935bf12799Mukund Sivaraman#
7e1a62eea2e4ba9d6c3fc718e679b965fa514f69Mark Andrews# The contents of this file are subject to the terms of the
ec29d217ba3a2bf3e617a7b5b6708ae221bee999Mark Andrews# Common Development and Distribution License (the "License").
ec29d217ba3a2bf3e617a7b5b6708ae221bee999Mark Andrews# You may not use this file except in compliance with the License.
afefd754734f896bf3e0590177fff83e7cdfdf35Mark Andrews#
afefd754734f896bf3e0590177fff83e7cdfdf35Mark Andrews# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
afefd754734f896bf3e0590177fff83e7cdfdf35Mark Andrews# or http://www.opensolaris.org/os/licensing.
f0353a586c2bfbae999193cb644b6bc94c7944d8Mark Andrews# See the License for the specific language governing permissions
f0353a586c2bfbae999193cb644b6bc94c7944d8Mark Andrews# and limitations under the License.
7ff28f5befbee76048a23e504dcd3f9a44ce6209Evan Hunt#
7ff28f5befbee76048a23e504dcd3f9a44ce6209Evan Hunt# When distributing Covered Code, include this CDDL HEADER in each
7ff28f5befbee76048a23e504dcd3f9a44ce6209Evan Hunt# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
7ff28f5befbee76048a23e504dcd3f9a44ce6209Evan Hunt# If applicable, add the following below this CDDL HEADER, with the
7ff28f5befbee76048a23e504dcd3f9a44ce6209Evan Hunt# fields enclosed by brackets "[]" replaced with your own identifying
7ff28f5befbee76048a23e504dcd3f9a44ce6209Evan Hunt# information: Portions Copyright [yyyy] [name of copyright owner]
7ff28f5befbee76048a23e504dcd3f9a44ce6209Evan Hunt#
7ff28f5befbee76048a23e504dcd3f9a44ce6209Evan Hunt# CDDL HEADER END
7ff28f5befbee76048a23e504dcd3f9a44ce6209Evan Hunt#
7ff28f5befbee76048a23e504dcd3f9a44ce6209Evan Hunt#
cad79077bd5b2616bc4a7a6b3cbc0953bef8917fMark Andrews# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
cad79077bd5b2616bc4a7a6b3cbc0953bef8917fMark Andrews# Use is subject to license terms.
cad79077bd5b2616bc4a7a6b3cbc0953bef8917fMark Andrews#
cad79077bd5b2616bc4a7a6b3cbc0953bef8917fMark Andrews
adfe58e8e5cd1890585e92b67f1fd01989a1fa7dMark AndrewsPLATFORMS = SUNW,SPARC-Enterprise
adfe58e8e5cd1890585e92b67f1fd01989a1fa7dMark AndrewsCLASS = plat
adfe58e8e5cd1890585e92b67f1fd01989a1fa7dMark AndrewsMODULE = cpumem-retire
c3237dec879f82855403ff7e3ba87b298172efd5Mark Andrews
c3237dec879f82855403ff7e3ba87b298172efd5Mark AndrewsCPUMEM_RETIRE_COMMON = ../../common/$(MODULE)
c3237dec879f82855403ff7e3ba87b298172efd5Mark Andrews
c3237dec879f82855403ff7e3ba87b298172efd5Mark AndrewsINCDIRS += .
c3237dec879f82855403ff7e3ba87b298172efd5Mark AndrewsINCDIRS += $(CPUMEM_RETIRE_COMMON)
cb616c6d5c2ece1fac37fa6e0bca2b53d4043098Mark Andrews
cb616c6d5c2ece1fac37fa6e0bca2b53d4043098Mark AndrewsSRCS = \
cb616c6d5c2ece1fac37fa6e0bca2b53d4043098Mark Andrews cma_main.c \
c0a2210466dec0cc81ebf2ffbe21693b57b9c29cMark Andrews cma_cpu.c \
c0a2210466dec0cc81ebf2ffbe21693b57b9c29cMark Andrews cma_cpu_arch.c \
c0a2210466dec0cc81ebf2ffbe21693b57b9c29cMark Andrews cma_page.c \
534057c9f91a3eb6e0541f3526459c716239b337Mark Andrews cma_page_arch.c
534057c9f91a3eb6e0541f3526459c716239b337Mark Andrews
534057c9f91a3eb6e0541f3526459c716239b337Mark Andrewsinclude ../../Makefile.plugin
0f14b041328c062b1fa391887376388dfc8b2fe5Mark Andrews
0f14b041328c062b1fa391887376388dfc8b2fe5Mark AndrewsCMA_VERSION = "1.1"
0f14b041328c062b1fa391887376388dfc8b2fe5Mark Andrews
0f14b041328c062b1fa391887376388dfc8b2fe5Mark Andrews
f7f4730e563a2749629fe7fef4cd9513cd2bfab7Mark AndrewsLIBDIRS = $(ROOT)/usr/platform/$(PLATFORMS)/lib
f7f4730e563a2749629fe7fef4cd9513cd2bfab7Mark AndrewsCPPFLAGS += $(INCDIRS:%=-I%) -DCMA_VERSION='$(CMA_VERSION)' -Dopl
1848d38f441ebf70ab21f6151bc3487a92d25b63Mark AndrewsLDFLAGS += -R/usr/lib/fm
1848d38f441ebf70ab21f6151bc3487a92d25b63Mark AndrewsLDLIBS += -L$(ROOTLIB)/fm -lfmd_agent
2d82ed9456e72dc4373bea19d63411afe1c48962Mark Andrews
2d82ed9456e72dc4373bea19d63411afe1c48962Mark Andrews%.o: $(CPUMEM_RETIRE_COMMON)/%.c
2d82ed9456e72dc4373bea19d63411afe1c48962Mark Andrews $(COMPILE.c) -o $@ $<
a5a1cbece45e6ca68aafe3b9b995eac6b0f45dd2Mark Andrews $(CTFCONVERT_O)
a5a1cbece45e6ca68aafe3b9b995eac6b0f45dd2Mark Andrews
0d6328ce5f6b799f8e7c6cbbb3b965cf29bfb7baMark Andrews%.ln: $(CPUMEM_RETIRE_COMMON)/%.c
0d6328ce5f6b799f8e7c6cbbb3b965cf29bfb7baMark Andrews $(LINT.c) -c $<
0d6328ce5f6b799f8e7c6cbbb3b965cf29bfb7baMark Andrews