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
9 include @TOP_OBJDIR@/src/config/Makefile.config
11 INSTALL_DATA = @INSTALL_DATA@
12 INSTALL_PROGRAM = @INSTALL_PROGRAM@
13 INSTALL_SCRIPT = @INSTALL_SCRIPT@
15 RPCINCLS=${TOP_INCDIR}/lwp.h ${TOP_INCDIR}/rx/rx.h bosint.h
19 ${TOP_INCDIR}/afs/auth.h \
20 ${TOP_INCDIR}/afs/keys.h \
21 ${TOP_INCDIR}/afs/cellconfig.h \
22 ${TOP_INCDIR}/afs/cmd.h \
23 ${TOP_INCDIR}/afs/ktime.h
25 # EH 12/18/90 - have to search librx.a twice on Ultrix 4.0
26 LIBS=${TOP_LIBDIR}/librx.a \
27 ${TOP_LIBDIR}/liblwp.a \
28 ${TOP_LIBDIR}/libcmd.a \
29 ${TOP_LIBDIR}/libkauth.a \
30 ${TOP_LIBDIR}/libvolser.a \
31 ${TOP_LIBDIR}/libvldb.a \
32 ${TOP_LIBDIR}/libauth.a \
33 ${TOP_LIBDIR}/librxstat.a \
34 ${TOP_LIBDIR}/librxkad.a \
35 ${TOP_LIBDIR}/libdes.a \
36 ${TOP_LIBDIR}/libubik.a \
37 ${TOP_LIBDIR}/librx.a \
38 ${TOP_LIBDIR}/libcom_err.a \
39 ${TOP_LIBDIR}/util.a \
40 ${TOP_LIBDIR}/libsys.a \
41 ${TOP_LIBDIR}/libprocmgmt.a
43 OBJS=bosserver.o bnode.o ezbnodeops.o fsbnodeops.o bosint.ss.o bosint.xdr.o \
44 bosoprocs.o cronbnodeops.o
46 all: bosserver ${TOP_INCDIR}/afs/bosint.h bos ${TOP_LIBDIR}/libbos.a ${TOP_INCDIR}/afs/bnode.h bos_util
48 ${TOP_INCDIR}/afs/bosint.h: bosint.h
51 ${TOP_INCDIR}/afs/bnode.h: bnode.h
54 ${TOP_LIBDIR}/libbos.a: libbos.a
57 $(OBJS) bosint.xdr.o bosint.cs.o boserr.o: $(INCLS)
59 bosint.ss.o: bosint.ss.c ${RPCINCLS}
60 bosint.xdr.o: bosint.xdr.c ${RPCINCLS}
61 bosint.cs.o: bosint.cs.c ${RPCINCLS}
63 bosint.cs.c: bosint.xg
64 ${RXGEN} -x -C -o $@ ${srcdir}/bosint.xg
66 bosint.ss.c: bosint.xg
67 ${RXGEN} -x -S -o $@ ${srcdir}/bosint.xg
69 bosint.xdr.c: bosint.xg
70 ${RXGEN} -x -c -o $@ ${srcdir}/bosint.xg
73 ${RXGEN} -x -h -o $@ ${srcdir}/bosint.xg
77 bosint.xdr.c: bosint.h
79 bnode.h boserr.c: bnode.p.h boserr.et
80 $(RM) -f boserr.c bnode.h
81 ${COMPILE_ET} -p ${srcdir} boserr -h bnode
83 bosserver.o: bosserver.c ${INCLS} AFS_component_version_number.o
85 cronbnodeops.o: cronbnodeops.c ${INCLS}
87 bnode.o: bnode.c ${INCLS}
89 bosoprocs.o: bosoprocs.c ${INCLS}
91 bos.o: bos.c ${INCLS} AFS_component_version_number.o
93 bos: bos.o $(LIBS) libbos.a
94 ${CC} ${CFLAGS} -o bos bos.o libbos.a $(LIBS) ${XLIBS}
96 bos_util.o: bos_util.c ${INCLS} AFS_component_version_number.o
98 bos_util: bos_util.o $(LIBS)
99 ${CC} ${CFLAGS} -o bos_util bos_util.o $(LIBS) ${XLIBS}
101 ezbnodeops.o: ezbnodeops.c ${INCLS}
103 fsbnodeops.o: fsbnodeops.c ${INCLS}
105 libbos.a: bosint.xdr.o bosint.cs.o boserr.o AFS_component_version_number.o
107 $(AR) crv $@ bosint.xdr.o bosint.cs.o boserr.o AFS_component_version_number.o
110 bosserver: $(OBJS) $(LIBS)
111 ${CC} $(CFLAGS) -o bosserver $(OBJS) ${TOP_LIBDIR}/libaudit.a $(LIBS) ${XLIBS}
116 install: bosserver bos bos_util libbos.a bosint.h bnode.h
117 ${INSTALL} -d ${DESTDIR}${afssrvbindir}
118 ${INSTALL} -d ${DESTDIR}${afssrvsbindir}
119 ${INSTALL} -d ${DESTDIR}${bindir}
120 ${INSTALL} -d ${DESTDIR}${includedir}/afs
121 ${INSTALL} -d ${DESTDIR}${libdir}/afs
122 ${INSTALL_PROGRAM} bosserver ${DESTDIR}${afssrvsbindir}/bosserver
123 ${INSTALL_DATA} bosint.h ${DESTDIR}${includedir}/afs/bosint.h
124 ${INSTALL_PROGRAM} bos ${DESTDIR}${bindir}/bos
125 ${INSTALL_PROGRAM} bos ${DESTDIR}${afssrvbindir}/bos
126 ${INSTALL_PROGRAM} bos_util ${DESTDIR}${afssrvsbindir}/bos_util
127 ${INSTALL_DATA} libbos.a ${DESTDIR}${libdir}/afs/libbos.a
128 ${INSTALL_DATA} bnode.h ${DESTDIR}${includedir}/afs/bnode.h
130 dest: bosserver bos bos_util libbos.a bosint.h bnode.h
131 ${INSTALL} -d ${DEST}/bin
132 ${INSTALL} -d ${DEST}/include/afs
133 ${INSTALL} -d ${DEST}/lib/afs
134 ${INSTALL} -d ${DEST}/root.server/usr/afs/bin
135 ${INSTALL_PROGRAM} bosserver ${DEST}/root.server/usr/afs/bin/bosserver
136 ${INSTALL_DATA} bosint.h ${DEST}/include/afs/bosint.h
137 ${INSTALL_PROGRAM} bos ${DEST}/bin/bos
138 ${INSTALL_PROGRAM} bos ${DEST}/root.server/usr/afs/bin/bos
139 ${INSTALL_PROGRAM} bos_util ${DEST}/root.server/usr/afs/bin/bos_util
140 ${INSTALL_DATA} libbos.a ${DEST}/lib/afs/libbos.a
141 ${INSTALL_DATA} bnode.h ${DEST}/include/afs/bnode.h
147 $(RM) -f *.a *.o bos bosserver testproc bos_util \
148 bosint.cs.c bosint.ss.c bosint.xdr.c bosint.h \
149 core boserr.c bnode.h AFS_component_version_number.c
154 include ../config/Makefile.version