xref: /titanic_44/usr/src/lib/fm/topo/modules/sun4v/dimm/Makefile (revision 3f1e69bef33050bee99ea1e9992af13fc467281f)
1#
2# CDDL HEADER START
3#
4# The contents of this file are subject to the terms of the
5# Common Development and Distribution License (the "License").
6# You may not use this file except in compliance with the License.
7#
8# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9# or http://www.opensolaris.org/os/licensing.
10# See the License for the specific language governing permissions
11# and limitations under the License.
12#
13# When distributing Covered Code, include this CDDL HEADER in each
14# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15# If applicable, add the following below this CDDL HEADER, with the
16# fields enclosed by brackets "[]" replaced with your own identifying
17# information: Portions Copyright [yyyy] [name of copyright owner]
18#
19# CDDL HEADER END
20#
21#
22# Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
23# Use is subject to license terms.
24#
25
26ARCH = sun4v
27PRIDIR=../platform-mem
28PIDIR=../sun4vpi
29
30sun4v_SRCS = dimm_sun4v.c mem_mdesc.c pi_meth.c
31
32INCDIRS = $(ROOT)/usr/platform/sun4v/include \
33		$(PRIDIR)
34
35# include ../../sun4/chip/Makefile.chip
36
37MODULE = dimm
38CLASS = arch
39SUN4DIR = ../../sun4/$(MODULE)
40MODULESRCS = $($(ARCH)_SRCS)
41
42include ../../Makefile.plugin
43
44INCDIRS += $(SUN4DIR)
45
46CPPFLAGS += $(INCDIRS:%=-I%)
47
48%.o: $(SUN4DIR)/%.c
49	$(COMPILE.c) -o $@ $<
50	$(CTFCONVERT_O)
51
52%.ln: $(SUN4DIR)/%.c
53	$(LINT.c) -c $<
54
55# end of what would be body of ../../sun4/mem/Makefile.mem
56LDLIBS += -lumem -lmdesc -lldom
57
58%.o: $(PRIDIR)/%.c
59	$(COMPILE.c) -o $@ $<
60	$(CTFCONVERT_O)
61
62%.ln: $(PRIDIR)/%.c
63	$(LINT.c) -c $<
64
65%.o: $(PIDIR)/%.c
66	$(COMPILE.c) -o $@ $<
67	$(CTFCONVERT_O)
68
69%.ln: $(PIDIR)/%.c
70	$(LINT.c) -c $<
71