xref: /onnv-gate/usr/src/lib/krb5/plugins/kdb/db2/libdb2/Makefile.com (revision 4960:a4746a82a247)
1*4960Swillf#
2*4960Swillf# CDDL HEADER START
3*4960Swillf#
4*4960Swillf# The contents of this file are subject to the terms of the
5*4960Swillf# Common Development and Distribution License (the "License").
6*4960Swillf# You may not use this file except in compliance with the License.
7*4960Swillf#
8*4960Swillf# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*4960Swillf# or http://www.opensolaris.org/os/licensing.
10*4960Swillf# See the License for the specific language governing permissions
11*4960Swillf# and limitations under the License.
12*4960Swillf#
13*4960Swillf# When distributing Covered Code, include this CDDL HEADER in each
14*4960Swillf# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*4960Swillf# If applicable, add the following below this CDDL HEADER, with the
16*4960Swillf# fields enclosed by brackets "[]" replaced with your own identifying
17*4960Swillf# information: Portions Copyright [yyyy] [name of copyright owner]
18*4960Swillf#
19*4960Swillf# CDDL HEADER END
20*4960Swillf#
21*4960Swillf#
22*4960Swillf# Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
23*4960Swillf# Use is subject to license terms.
24*4960Swillf#
25*4960Swillf# ident	"%Z%%M%	%I%	%E% SMI"
26*4960Swillf#
27*4960Swillf
28*4960SwillfLIBRARY= libdb2.a
29*4960SwillfVERS= .1
30*4960Swillf
31*4960Swillf# btree
32*4960SwillfBTREE_OBJS= \
33*4960Swillf	bt_close.o \
34*4960Swillf	bt_conv.o \
35*4960Swillf	bt_debug.o \
36*4960Swillf	bt_delete.o \
37*4960Swillf	bt_get.o \
38*4960Swillf	bt_open.o \
39*4960Swillf        bt_overflow.o \
40*4960Swillf	bt_page.o \
41*4960Swillf	bt_put.o \
42*4960Swillf	bt_search.o \
43*4960Swillf	bt_seq.o \
44*4960Swillf	bt_split.o \
45*4960Swillf        bt_utils.o
46*4960Swillf
47*4960Swillf# db
48*4960SwillfDB_OBJS= db.o
49*4960Swillf
50*4960Swillf# hash
51*4960SwillfHASH_OBJS= \
52*4960Swillf	hash.o \
53*4960Swillf	hash_bigkey.o \
54*4960Swillf	hash_func.o \
55*4960Swillf	hash_log2.o \
56*4960Swillf	hash_page.o \
57*4960Swillf	hsearch.o \
58*4960Swillf	dbm.o
59*4960Swillf
60*4960Swillf# mpool
61*4960SwillfMPOOL_OBJS= mpool.o
62*4960Swillf
63*4960Swillf# recno
64*4960SwillfRECNO_OBJS= \
65*4960Swillf	rec_close.o \
66*4960Swillf	rec_delete.o \
67*4960Swillf	rec_get.o \
68*4960Swillf	rec_open.o \
69*4960Swillf	rec_put.o \
70*4960Swillf	rec_search.o \
71*4960Swillf	rec_seq.o \
72*4960Swillf	rec_utils.o
73*4960Swillf
74*4960SwillfOBJECTS= \
75*4960Swillf	$(BTREE_OBJS) $(DB_OBJS) $(HASH_OBJS) $(MPOOL_OBJS) $(RECNO_OBJS)
76*4960Swillf
77*4960Swillf# include library definitions
78*4960Swillfinclude $(SRC)/lib/krb5/Makefile.lib
79*4960Swillf
80*4960SwillfSRCS=	$(BTREE_OBJS:%.o=../btree/%.c) \
81*4960Swillf	$(DB_OBJS:%.o=../db/%.c) \
82*4960Swillf	$(HASH_OBJS:%.o=../hash/%.c) \
83*4960Swillf	$(MPOOL_OBJS:%.o=../mpool/%.c) \
84*4960Swillf	$(RECNO_OBJS:%.o=../recno/%.c)
85*4960Swillf
86*4960SwillfLIBS=		$(DYNLIB)
87*4960Swillf
88*4960Swillfinclude $(SRC)/lib/gss_mechs/mech_krb5/Makefile.mech_krb5
89*4960Swillf
90*4960SwillfPOFILE = $(LIBRARY:%.a=%.po)
91*4960SwillfPOFILES = generic.po
92*4960Swillf
93*4960Swillf#override liblink
94*4960SwillfINS.liblink=	-$(RM) $@; $(SYMLINK) $(LIBLINKS)$(VERS) $@
95*4960Swillf
96*4960SwillfCPPFLAGS += 	-DHAVE_CONFIG_H \
97*4960Swillf		-I$(SRC)/lib/krb5/plugins/kdb/db2/libdb2/mpool \
98*4960Swillf		-I$(SRC)/lib/krb5/plugins/kdb/db2/libdb2/db \
99*4960Swillf		-I$(SRC)/lib/krb5/plugins/kdb/db2/libdb2/hash \
100*4960Swillf		-I$(SRC)/lib/krb5/plugins/kdb/db2/libdb2/btree \
101*4960Swillf		-I$(SRC)/lib/krb5/plugins/kdb/db2/libdb2/recno \
102*4960Swillf		-I$(SRC)/lib/krb5/plugins/kdb/db2/libdb2/include \
103*4960Swillf		-I$(SRC)/lib/gss_mechs/mech_krb5/include  #for db-ndbm.h
104*4960Swillf
105*4960SwillfCFLAGS +=	$(CCVERBOSE) -I..
106*4960SwillfLDLIBS +=	-lc
107*4960Swillf
108*4960Swillf# Identify that this library is an interposer (on dbm_ routines from libc.so.1).
109*4960Swillf# This identification insures runtime symbol lookup resolves to this library
110*4960Swillf# (before libc.so.1) regardless of dependency link order.
111*4960SwillfDYNFLAGS +=	$(ZINTERPOSE)
112*4960Swillf
113*4960Swillf.KEEP_STATE:
114*4960Swillf
115*4960Swillfall:	$(LIBS)
116*4960Swillf
117*4960Swillflint:	lintcheck
118*4960Swillf
119*4960Swillf# include library targets
120*4960Swillfinclude $(SRC)/lib/krb5/Makefile.targ
121*4960Swillf
122*4960Swillfpics/%.o: ../btree/%.c
123*4960Swillf	$(COMPILE.c)  -o $@ $<
124*4960Swillf	$(POST_PROCESS_O)
125*4960Swillf
126*4960Swillfpics/%.o: ../db/%.c
127*4960Swillf	$(COMPILE.c)  -o $@ $<
128*4960Swillf	$(POST_PROCESS_O)
129*4960Swillf
130*4960Swillfpics/%.o: ../hash/%.c
131*4960Swillf	$(COMPILE.c)  -o $@ $<
132*4960Swillf	$(POST_PROCESS_O)
133*4960Swillf
134*4960Swillfpics/%.o: ../mpool/%.c
135*4960Swillf	$(COMPILE.c)  -o $@ $<
136*4960Swillf	$(POST_PROCESS_O)
137*4960Swillf
138*4960Swillfpics/%.o: ../recno/%.c
139*4960Swillf	$(COMPILE.c)  -o $@ $<
140*4960Swillf	$(POST_PROCESS_O)
141*4960Swillf
142*4960SwillfFRC:
143*4960Swillf
144*4960Swillfgeneric.po: FRC
145*4960Swillf	$(RM) messages.po
146*4960Swillf	$(XGETTEXT) $(XGETFLAGS) `$(GREP) -l gettext ../hash/*.[ch]`
147*4960Swillf	$(SED) "/^domain/d" messages.po > $@
148*4960Swillf	$(RM) messages.po
149