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