xref: /titanic_52/usr/src/cmd/fm/schemes/cpu/Makefile (revision 6451fdbca2f79129a3a09d2fe3f6dd4d062bebff)
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#
23# Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
24# Use is subject to license terms.
25#
26#ident	"%Z%%M%	%I%	%E% SMI"
27
28include ../Makefile.com
29
30SCHEME_COMMON = ../common
31MDESC_COMMON = $(SRC)/common/mdesc
32
33sparc_SRCS =	\
34	cpu_mdesc.c \
35	mdesc_devinit.c \
36	mdesc_init_intern.c \
37	mdesc_findname.c \
38	mdesc_findnodeprop.c \
39	mdesc_fini.c \
40	mdesc_getpropval.c \
41	mdesc_nodecount.c \
42	mdesc_scandag.c
43
44SRCS =	\
45	cpu.c \
46	$($(MACH)_SRCS)
47
48LDLIBS += -lkstat
49
50# These LINTFLAGS are provided for benefit of mdesc routines
51
52LINTFLAGS +=	-erroff=E_BAD_PTR_CAST_ALIGN -v
53
54include ../Makefile.targ
55
56%.o: $(SCHEME_COMMON)/%.c
57	$(COMPILE.c) -o $@ $<
58	$(CTFCONVERT_O)
59
60%.o: $(MDESC_COMMON)/%.c
61	$(COMPILE.c) -o $@ $<
62	$(CTFCONVERT_O)
63
64%.ln: $(SCHEME_COMMON)/%.c
65	$(LINT.c) -c $<
66
67%.ln: $(MDESC_COMMON)/%.c
68	$(LINT.c) -c $<
69
70