xref: /titanic_51/usr/src/lib/fm/libmdesc/Makefile.com (revision fc33347812f84907261f6fd501e2409da108b8d8)
16dfee483Stsien#
26dfee483Stsien# CDDL HEADER START
36dfee483Stsien#
46dfee483Stsien# The contents of this file are subject to the terms of the
5f808c858Sraf# Common Development and Distribution License (the "License").
6f808c858Sraf# You may not use this file except in compliance with the License.
76dfee483Stsien#
86dfee483Stsien# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
96dfee483Stsien# or http://www.opensolaris.org/os/licensing.
106dfee483Stsien# See the License for the specific language governing permissions
116dfee483Stsien# and limitations under the License.
126dfee483Stsien#
136dfee483Stsien# When distributing Covered Code, include this CDDL HEADER in each
146dfee483Stsien# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
156dfee483Stsien# If applicable, add the following below this CDDL HEADER, with the
166dfee483Stsien# fields enclosed by brackets "[]" replaced with your own identifying
176dfee483Stsien# information: Portions Copyright [yyyy] [name of copyright owner]
186dfee483Stsien#
196dfee483Stsien# CDDL HEADER END
206dfee483Stsien#
216dfee483Stsien#
22*fc333478STom Pothier# Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
236dfee483Stsien#
246dfee483Stsien
256dfee483StsienLIBRARY = libmdesc.a
266dfee483StsienVERS = .1
276dfee483Stsien
286dfee483StsienLIBSRCS =	\
296dfee483Stsien	mdesc_fini.c \
306dfee483Stsien	mdesc_findname.c \
316dfee483Stsien	mdesc_findnodeprop.c \
32908f1e13Ssd77468	mdesc_getproparcs.c \
33*fc333478STom Pothier	mdesc_getpropdata.c \
346dfee483Stsien	mdesc_getpropstr.c \
356dfee483Stsien	mdesc_getpropval.c \
366dfee483Stsien	mdesc_init_intern.c \
376dfee483Stsien	mdesc_nodecount.c \
38908f1e13Ssd77468	mdesc_scandag.c \
39908f1e13Ssd77468	mdesc_walkdag.c
406dfee483Stsien
416dfee483StsienOBJECTS = $(LIBSRCS:%.c=%.o)
426dfee483Stsien
436dfee483Stsieninclude ../../../Makefile.lib
446dfee483Stsieninclude ../../Makefile.lib
456dfee483Stsien
466dfee483StsienSRCS = $(LIBSRCS:%.c=$(SRC)/common/mdesc/%.c)
476dfee483Stsien
486dfee483StsienLIBS = $(DYNLIB) $(LINTLIB)
496dfee483Stsien
506dfee483StsienSRCDIR =	../common
516dfee483Stsien
526dfee483StsienCPPFLAGS += -I../common -I.
536dfee483StsienCFLAGS += $(CCVERBOSE) -K PIC
546dfee483StsienCFLAGS64 += $(CCVERBOSE) -K PIC
556dfee483StsienLDLIBS += -lc
566dfee483Stsien
576dfee483StsienLINTFLAGS += -erroff=E_BAD_PTR_CAST_ALIGN -v
586dfee483StsienLINTFLAGS64 += -erroff=E_BAD_PTR_CAST_ALIGN -v
596dfee483Stsien$(LINTLIB) := SRCS = $(SRCDIR)/$(LINTSRC)
606dfee483Stsien$(LINTLIB) := LINTFLAGS = -nsvx
610bb07399SNick Todd$(LINTLIB) := LINTFLAGS64 = -nsvx -m64
626dfee483Stsien
636dfee483Stsien.KEEP_STATE:
646dfee483Stsien
656dfee483Stsienall: $(LIBS)
666dfee483Stsien
676dfee483Stsienlint: $(LINTLIB) lintcheck
686dfee483Stsien
696dfee483Stsienpics/%.o: $(SRC)/common/mdesc/%.c
706dfee483Stsien	$(COMPILE.c) -o $@ $<
716dfee483Stsien	$(POST_PROCESS_O)
726dfee483Stsien
736dfee483Stsien%.ln: $(SRC)/common/mdesc/%.c
746dfee483Stsien	$(LINT.c) -o $@ $<
756dfee483Stsien
766dfee483Stsieninclude ../../../Makefile.targ
776dfee483Stsieninclude ../../Makefile.targ
78