182d33c01Sav145390# 282d33c01Sav145390# CDDL HEADER START 382d33c01Sav145390# 482d33c01Sav145390# The contents of this file are subject to the terms of the 582d33c01Sav145390# Common Development and Distribution License (the "License"). 682d33c01Sav145390# You may not use this file except in compliance with the License. 782d33c01Sav145390# 882d33c01Sav145390# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 982d33c01Sav145390# or http://www.opensolaris.org/os/licensing. 1082d33c01Sav145390# See the License for the specific language governing permissions 1182d33c01Sav145390# and limitations under the License. 1282d33c01Sav145390# 1382d33c01Sav145390# When distributing Covered Code, include this CDDL HEADER in each 1482d33c01Sav145390# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 1582d33c01Sav145390# If applicable, add the following below this CDDL HEADER, with the 1682d33c01Sav145390# fields enclosed by brackets "[]" replaced with your own identifying 1782d33c01Sav145390# information: Portions Copyright [yyyy] [name of copyright owner] 1882d33c01Sav145390# 1982d33c01Sav145390# CDDL HEADER END 2082d33c01Sav145390# 2182d33c01Sav145390# 225f149bcaScy152378# Copyright 2008 Sun Microsystems, Inc. All rights reserved. 2382d33c01Sav145390# Use is subject to license terms. 2482d33c01Sav145390# 2582d33c01Sav145390 2682d33c01Sav145390PLATFORMS = SUNW,SPARC-Enterprise 2782d33c01Sav145390CLASS = plat 2882d33c01Sav145390MODULE = cpumem-retire 2982d33c01Sav145390 3082d33c01Sav145390CPUMEM_RETIRE_COMMON = ../../common/$(MODULE) 3182d33c01Sav145390 3282d33c01Sav145390INCDIRS += . 3382d33c01Sav145390INCDIRS += $(CPUMEM_RETIRE_COMMON) 3482d33c01Sav145390 3582d33c01Sav145390SRCS = \ 3682d33c01Sav145390 cma_main.c \ 375f149bcaScy152378 cma_cpu.c \ 385f149bcaScy152378 cma_cpu_arch.c \ 395f149bcaScy152378 cma_page.c \ 405f149bcaScy152378 cma_page_arch.c 4182d33c01Sav145390 4282d33c01Sav145390include ../../Makefile.plugin 4382d33c01Sav145390 4482d33c01Sav145390CMA_VERSION = "1.1" 4582d33c01Sav145390 4682d33c01Sav145390 4782d33c01Sav145390LIBDIRS = $(ROOT)/usr/platform/$(PLATFORMS)/lib 485f149bcaScy152378CPPFLAGS += $(INCDIRS:%=-I%) -DCMA_VERSION='$(CMA_VERSION)' -Dopl 4982d33c01Sav145390LDFLAGS += -R/usr/lib/fm 50*e4b86885SCheng Sean YeLDLIBS += -L$(ROOTLIB)/fm -lfmd_agent 5182d33c01Sav145390 5282d33c01Sav145390%.o: $(CPUMEM_RETIRE_COMMON)/%.c 5382d33c01Sav145390 $(COMPILE.c) -o $@ $< 5482d33c01Sav145390 $(CTFCONVERT_O) 5582d33c01Sav145390 5682d33c01Sav145390%.ln: $(CPUMEM_RETIRE_COMMON)/%.c 5782d33c01Sav145390 $(LINT.c) -c $< 58