xref: /illumos-gate/usr/src/cmd/sgs/libcrle/Makefile.com (revision 7c478bd95313f5f23a4c958a745db2134aa03244)
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 2004 Sun Microsystems, Inc.  All rights reserved.
24# Use is subject to license terms.
25#
26# ident	"%Z%%M%	%I%	%E% SMI"
27#
28
29LIBRARY=	libcrle.a
30VERS=		.1
31
32COMOBJS=	audit.o		dump.o		util.o
33BLTOBJ=		msg.o
34
35OBJECTS=	$(BLTOBJ)  $(COMOBJS)
36
37
38include		$(SRC)/lib/Makefile.lib
39include		$(SRC)/cmd/sgs/Makefile.com
40
41MAPFILES +=	../common/mapfile-vers
42MAPOPTS=	$(MAPFILES:%=-M%)
43
44# Building SUNWonld results in a call to the `package' target.  Requirements
45# needed to run this application on older releases are established:
46#   dlopen/dlclose requires libdl.so.1 prior to 5.10
47#
48DLLIB =		$(VAR_DL_LIB)
49package	:=	DLLIB = $(VAR_PKG_DL_LIB)
50
51LDZIGNORE=
52LDLIBS +=	-lmapmalloc $(DLLIB) -lc
53
54LINTFLAGS +=	-u
55LINTFLAGS64 +=	-u
56
57DYNFLAGS +=	$(VERSREF) $(CONVLIBDIR) -lconv \
58		$(MAPOPTS) $(USE_PROTO)
59
60
61BLTDEFS=	msg.h
62BLTDATA=	msg.c
63BLTMESG=	$(SGSMSGDIR)/libcrle
64
65BLTFILES=	$(BLTDEFS) $(BLTDATA) $(BLTMESG)
66
67SGSMSGCOM=	../common/libcrle.msg
68SGSMSGALL=	$(SGSMSGCOM)
69SGSMSGTARG=	$(SGSMSGCOM)
70SGSMSGFLAGS +=	-h $(BLTDEFS) -d $(BLTDATA) -m $(BLTMESG) -n libcrle_msg
71
72LIBSRCS=	$(COMOBJS:%.o=../common/%.c)  $(BLTDATA)
73LINTSRCS=	$(LIBSRCS)
74
75CLEANFILES +=	$(LINTOUTS) $(BLTFILES)
76CLOBBERFILES +=	$(DYNLIB) $(LINTLIB) $(LIBLINKS)
77
78ROOTDYNLIB=	$(DYNLIB:%=$(ROOTLIBDIR)/%)
79