xref: /titanic_41/usr/src/lib/fm/libmdesc/Makefile.com (revision e4b86885570d77af552e9cf94f142f4d744fb8c8)
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# ident	"%Z%%M%	%I%	%E% SMI"
26#
27
28LIBRARY = libmdesc.a
29VERS = .1
30
31LIBSRCS =	\
32	mdesc_fini.c \
33	mdesc_findname.c \
34	mdesc_findnodeprop.c \
35	mdesc_getproparcs.c \
36	mdesc_getpropstr.c \
37	mdesc_getpropval.c \
38	mdesc_init_intern.c \
39	mdesc_nodecount.c \
40	mdesc_scandag.c \
41	mdesc_walkdag.c
42
43OBJECTS = $(LIBSRCS:%.c=%.o)
44
45include ../../../Makefile.lib
46include ../../Makefile.lib
47
48SRCS = $(LIBSRCS:%.c=$(SRC)/common/mdesc/%.c)
49
50LIBS = $(DYNLIB) $(LINTLIB)
51
52SRCDIR =	../common
53
54CPPFLAGS += -I../common -I.
55CFLAGS += $(CCVERBOSE) -K PIC
56CFLAGS64 += $(CCVERBOSE) -K PIC
57LDLIBS += -lc
58
59LINTFLAGS += -erroff=E_BAD_PTR_CAST_ALIGN -v
60LINTFLAGS64 += -erroff=E_BAD_PTR_CAST_ALIGN -v
61$(LINTLIB) := SRCS = $(SRCDIR)/$(LINTSRC)
62$(LINTLIB) := LINTFLAGS = -nsvx
63$(LINTLIB) := LINTFLAGS64 = -nsvx -Xarch=$(MACH64:sparcv9=v9)
64
65.KEEP_STATE:
66
67all: $(LIBS)
68
69lint: $(LINTLIB) lintcheck
70
71pics/%.o: $(SRC)/common/mdesc/%.c
72	$(COMPILE.c) -o $@ $<
73	$(POST_PROCESS_O)
74
75%.ln: $(SRC)/common/mdesc/%.c
76	$(LINT.c) -o $@ $<
77
78include ../../../Makefile.targ
79include ../../Makefile.targ
80