1 # Copyright 2000, International Business Machines Corporation and others.
4 # This software has been released under the terms of the IBM Public
5 # License. For details, see the LICENSE file in the top-level source
6 # directory or online at http://www.openafs.org/dl/license10.html
10 include @TOP_OBJDIR@
/src
/config
/Makefile.config
12 INSTALL_DATA
= @INSTALL_DATA@
13 INSTALL_PROGRAM
= @INSTALL_PROGRAM@
14 INSTALL_SCRIPT
= @INSTALL_SCRIPT@
17 ${TOP_INCDIR}/lock.h \
18 ${TOP_INCDIR}/ubik.h \
21 ${TOP_INCDIR}/rx
/rx.h \
22 ${TOP_INCDIR}/rx
/xdr.h \
23 ${TOP_INCDIR}/rx
/rxkad.h \
24 ${TOP_INCDIR}/afs
/auth.h \
25 ${TOP_INCDIR}/afs
/cellconfig.h \
26 ${TOP_INCDIR}/afs
/com_err.h \
27 ${TOP_INCDIR}/afs
/bubasics.h \
28 ${TOP_INCDIR}/afs
/budb_client.h \
29 ${TOP_INCDIR}/afs
/budb_errs.h \
30 budb.h budb_client.h database.h
32 # library ordering defined by top level makefile
33 LIBS
=${TOP_LIBDIR}/libbubasics.a \
34 ${TOP_LIBDIR}/libaudit.a \
35 ${TOP_LIBDIR}/libprot.a \
36 ${TOP_LIBDIR}/libkauth.a \
37 ${TOP_LIBDIR}/libubik.a \
38 ${TOP_LIBDIR}/libauth.a \
39 ${TOP_LIBDIR}/librxkad.a \
40 ${TOP_LIBDIR}/libsys.a \
41 ${TOP_LIBDIR}/libdes.a \
42 ${TOP_LIBDIR}/librx.a \
43 ${TOP_LIBDIR}/libsys.a \
44 ${TOP_LIBDIR}/liblwp.a \
45 ${TOP_LIBDIR}/libcmd.a \
46 ${TOP_LIBDIR}/libafscom_err.a \
49 COMMON_OBJS
= database.o db_alloc.o db_dump.o db_hash.o struct_ops.o ol_verify.o
51 SERVER_OBJS
= ${COMMON_OBJS} budb.ss.o budb.xdr.o dbs_dump.o db_lock.o db_text.o \
52 procs.o server.o budb_errs.o
54 all: ${TOP_LIBDIR}/libbudb.a
${TOP_INCDIR}/afs
/budb.h
${TOP_INCDIR}/afs
/budb_errs.h
${TOP_INCDIR}/afs
/budb_prototypes.h budb_server
57 budb_errs.c budb_errs.h \
58 budb.cs.c budb.ss.c budb.xdr.c budb.h
60 ${TOP_LIBDIR}/libbudb.a
: libbudb.a
63 ${TOP_INCDIR}/afs
/budb.h
: budb.h
66 ${TOP_INCDIR}/afs
/budb_errs.h
: budb_errs.h
67 ${INSTALL_DATA} budb_errs.h
$@
69 ${TOP_INCDIR}/afs
/budb_client.h
: budb_client.h
72 ${TOP_INCDIR}/afs
/budb_prototypes.h
: budb_prototypes.h
75 budb_errs.c
: budb_errs.et
76 ${COMPILE_ET_C} -p
${srcdir} budb_errs
78 budb_errs.h
: budb_errs.et
79 ${COMPILE_ET_H} -p
${srcdir} budb_errs
81 database.o
: budb_errs.h
82 db_alloc.o
: budb_errs.h
83 db_dump.o
: budb_errs.h
84 db_hash.o
: budb_errs.h
85 db_lock.o
: budb_errs.h
86 dbs_dump.o
: budb_errs.h
87 db_text.o
: budb_errs.h
88 ol_verify.o
: budb_errs.h
91 struct_ops.o
: budb_errs.h
93 database.o
: database.c budb_errs.h globals.h
${INCLS}
94 db_alloc.o
: db_alloc.c budb_errs.h
${INCLS}
95 db_dump.o
: db_dump.c budb_errs.h
${INCLS}
96 dbs_dump.o
: dbs_dump.c budb_errs.h
${INCLS}
97 db_lock.o
: db_lock.c budb_errs.h
${INCLS}
98 db_text.o
: db_text.c budb_errs.h
${INCLS}
99 db_hash.o
: db_hash.c budb_errs.h
${INCLS}
100 ol_verify.o
: ol_verify.c budb_errs.h
${INCLS}
101 procs.o
: procs.c budb_errs.h globals.h
${INCLS}
102 struct_ops.o
: budb_errs.h
${INCLS}
103 server.o
: server.c budb_errs.h
${INCLS} AFS_component_version_number.c
105 budb_server
: $(SERVER_OBJS
) ${LIBS} ${TOP_INCDIR}/afs
/budb_client.h
106 ${CC} ${LDFLAGS} -o budb_server
$(SERVER_OBJS
) ${LIBS} ${XLIBS} ${KRB5_LIBS}
109 ${RXGEN} -A
-u
-C
-o
$@
${srcdir}/budb.rg
112 ${RXGEN} -A
-S
-o
$@
${srcdir}/budb.rg
115 ${RXGEN} -A
-c
-o
$@
${srcdir}/budb.rg
118 ${RXGEN} -A
-u
-h
-o
$@
${srcdir}/budb.rg
124 libbudb.a
: budb_errs.o budb.cs.o budb.xdr.o struct_ops.o AFS_component_version_number.o
126 $(AR
) crv
$@ budb_errs.o budb.cs.o budb.xdr.o struct_ops.o AFS_component_version_number.o
132 install: libbudb.a budb.h budb_errs.h budb_client.h budb_server
133 ${INSTALL} -d
${DESTDIR}${libdir}/afs
134 ${INSTALL} -d
${DESTDIR}${includedir}/afs
135 ${INSTALL} -d
${DESTDIR}${afssrvlibexecdir}
136 ${INSTALL_DATA} libbudb.a
${DESTDIR}${libdir}/afs
/libbudb.a
137 ${INSTALL_DATA} budb.h
${DESTDIR}${includedir}/afs
/budb.h
138 ${INSTALL_DATA} budb_errs.h
${DESTDIR}${includedir}/afs
/budb_errs.h
139 ${INSTALL_DATA} ${srcdir}/budb_client.h
${DESTDIR}${includedir}/afs
/budb_client.h
140 ${INSTALL_PROGRAM} budb_server
${DESTDIR}${afssrvlibexecdir}/buserver
142 dest
: libbudb.a budb.h budb_errs.h budb_client.h budb_server
143 ${INSTALL} -d
${DEST}/lib
/afs
144 ${INSTALL} -d
${DEST}/include/afs
145 ${INSTALL} -d
${DEST}/root.server
/usr
/afs
/bin
146 ${INSTALL_DATA} libbudb.a
${DEST}/lib
/afs
/libbudb.a
147 ${INSTALL_DATA} budb.h
${DEST}/include/afs
/budb.h
148 ${INSTALL_DATA} budb_errs.h
${DEST}/include/afs
/budb_errs.h
149 ${INSTALL_DATA} ${srcdir}/budb_client.h
${DEST}/include/afs
/budb_client.h
150 ${INSTALL_PROGRAM} budb_server
${DEST}/root.server
/usr
/afs
/bin
/buserver
156 $(RM
) -f
*.o
*~ budb_errs.
[ch
] budb.h
*.a
*.xdr.c \
157 *.ss.c
*.cs.c core budb_server AFS_component_version_number.c
159 include ..
/config
/Makefile.version