131e37bb4Svn83148# 231e37bb4Svn83148# CDDL HEADER START 331e37bb4Svn83148# 431e37bb4Svn83148# The contents of this file are subject to the terms of the 531e37bb4Svn83148# Common Development and Distribution License (the "License"). 631e37bb4Svn83148# You may not use this file except in compliance with the License. 731e37bb4Svn83148# 831e37bb4Svn83148# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 931e37bb4Svn83148# or http://www.opensolaris.org/os/licensing. 1031e37bb4Svn83148# See the License for the specific language governing permissions 1131e37bb4Svn83148# and limitations under the License. 1231e37bb4Svn83148# 1331e37bb4Svn83148# When distributing Covered Code, include this CDDL HEADER in each 1431e37bb4Svn83148# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 1531e37bb4Svn83148# If applicable, add the following below this CDDL HEADER, with the 1631e37bb4Svn83148# fields enclosed by brackets "[]" replaced with your own identifying 1731e37bb4Svn83148# information: Portions Copyright [yyyy] [name of copyright owner] 1831e37bb4Svn83148# 1931e37bb4Svn83148# CDDL HEADER END 2031e37bb4Svn83148# 2131e37bb4Svn83148# 225f149bcaScy152378# Copyright 2008 Sun Microsystems, Inc. All rights reserved. 2331e37bb4Svn83148# Use is subject to license terms. 2431e37bb4Svn83148# 2531e37bb4Svn83148 2631e37bb4Svn83148MODULE = cpumem-retire 2731e37bb4Svn83148CLASS = arch 2831e37bb4Svn83148ARCH = sun4v 2931e37bb4Svn83148SRCS = \ 3031e37bb4Svn83148 cma_main.c \ 315f149bcaScy152378 cma_cpu.c \ 325f149bcaScy152378 cma_cpu_sun4v.c \ 3331e37bb4Svn83148 cma_page.c \ 345f149bcaScy152378 cma_page_sun4v.c 3531e37bb4Svn83148 3631e37bb4Svn83148include ../../Makefile.plugin 3731e37bb4Svn83148 3831e37bb4Svn83148CMA_VERSION = "1.1" 3931e37bb4Svn83148 405f149bcaScy152378CPUMEM_RETIRE_COMMON = ../../common/$(MODULE) 4131e37bb4Svn83148 425f149bcaScy152378INCDIRS = . \ 435f149bcaScy152378 $(ROOT)/usr/platform/sun4v/include \ 445f149bcaScy152378 $(CPUMEM_RETIRE_COMMON) 455f149bcaScy152378 465f149bcaScy152378CPPFLAGS += $(INCDIRS:%=-I%) -DCMA_VERSION='$(CMA_VERSION)' -Dsun4v 4762e61469Sdb35262LDFLAGS += -R/usr/lib/fm 48*3f1e69beSCheng Sean YeLDLIBS += -L$(ROOTLIB)/fm -lldom -ltopo 495f149bcaScy152378 505f149bcaScy152378%.o: $(CPUMEM_RETIRE_COMMON)/%.c 515f149bcaScy152378 $(COMPILE.c) -o $@ $< 525f149bcaScy152378 $(CTFCONVERT_O) 535f149bcaScy152378 545f149bcaScy152378%.ln: $(CPUMEM_RETIRE_COMMON)/%.c 555f149bcaScy152378 $(LINT.c) -c $< 56