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