Merge 1.8.0~pre4 packaging into master
[pkg-k5-afs_openafs.git] / src / budb / Makefile.in
blobd20344d85325cfeb3ab71ec3197ec0f6d8f682c9
1 # Copyright 2000, International Business Machines Corporation and others.
2 # All Rights Reserved.
3 #
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
7 # */
9 srcdir=@srcdir@
10 include @TOP_OBJDIR@/src/config/Makefile.config
11 include @TOP_OBJDIR@/src/config/Makefile.lwp
14 INCLS=\
15 ${TOP_INCDIR}/lock.h \
16 ${TOP_INCDIR}/ubik.h \
17 ${TOP_INCDIR}/lwp.h \
18 ${TOP_INCDIR}/rx/rx.h \
19 ${TOP_INCDIR}/rx/xdr.h \
20 ${TOP_INCDIR}/rx/rxkad.h \
21 ${TOP_INCDIR}/afs/auth.h \
22 ${TOP_INCDIR}/afs/cellconfig.h \
23 ${TOP_INCDIR}/afs/com_err.h \
24 ${TOP_INCDIR}/afs/bubasics.h \
25 ${TOP_INCDIR}/afs/budb_client.h \
26 ${TOP_INCDIR}/afs/budb_errs.h \
27 budb.h budb_client.h database.h
29 # library ordering defined by top level makefile
30 LIBS=${TOP_LIBDIR}/libbubasics.a \
31 ${TOP_LIBDIR}/libaudit.a \
32 ${TOP_LIBDIR}/libprot.a \
33 ${TOP_LIBDIR}/libkauth.a \
34 ${TOP_LIBDIR}/libubik.a \
35 ${TOP_LIBDIR}/libauth.a \
36 ${TOP_LIBDIR}/librxkad.a \
37 ${TOP_LIBDIR}/libsys.a \
38 ${TOP_LIBDIR}/librx.a \
39 ${TOP_LIBDIR}/libsys.a \
40 ${TOP_LIBDIR}/liblwp.a \
41 ${TOP_LIBDIR}/libcmd.a \
42 ${TOP_LIBDIR}/libafscom_err.a \
43 ${TOP_LIBDIR}/util.a \
44 ${TOP_LIBDIR}/libopr.a \
45 ${TOP_LIBDIR}/libafsrfc3961.a \
46 ${TOP_LIBDIR}/libafshcrypto_lwp.a
48 COMMON_OBJS = database.o db_alloc.o db_dump.o db_hash.o struct_ops.o ol_verify.o
50 SERVER_OBJS = ${COMMON_OBJS} budb.ss.o budb.xdr.o dbs_dump.o db_lock.o db_text.o \
51 procs.o server.o budb_errs.o
53 all: ${TOP_LIBDIR}/libbudb.a ${TOP_INCDIR}/afs/budb.h ${TOP_INCDIR}/afs/budb_errs.h ${TOP_INCDIR}/afs/budb_prototypes.h budb_server
55 generated: \
56 budb_errs.c budb_errs.h \
57 budb.cs.c budb.ss.c budb.xdr.c budb.h
59 ${TOP_LIBDIR}/libbudb.a: libbudb.a
60 ${INSTALL_DATA} $? $@
62 ${TOP_INCDIR}/afs/budb.h: budb.h
63 ${INSTALL_DATA} $? $@
65 ${TOP_INCDIR}/afs/budb_errs.h: budb_errs.h
66 ${INSTALL_DATA} budb_errs.h $@
68 ${TOP_INCDIR}/afs/budb_client.h: budb_client.h
69 ${INSTALL_DATA} $? $@
71 ${TOP_INCDIR}/afs/budb_prototypes.h: budb_prototypes.h
72 ${INSTALL_DATA} $? $@
74 budb_errs.c: budb_errs.et
75 ${COMPILE_ET_C} -p ${srcdir} budb_errs
77 budb_errs.h: budb_errs.et
78 ${COMPILE_ET_H} -p ${srcdir} budb_errs
80 database.o: budb_errs.h
81 db_alloc.o: budb_errs.h
82 db_dump.o: budb_errs.h
83 db_hash.o: budb_errs.h
84 db_lock.o: budb_errs.h
85 dbs_dump.o: budb_errs.h
86 db_text.o: budb_errs.h
87 ol_verify.o: budb_errs.h
88 procs.o: budb_errs.h
89 server.o: budb_errs.h
90 struct_ops.o: budb_errs.h
92 database.o: database.c budb_errs.h globals.h ${INCLS}
93 db_alloc.o: db_alloc.c budb_errs.h ${INCLS}
94 dbs_dump.o: dbs_dump.c budb_errs.h ${INCLS}
95 db_dump.o: db_dump.c budb_errs.h ${INCLS}
96 db_lock.o: db_lock.c budb_errs.h ${INCLS}
97 db_text.o: db_text.c budb_errs.h ${INCLS}
98 db_hash.o: db_hash.c budb_errs.h ${INCLS}
99 ol_verify.o: ol_verify.c budb_errs.h ${INCLS}
100 procs.o: procs.c budb_errs.h globals.h ${INCLS}
101 struct_ops.o: budb_errs.h ${INCLS}
102 server.o: server.c budb_errs.h ${INCLS} AFS_component_version_number.c
104 budb_server: $(SERVER_OBJS) ${LIBS} ${TOP_INCDIR}/afs/budb_client.h
105 $(AFS_LDRULE) $(SERVER_OBJS) ${LIBS} $(LIB_roken) ${XLIBS}
107 budb.cs.c: budb.rg
108 ${RXGEN} -A -u -C -o $@ ${srcdir}/budb.rg
110 budb.ss.c: budb.rg
111 ${RXGEN} -A -S -o $@ ${srcdir}/budb.rg
113 budb.xdr.c: budb.rg
114 ${RXGEN} -A -c -o $@ ${srcdir}/budb.rg
116 budb.h: budb.rg
117 ${RXGEN} -A -u -h -o $@ ${srcdir}/budb.rg
119 budb.cs.c: budb.h
120 budb.xdr.c: budb.h
121 budb.ss.c: budb.h
123 libbudb.a: budb_errs.o budb.cs.o budb.xdr.o struct_ops.o AFS_component_version_number.o
124 -$(RM) -f $@
125 $(AR) crv $@ budb_errs.o budb.cs.o budb.xdr.o struct_ops.o AFS_component_version_number.o
126 $(RANLIB) $@
129 # Install targets
131 install: libbudb.a budb.h budb_errs.h budb_client.h budb_server
132 ${INSTALL} -d ${DESTDIR}${libdir}/afs
133 ${INSTALL} -d ${DESTDIR}${includedir}/afs
134 ${INSTALL} -d ${DESTDIR}${afssrvlibexecdir}
135 ${INSTALL_DATA} libbudb.a ${DESTDIR}${libdir}/afs/libbudb.a
136 ${INSTALL_DATA} budb.h ${DESTDIR}${includedir}/afs/budb.h
137 ${INSTALL_DATA} budb_errs.h ${DESTDIR}${includedir}/afs/budb_errs.h
138 ${INSTALL_DATA} ${srcdir}/budb_client.h ${DESTDIR}${includedir}/afs/budb_client.h
139 ${INSTALL_PROGRAM} budb_server ${DESTDIR}${afssrvlibexecdir}/buserver
141 dest: libbudb.a budb.h budb_errs.h budb_client.h budb_server
142 ${INSTALL} -d ${DEST}/lib/afs
143 ${INSTALL} -d ${DEST}/include/afs
144 ${INSTALL} -d ${DEST}/root.server/usr/afs/bin
145 ${INSTALL_DATA} libbudb.a ${DEST}/lib/afs/libbudb.a
146 ${INSTALL_DATA} budb.h ${DEST}/include/afs/budb.h
147 ${INSTALL_DATA} budb_errs.h ${DEST}/include/afs/budb_errs.h
148 ${INSTALL_DATA} ${srcdir}/budb_client.h ${DEST}/include/afs/budb_client.h
149 ${INSTALL_PROGRAM} budb_server ${DEST}/root.server/usr/afs/bin/buserver
152 # Misc targets
154 clean:
155 $(RM) -f *.o *~ budb_errs.[ch] budb.h *.a *.xdr.c \
156 *.ss.c *.cs.c core budb_server AFS_component_version_number.c
158 include ../config/Makefile.version