2 myfulldir=lib/kdb/kdb_db2
4 BUILDTOP=$(REL)..$(S)..$(S)..
5 KRB5_RUN_ENV = @KRB5_RUN_ENV@
6 KRB5_CONFIG_SETUP = KRB5_CONFIG=$(SRCTOP)/config-files/krb5.conf ; export KRB5_CONFIG ;
7 PROG_LIBPATH=-L$(TOPLIBD)
8 PROG_RPATH=$(KRB5_LIBDIR)
18 # Depends on libk5crypto and libkrb5
21 $(TOPLIBD)/libk5crypto$(SHLIBEXT) \
22 $(TOPLIBD)/libkrb5$(SHLIBEXT)
23 SHLIB_EXPLIBS=-lkrb5 -lcom_err -lk5crypto $(KDB5_DB_LIB) $(LIBS)
24 SHLIB_DIRS=-L$(TOPLIBD)
25 SHLIB_RDIRS=$(KRB5_LIBDIR)
27 DBDIR = $(BUILDTOP)/util/db2
28 DBOBJLISTS = $(DBOBJLISTS-@DB_VERSION@)
30 DBOBJLISTS-k5 = $(DBDIR)/hash/OBJS.ST $(DBDIR)/btree/OBJS.ST \
31 $(DBDIR)/db/OBJS.ST $(DBDIR)/mpool/OBJS.ST $(DBDIR)/recno/OBJS.ST \
34 all:: lib$(LIB)$(SO_EXT)
38 $(srcdir)/adb_openclose.c \
39 $(srcdir)/adb_policy.c \
44 STOBJLISTS=OBJS.ST $(DBOBJLISTS)
53 all-unix:: all-liblinks
54 install-unix:: install-libs
55 clean-unix:: clean-liblinks clean-libs clean-libobjs
57 lib$(LIB)$(SO_EXT): db2_exp.o # lib$(LIB)$(STLIBEXT)
58 $(CC) -shared -o $@ -L$(TOPLIBD) $^ -lgssrpc -ldb $(SHLIB_EXPLIBS)
61 $(RM) lib$(LIB)$(SO_EXT) db2_exp.o
64 t_kdb: t_kdb.o $(OBJS) $(KDB5_DEPLIBS) $(KRB5_BASE_DEPLIBS)
65 $(CC_LINK) -o t_kdb t_kdb.o $(OBJS) $(KDB5_LIBS) $(KRB5_BASE_LIBS)
69 $(KRB5_CONFIG_SETUP) $(KRB5_RUN_ENV) ./t_kdb -tcv
70 $(KRB5_CONFIG_SETUP) $(KRB5_RUN_ENV) ./t_kdb -tcvr
76 adb_openclose.c adb_policy.c : ../adb_err.h
81 # +++ Dependency line eater +++
83 # Makefile dependencies follow. This must be the last section in
84 # the Makefile.in file
86 kdb_xdr.so kdb_xdr.po $(OUTPRE)kdb_xdr.$(OBJEXT): kdb_xdr.c \
87 $(SRCTOP)/include/k5-int.h $(BUILDTOP)/include/krb5/osconf.h \
88 $(BUILDTOP)/include/krb5/autoconf.h $(SRCTOP)/include/k5-platform.h \
89 $(BUILDTOP)/include/krb5/autoconf.h $(SRCTOP)/include/k5-thread.h \
90 $(BUILDTOP)/include/krb5.h $(COM_ERR_DEPS) $(BUILDTOP)/include/profile.h \
91 $(SRCTOP)/include/port-sockets.h $(BUILDTOP)/include/krb5/autoconf.h \
92 $(SRCTOP)/include/socket-utils.h $(SRCTOP)/include/krb5/kdb.h \
94 adb_openclose.so adb_openclose.po $(OUTPRE)adb_openclose.$(OBJEXT): \
95 adb_openclose.c $(SRCTOP)/include/k5-int.h $(BUILDTOP)/include/krb5/osconf.h \
96 $(BUILDTOP)/include/krb5/autoconf.h $(SRCTOP)/include/k5-platform.h \
97 $(BUILDTOP)/include/krb5/autoconf.h $(SRCTOP)/include/k5-thread.h \
98 $(BUILDTOP)/include/krb5.h $(COM_ERR_DEPS) $(BUILDTOP)/include/profile.h \
99 $(SRCTOP)/include/port-sockets.h $(BUILDTOP)/include/krb5/autoconf.h \
100 $(SRCTOP)/include/socket-utils.h $(SRCTOP)/include/krb5/kdb.h \
101 policy_db.h $(SRCTOP)/include/krb5/kdb.h $(DB_DEPS) \
102 $(BUILDTOP)/include/gssrpc/types.h $(BUILDTOP)/include/gssrpc/rename.h \
103 $(BUILDTOP)/include/gssrpc/xdr.h ../adb_err.h
104 adb_policy.so adb_policy.po $(OUTPRE)adb_policy.$(OBJEXT): \
105 adb_policy.c policy_db.h $(SRCTOP)/include/k5-int.h \
106 $(BUILDTOP)/include/krb5/osconf.h $(BUILDTOP)/include/krb5/autoconf.h \
107 $(SRCTOP)/include/k5-platform.h $(BUILDTOP)/include/krb5/autoconf.h \
108 $(SRCTOP)/include/k5-thread.h $(BUILDTOP)/include/krb5.h \
109 $(COM_ERR_DEPS) $(BUILDTOP)/include/profile.h $(SRCTOP)/include/port-sockets.h \
110 $(BUILDTOP)/include/krb5/autoconf.h $(SRCTOP)/include/socket-utils.h \
111 $(SRCTOP)/include/krb5/kdb.h $(SRCTOP)/include/krb5/kdb.h \
112 $(DB_DEPS) $(BUILDTOP)/include/gssrpc/types.h $(BUILDTOP)/include/gssrpc/rename.h \
113 $(BUILDTOP)/include/gssrpc/xdr.h ../adb_err.h
114 kdb_db2.so kdb_db2.po $(OUTPRE)kdb_db2.$(OBJEXT): kdb_db2.c \
115 $(SRCTOP)/include/k5-int.h $(BUILDTOP)/include/krb5/osconf.h \
116 $(BUILDTOP)/include/krb5/autoconf.h $(SRCTOP)/include/k5-platform.h \
117 $(BUILDTOP)/include/krb5/autoconf.h $(SRCTOP)/include/k5-thread.h \
118 $(BUILDTOP)/include/krb5.h $(COM_ERR_DEPS) $(BUILDTOP)/include/profile.h \
119 $(SRCTOP)/include/port-sockets.h $(BUILDTOP)/include/krb5/autoconf.h \
120 $(SRCTOP)/include/socket-utils.h $(SRCTOP)/include/krb5/kdb.h \
121 $(DB_DEPS) $(srcdir)/../kdb5.h $(SRCTOP)/include/k5-int.h \
122 $(srcdir)/../err_handle.h kdb_db2.h policy_db.h $(SRCTOP)/include/krb5/kdb.h \
123 $(BUILDTOP)/include/gssrpc/types.h $(BUILDTOP)/include/gssrpc/rename.h \
124 $(BUILDTOP)/include/gssrpc/xdr.h ../adb_err.h kdb_xdr.h \
126 pol_xdr.so pol_xdr.po $(OUTPRE)pol_xdr.$(OBJEXT): pol_xdr.c \
127 $(BUILDTOP)/include/krb5.h $(COM_ERR_DEPS) $(BUILDTOP)/include/gssrpc/rpc.h \
128 $(BUILDTOP)/include/gssrpc/types.h $(BUILDTOP)/include/gssrpc/rename.h \
129 $(BUILDTOP)/include/gssrpc/xdr.h $(BUILDTOP)/include/gssrpc/auth.h \
130 $(BUILDTOP)/include/gssrpc/clnt.h $(BUILDTOP)/include/gssrpc/rpc_msg.h \
131 $(BUILDTOP)/include/gssrpc/auth_unix.h $(BUILDTOP)/include/gssrpc/auth_gss.h \
132 $(BUILDTOP)/include/gssapi/gssapi.h $(BUILDTOP)/include/gssrpc/svc_auth.h \
133 $(BUILDTOP)/include/gssrpc/svc.h $(SRCTOP)/include/krb5/kdb.h \
134 policy_db.h $(SRCTOP)/include/k5-int.h $(BUILDTOP)/include/krb5/osconf.h \
135 $(BUILDTOP)/include/krb5/autoconf.h $(SRCTOP)/include/k5-platform.h \
136 $(BUILDTOP)/include/krb5/autoconf.h $(SRCTOP)/include/k5-thread.h \
137 $(BUILDTOP)/include/profile.h $(SRCTOP)/include/port-sockets.h \
138 $(BUILDTOP)/include/krb5/autoconf.h $(SRCTOP)/include/socket-utils.h \
139 $(SRCTOP)/include/krb5/kdb.h $(DB_DEPS) ../adb_err.h
140 db2_exp.so db2_exp.po $(OUTPRE)db2_exp.$(OBJEXT): db2_exp.c \
141 $(SRCTOP)/include/k5-int.h $(BUILDTOP)/include/krb5/osconf.h \
142 $(BUILDTOP)/include/krb5/autoconf.h $(SRCTOP)/include/k5-platform.h \
143 $(BUILDTOP)/include/krb5/autoconf.h $(SRCTOP)/include/k5-thread.h \
144 $(BUILDTOP)/include/krb5.h $(COM_ERR_DEPS) $(BUILDTOP)/include/profile.h \
145 $(SRCTOP)/include/port-sockets.h $(BUILDTOP)/include/krb5/autoconf.h \
146 $(SRCTOP)/include/socket-utils.h $(SRCTOP)/include/krb5/kdb.h \
147 $(DB_DEPS) $(srcdir)/../kdb5.h $(SRCTOP)/include/k5-int.h \
148 $(srcdir)/../err_handle.h kdb_db2.h policy_db.h $(SRCTOP)/include/krb5/kdb.h \
149 $(BUILDTOP)/include/gssrpc/types.h $(BUILDTOP)/include/gssrpc/rename.h \
150 $(BUILDTOP)/include/gssrpc/xdr.h ../adb_err.h kdb_xdr.h