70818f5837509317d1f5dac4d82d7b5a2d547c29tsien#
70818f5837509317d1f5dac4d82d7b5a2d547c29tsien# CDDL HEADER START
70818f5837509317d1f5dac4d82d7b5a2d547c29tsien#
70818f5837509317d1f5dac4d82d7b5a2d547c29tsien# The contents of this file are subject to the terms of the
70818f5837509317d1f5dac4d82d7b5a2d547c29tsien# Common Development and Distribution License (the "License").
70818f5837509317d1f5dac4d82d7b5a2d547c29tsien# You may not use this file except in compliance with the License.
70818f5837509317d1f5dac4d82d7b5a2d547c29tsien#
70818f5837509317d1f5dac4d82d7b5a2d547c29tsien# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
70818f5837509317d1f5dac4d82d7b5a2d547c29tsien# or http://www.opensolaris.org/os/licensing.
70818f5837509317d1f5dac4d82d7b5a2d547c29tsien# See the License for the specific language governing permissions
70818f5837509317d1f5dac4d82d7b5a2d547c29tsien# and limitations under the License.
70818f5837509317d1f5dac4d82d7b5a2d547c29tsien#
70818f5837509317d1f5dac4d82d7b5a2d547c29tsien# When distributing Covered Code, include this CDDL HEADER in each
70818f5837509317d1f5dac4d82d7b5a2d547c29tsien# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
70818f5837509317d1f5dac4d82d7b5a2d547c29tsien# If applicable, add the following below this CDDL HEADER, with the
70818f5837509317d1f5dac4d82d7b5a2d547c29tsien# fields enclosed by brackets "[]" replaced with your own identifying
70818f5837509317d1f5dac4d82d7b5a2d547c29tsien# information: Portions Copyright [yyyy] [name of copyright owner]
70818f5837509317d1f5dac4d82d7b5a2d547c29tsien#
70818f5837509317d1f5dac4d82d7b5a2d547c29tsien# CDDL HEADER END
70818f5837509317d1f5dac4d82d7b5a2d547c29tsien#
70818f5837509317d1f5dac4d82d7b5a2d547c29tsien#
70818f5837509317d1f5dac4d82d7b5a2d547c29tsien# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
70818f5837509317d1f5dac4d82d7b5a2d547c29tsien# Use is subject to license terms.
70818f5837509317d1f5dac4d82d7b5a2d547c29tsien#
70818f5837509317d1f5dac4d82d7b5a2d547c29tsien
70818f5837509317d1f5dac4d82d7b5a2d547c29tsienARCH = sun4v
70818f5837509317d1f5dac4d82d7b5a2d547c29tsienPRIDIR=../platform-mem
3f1e69bef33050bee99ea1e9992af13fc467281fCheng Sean YePIDIR=../sun4vpi
70818f5837509317d1f5dac4d82d7b5a2d547c29tsien
3f1e69bef33050bee99ea1e9992af13fc467281fCheng Sean Yesun4v_SRCS = dimm_sun4v.c mem_mdesc.c pi_meth.c
70818f5837509317d1f5dac4d82d7b5a2d547c29tsien
70818f5837509317d1f5dac4d82d7b5a2d547c29tsienINCDIRS = $(ROOT)/usr/platform/sun4v/include \
70818f5837509317d1f5dac4d82d7b5a2d547c29tsien $(PRIDIR)
70818f5837509317d1f5dac4d82d7b5a2d547c29tsien
70818f5837509317d1f5dac4d82d7b5a2d547c29tsien# include ../../sun4/chip/Makefile.chip
70818f5837509317d1f5dac4d82d7b5a2d547c29tsien
70818f5837509317d1f5dac4d82d7b5a2d547c29tsienMODULE = dimm
70818f5837509317d1f5dac4d82d7b5a2d547c29tsienCLASS = arch
70818f5837509317d1f5dac4d82d7b5a2d547c29tsienSUN4DIR = ../../sun4/$(MODULE)
70818f5837509317d1f5dac4d82d7b5a2d547c29tsienMODULESRCS = $($(ARCH)_SRCS)
70818f5837509317d1f5dac4d82d7b5a2d547c29tsien
70818f5837509317d1f5dac4d82d7b5a2d547c29tsieninclude ../../Makefile.plugin
70818f5837509317d1f5dac4d82d7b5a2d547c29tsien
70818f5837509317d1f5dac4d82d7b5a2d547c29tsienINCDIRS += $(SUN4DIR)
70818f5837509317d1f5dac4d82d7b5a2d547c29tsien
70818f5837509317d1f5dac4d82d7b5a2d547c29tsienCPPFLAGS += $(INCDIRS:%=-I%)
70818f5837509317d1f5dac4d82d7b5a2d547c29tsien
70818f5837509317d1f5dac4d82d7b5a2d547c29tsien%.o: $(SUN4DIR)/%.c
70818f5837509317d1f5dac4d82d7b5a2d547c29tsien $(COMPILE.c) -o $@ $<
70818f5837509317d1f5dac4d82d7b5a2d547c29tsien $(CTFCONVERT_O)
70818f5837509317d1f5dac4d82d7b5a2d547c29tsien
70818f5837509317d1f5dac4d82d7b5a2d547c29tsien%.ln: $(SUN4DIR)/%.c
70818f5837509317d1f5dac4d82d7b5a2d547c29tsien $(LINT.c) -c $<
70818f5837509317d1f5dac4d82d7b5a2d547c29tsien
70818f5837509317d1f5dac4d82d7b5a2d547c29tsien# end of what would be body of ../../sun4/mem/Makefile.mem
70818f5837509317d1f5dac4d82d7b5a2d547c29tsienLDLIBS += -lumem -lmdesc -lldom
70818f5837509317d1f5dac4d82d7b5a2d547c29tsien
70818f5837509317d1f5dac4d82d7b5a2d547c29tsien%.o: $(PRIDIR)/%.c
70818f5837509317d1f5dac4d82d7b5a2d547c29tsien $(COMPILE.c) -o $@ $<
70818f5837509317d1f5dac4d82d7b5a2d547c29tsien $(CTFCONVERT_O)
70818f5837509317d1f5dac4d82d7b5a2d547c29tsien
70818f5837509317d1f5dac4d82d7b5a2d547c29tsien%.ln: $(PRIDIR)/%.c
70818f5837509317d1f5dac4d82d7b5a2d547c29tsien $(LINT.c) -c $<
3f1e69bef33050bee99ea1e9992af13fc467281fCheng Sean Ye
3f1e69bef33050bee99ea1e9992af13fc467281fCheng Sean Ye%.o: $(PIDIR)/%.c
3f1e69bef33050bee99ea1e9992af13fc467281fCheng Sean Ye $(COMPILE.c) -o $@ $<
3f1e69bef33050bee99ea1e9992af13fc467281fCheng Sean Ye $(CTFCONVERT_O)
3f1e69bef33050bee99ea1e9992af13fc467281fCheng Sean Ye
3f1e69bef33050bee99ea1e9992af13fc467281fCheng Sean Ye%.ln: $(PIDIR)/%.c
3f1e69bef33050bee99ea1e9992af13fc467281fCheng Sean Ye $(LINT.c) -c $<