xref: /titanic_52/usr/src/lib/libadt_jni/Makefile.com (revision 1cb6af97c6f66f456d4f726ef056e1ebc0f73305)
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# lib/libadt_jni/Makefile.com
29#
30
31LIBRARY=	libadt_jni.a
32VERS=		.1
33
34OBJECTS=	adt_jni.o	\
35		adt_jni_event.o
36
37include		$(SRC)/lib/Makefile.lib
38
39MAPFILE=
40SPECMAPFILE=	$(MAPDIR)/mapfile
41
42LIBS =		$(DYNLIB) $(LINTLIB)
43
44SRCS=		$(OBJECTS:%.o=../common/%.c)
45
46# see also spec/Makefile's SPECCPP for java include
47CPPFLAGS +=	-I$(JAVA_ROOT)/include -I$(JAVA_ROOT)/include/solaris
48CPPFLAGS +=	-D_REENTRANT
49
50DYNFLAGS +=
51LDLIBS +=	-lc -lbsm
52
53CLEANFILES=	$(LINTOUT) $(LINTLIB)
54CLOBBERFILES +=
55
56$(LINTLIB) :=	SRCS=../common/llib-ladt_jni
57
58LINTSRC=	$(LINTLIB:%.ln=%)
59ROOTLINTDIR=	$(ROOTLIBDIR)
60ROOTLINT=	$(LINTSRC:%=$(ROOTLINTDIR)/%)
61
62.KEEP_STATE:
63
64lint:		lintcheck
65
66include		$(SRC)/lib/Makefile.targ
67
68pics/%.o: ../common/%.c
69	$(COMPILE.c) -o $@ $<
70	$(POST_PROCESS_O)
71
72# install rule for lint library target
73$(ROOTLINTDIR)/%: ../common/%
74	$(INS.file)
75
76