xref: /titanic_52/usr/src/cmd/fm/schemes/mem/Makefile (revision 35b7f6cc898f7c73f5367459c83198f1bb897fff)
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, Version 1.0 only
6# (the "License").  You may not use this file except in compliance
7# with the License.
8#
9# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10# or http://www.opensolaris.org/os/licensing.
11# See the License for the specific language governing permissions
12# and limitations under the License.
13#
14# When distributing Covered Code, include this CDDL HEADER in each
15# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16# If applicable, add the following below this CDDL HEADER, with the
17# fields enclosed by brackets "[]" replaced with your own identifying
18# information: Portions Copyright [yyyy] [name of copyright owner]
19#
20# CDDL HEADER END
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
33SRCS = \
34	mdesc_devinit.c \
35	mdesc_fini.c \
36	mdesc_findname.c \
37	mdesc_findnodeprop.c \
38	mdesc_getpropstr.c \
39	mdesc_getpropval.c \
40	mdesc_init_intern.c \
41	mdesc_nodecount.c \
42	mdesc_scandag.c \
43	mem.c \
44	mem_disc.c \
45	mem_read.c \
46	mem_unum.c \
47	mem_util.c
48
49# These LINTFLAGS are provided for benefit of mdesc routines
50
51LINTFLAGS +=    -erroff=E_BAD_PTR_CAST_ALIGN -v
52
53include ../Makefile.targ
54
55%.o: $(SCHEME_COMMON)/%.c
56	$(COMPILE.c) -o $@ $<
57	$(CTFCONVERT_O)
58
59%.o: $(MDESC_COMMON)/%.c
60	$(COMPILE.c) -o $@ $<
61	$(CTFCONVERT_O)
62
63%.ln: $(SCHEME_COMMON)/%.c
64	$(LINT.c) -c $<
65
66%.ln: $(MDESC_COMMON)/%.c
67	$(LINT.c) -c $<
68
69