xref: /titanic_51/usr/src/cmd/fm/modules/sun4/cpumem-diagnosis/Makefile.cpumem (revision f645252839e7ff6d25cadf6a45b2ae9099943c5a)
1822fb41dStsien#
2822fb41dStsien# CDDL HEADER START
3822fb41dStsien#
4822fb41dStsien# The contents of this file are subject to the terms of the
59ee0dd10Sav145390# Common Development and Distribution License (the "License").
69ee0dd10Sav145390# You may not use this file except in compliance with the License.
7822fb41dStsien#
8822fb41dStsien# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9822fb41dStsien# or http://www.opensolaris.org/os/licensing.
10822fb41dStsien# See the License for the specific language governing permissions
11822fb41dStsien# and limitations under the License.
12822fb41dStsien#
13822fb41dStsien# When distributing Covered Code, include this CDDL HEADER in each
14822fb41dStsien# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15822fb41dStsien# If applicable, add the following below this CDDL HEADER, with the
16822fb41dStsien# fields enclosed by brackets "[]" replaced with your own identifying
17822fb41dStsien# information: Portions Copyright [yyyy] [name of copyright owner]
18822fb41dStsien#
19822fb41dStsien# CDDL HEADER END
20822fb41dStsien#
21822fb41dStsien#
22*f6452528STom Pothier# Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
23822fb41dStsien# Use is subject to license terms.
24822fb41dStsien#
25822fb41dStsien
26822fb41dStsienMODULE = cpumem-diagnosis
27822fb41dStsienCLASS = arch
28822fb41dStsienSUN4DIR = ../../sun4/$(MODULE)
29822fb41dStsienSRCS = \
30822fb41dStsien	cmd_bank.c \
31822fb41dStsien	cmd_cpu.c \
326dfee483Stsien	cmd_cpu_arch.c \
33822fb41dStsien	cmd_cpuerr.c \
34822fb41dStsien	cmd_dimm.c \
35822fb41dStsien	cmd_fmri.c \
36822fb41dStsien	cmd_list.c \
37822fb41dStsien	cmd_main.c \
38822fb41dStsien	cmd_mem.c \
39822fb41dStsien	cmd_memerr.c \
40822fb41dStsien	cmd_memerr_arch.c \
41822fb41dStsien	cmd_page.c \
42822fb41dStsien	cmd_pageerr.c \
43822fb41dStsien	cmd_state.c \
446dfee483Stsien	cmd_util.c \
456dfee483Stsien	$($(ARCH)_SRCS)
46822fb41dStsien
47822fb41dStsieninclude ../../Makefile.plugin
48822fb41dStsien
49*f6452528STom PothierCMD_VERSION = "1.7"
50822fb41dStsien
51822fb41dStsienINCDIRS += \
52822fb41dStsien	. \
53822fb41dStsien	$(SRC)/uts/sun4 \
54822fb41dStsien	$(SRC)/uts/sparc/v9 \
55822fb41dStsien	$(SUN4DIR)
56822fb41dStsien
57822fb41dStsienCPPFLAGS += $(INCDIRS:%=-I%) -DCMD_VERSION='$(CMD_VERSION)' -D$(ARCH)
58822fb41dStsien
5919d61fc7StsienLDLIBS += -lkstat -L$(ROOTLIB)/fm -ltopo
60822fb41dStsien
61822fb41dStsien%.o: $(SUN4DIR)/%.c
62822fb41dStsien	$(COMPILE.c) -o $@ $<
63822fb41dStsien	$(CTFCONVERT_O)
64822fb41dStsien
65822fb41dStsien%.ln: $(SUN4DIR)/%.c
66822fb41dStsien	$(LINT.c) -c $<
67