11529f529SScott Davenport# 21529f529SScott Davenport# CDDL HEADER START 31529f529SScott Davenport# 41529f529SScott Davenport# The contents of this file are subject to the terms of the 51529f529SScott Davenport# Common Development and Distribution License (the "License"). 61529f529SScott Davenport# You may not use this file except in compliance with the License. 71529f529SScott Davenport# 81529f529SScott Davenport# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 91529f529SScott Davenport# or http://www.opensolaris.org/os/licensing. 101529f529SScott Davenport# See the License for the specific language governing permissions 111529f529SScott Davenport# and limitations under the License. 121529f529SScott Davenport# 131529f529SScott Davenport# When distributing Covered Code, include this CDDL HEADER in each 141529f529SScott Davenport# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 151529f529SScott Davenport# If applicable, add the following below this CDDL HEADER, with the 161529f529SScott Davenport# fields enclosed by brackets "[]" replaced with your own identifying 171529f529SScott Davenport# information: Portions Copyright [yyyy] [name of copyright owner] 181529f529SScott Davenport# 191529f529SScott Davenport# CDDL HEADER END 201529f529SScott Davenport# 211529f529SScott Davenport# 221529f529SScott Davenport# Copyright 2008 Sun Microsystems, Inc. All rights reserved. 231529f529SScott Davenport# Use is subject to license terms. 241529f529SScott Davenport# 251529f529SScott Davenport 261529f529SScott DavenportCLASS = arch 271529f529SScott DavenportARCH = sun4v 281529f529SScott DavenportMODULE = generic-mem 291529f529SScott DavenportGENERIC_MEM = ../../sun4v/$(MODULE) 301529f529SScott Davenport 311529f529SScott DavenportSRCS = \ 321529f529SScott Davenport gmem_main.c \ 331529f529SScott Davenport gmem_mem.c \ 341529f529SScott Davenport gmem_dimm.c \ 351529f529SScott Davenport gmem_memerr.c \ 361529f529SScott Davenport gmem_page.c \ 371529f529SScott Davenport gmem_state.c \ 381529f529SScott Davenport gmem_fmri.c \ 391529f529SScott Davenport gmem_util.c 401529f529SScott Davenport 411529f529SScott Davenportinclude ../../Makefile.plugin 421529f529SScott Davenport 431529f529SScott DavenportINCDIRS += \ 441529f529SScott Davenport $(SRC)/uts/sun4 \ 451529f529SScott Davenport $(SRC)/uts/sparc/v9 \ 461529f529SScott Davenport $(SRC)/uts/sun4v \ 471529f529SScott Davenport $(ROOT)/usr/platform/sun4v/include \ 481529f529SScott Davenport $(GENERIC_MEM) 491529f529SScott Davenport 501529f529SScott DavenportGMEM_VERSION = "1.0" 511529f529SScott Davenport 521529f529SScott DavenportLDLIBS += -L$(ROOTLIB)/fm -ltopo 531529f529SScott DavenportLDFLAGS += -R/usr/lib/fm 541529f529SScott DavenportCPPFLAGS += $(INCDIRS:%=-I%) -DGMEM_VERSION='$(GMEM_VERSION)' -D$(ARCH) 55*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-switch 56*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-parentheses 571529f529SScott Davenport 581529f529SScott Davenport%.o: $(GENERIC_MEM)/%.c 591529f529SScott Davenport $(COMPILE.c) -o $@ $< 601529f529SScott Davenport $(CTFCONVERT_O) 611529f529SScott Davenport 621529f529SScott Davenport%.ln: $(GENERIC_MEM)/%.c 631529f529SScott Davenport $(LINT.c) -c $< 64