bos: remove smail-notifier
[openafs.git] / src / bozo / Makefile.in
index c6c0a91..a8916cc 100644 (file)
@@ -7,6 +7,8 @@
 
 srcdir=@srcdir@
 include @TOP_OBJDIR@/src/config/Makefile.config
+include @TOP_OBJDIR@/src/config/Makefile.lwp
+
 
 RPCINCLS=${TOP_INCDIR}/lwp.h ${TOP_INCDIR}/rx/rx.h bosint.h
 
@@ -19,7 +21,7 @@ INCLS=bnode.h \
        ${TOP_INCDIR}/afs/ktime.h
 
 # EH 12/18/90 - have to search librx.a twice on Ultrix 4.0
-LIBS=${TOP_LIBDIR}/librx.a \
+LIBS=   ${TOP_LIBDIR}/librx.a \
        ${TOP_LIBDIR}/liblwp.a \
        ${TOP_LIBDIR}/libcmd.a \
        ${TOP_LIBDIR}/libkauth.a \
@@ -28,18 +30,33 @@ LIBS=${TOP_LIBDIR}/librx.a \
        ${TOP_LIBDIR}/libauth.a \
        ${TOP_LIBDIR}/librxstat.a \
        ${TOP_LIBDIR}/librxkad.a \
-       ${TOP_LIBDIR}/libdes.a \
        ${TOP_LIBDIR}/libubik.a \
        ${TOP_LIBDIR}/librx.a \
-       ${TOP_LIBDIR}/libcom_err.a \
+       ${TOP_LIBDIR}/liblwp.a \
+       ${TOP_LIBDIR}/libafscom_err.a \
+       ${TOP_LIBDIR}/libaudit.a \
        ${TOP_LIBDIR}/util.a \
+       ${TOP_LIBDIR}/libopr.a \
        ${TOP_LIBDIR}/libsys.a \
-       ${TOP_LIBDIR}/libprocmgmt.a
+       ${TOP_LIBDIR}/libprocmgmt.a \
+       ${TOP_LIBDIR}/libafsrfc3961.a \
+       ${TOP_LIBDIR}/libafshcrypto_lwp.a
 
 OBJS=bosserver.o bnode.o ezbnodeops.o fsbnodeops.o bosint.ss.o bosint.xdr.o \
 bosoprocs.o cronbnodeops.o
 
-all: bosserver ${TOP_INCDIR}/afs/bosint.h bos ${TOP_LIBDIR}/libbos.a ${TOP_INCDIR}/afs/bnode.h bos_util
+all: bosserver ${TOP_INCDIR}/afs/bosint.h bos ${TOP_LIBDIR}/libbos.a bos_util
+
+generated: bosint.ss.c bosint.xdr.c bosint.cs.c bosint.h bnode.h boserr.c
+
+${TOP_INCDIR}/afs/bosint.h: bosint.h
+       ${INSTALL_DATA} $? $@
+
+${TOP_INCDIR}/afs/bnode.h: bnode.h
+       ${INSTALL_DATA} $? $@
+
+${TOP_LIBDIR}/libbos.a: libbos.a
+       ${INSTALL_DATA} $? $@
 
 $(OBJS) bosint.xdr.o bosint.cs.o boserr.o: $(INCLS)
 
@@ -48,24 +65,34 @@ bosint.xdr.o: bosint.xdr.c ${RPCINCLS}
 bosint.cs.o: bosint.cs.c ${RPCINCLS}
 
 bosint.cs.c: bosint.xg
-       ${RXGEN} -x -C -o $@ ${srcdir}/bosint.xg
+       ${RXGEN} -x -A -C -o $@ ${srcdir}/bosint.xg
 
 bosint.ss.c: bosint.xg
-       ${RXGEN} -x -S -o $@ ${srcdir}/bosint.xg
+       ${RXGEN} -x -A -S -o $@ ${srcdir}/bosint.xg
 
 bosint.xdr.c: bosint.xg
-       ${RXGEN} -x -c -o $@ ${srcdir}/bosint.xg
+       ${RXGEN} -x -A -c -o $@ ${srcdir}/bosint.xg
 
 bosint.h: bosint.xg
-       ${RXGEN} -x -h -o $@ ${srcdir}/bosint.xg
+       ${RXGEN} -x -A -h -o $@ ${srcdir}/bosint.xg
 
 bosint.cs.c: bosint.h
 bosint.ss.c: bosint.h
 bosint.xdr.c: bosint.h
 
-bnode.h boserr.c: bnode.p.h boserr.et
-       $(RM) -f boserr.c bnode.h
-       ${COMPILE_ET} -p ${srcdir} boserr -h bnode
+boserr.c: boserr.et
+       ${COMPILE_ET_C} -p ${srcdir} boserr
+
+bnode.h: bnode.p.h boserr.et
+       ${COMPILE_ET_H} -p ${srcdir} boserr -h bnode
+
+bnode.o: bnode.h
+bos.o: bnode.h
+bosoprocs.o: bnode.h
+bosserver.o: bnode.h
+cronbnodeops.o: bnode.h
+ezbnodeops.o: bnode.h
+fsbnodeops.o: bnode.h
 
 bosserver.o: bosserver.c ${INCLS} AFS_component_version_number.o
 
@@ -78,12 +105,12 @@ bosoprocs.o: bosoprocs.c ${INCLS}
 bos.o: bos.c ${INCLS} AFS_component_version_number.o
 
 bos: bos.o $(LIBS) libbos.a
-       ${CC} ${CFLAGS} -o bos bos.o libbos.a $(LIBS)  ${XLIBS}
+       $(AFS_LDRULE) bos.o libbos.a $(LIBS) $(LIB_roken) $(LIB_crypt) ${XLIBS}
 
-bos_util.o: bos_util.c ${INCLS} AFS_component_version_number.o
+bos_util.o: bos_util.c ${INCLS} AFS_component_version_number.o ${TOP_INCDIR}/afs/bnode.h
 
-bos_util: bos_util.o $(LIBS) 
-       ${CC} ${CFLAGS} -o bos_util bos_util.o $(LIBS)  ${XLIBS}
+bos_util: bos_util.o  $(LIBS)
+       $(AFS_LDRULE) bos_util.o $(LIBS) $(LIB_roken) $(LIB_crypt) ${XLIBS}
 
 ezbnodeops.o: ezbnodeops.c ${INCLS}
 
@@ -95,88 +122,50 @@ libbos.a: bosint.xdr.o bosint.cs.o boserr.o AFS_component_version_number.o
        $(RANLIB) $@
 
 bosserver: $(OBJS) $(LIBS)
-       ${CC} $(CFLAGS) -o bosserver $(OBJS) ${TOP_LIBDIR}/libaudit.a $(LIBS)  ${XLIBS} 
+       $(AFS_LDRULE) $(OBJS) \
+               $(LIBS) $(LIB_roken) $(LIB_crypt) ${XLIBS}
 
 #
 # Install targets
 #
-install: \
-       ${DESTDIR}${afssrvsbindir}/bosserver \
-       ${DESTDIR}${includedir}/afs/bosint.h \
-       ${DESTDIR}${bindir}/bos \
-       ${DESTDIR}${afssrvbindir}/bos \
-       ${DESTDIR}${afssrvsbindir}/bos_util \
-       ${DESTDIR}${libdir}/afs/libbos.a \
-       ${DESTDIR}${includedir}/afs/bnode.h
-
-${DEST}/root.server/usr/afs/bin/bosserver: bosserver
-       ${INSTALL} $? $@
-
-${DEST}/include/afs/bosint.h: bosint.h
-       ${INSTALL} $? $@
-
-${DEST}/bin/bos: bos
-       ${INSTALL} $? $@
-
-${DEST}/root.server/usr/afs/bin/bos: bos
-       ${INSTALL} $? $@
-
-${DEST}/root.server/usr/afs/bin/bos_util: bos_util
-       ${INSTALL} $? $@
-
-${DEST}/lib/afs/libbos.a: libbos.a
-       ${INSTALL} $? $@
-
-${DEST}/include/afs/bnode.h: bnode.h
-       ${INSTALL} $? $@
+install: bosserver bos bos_util libbos.a bosint.h bnode.h
+       ${INSTALL} -d ${DESTDIR}${afssrvbindir}
+       ${INSTALL} -d ${DESTDIR}${afssrvsbindir}
+       ${INSTALL} -d ${DESTDIR}${bindir}
+       ${INSTALL} -d ${DESTDIR}${includedir}/afs
+       ${INSTALL} -d ${DESTDIR}${libdir}/afs
+       ${INSTALL_PROGRAM} bosserver ${DESTDIR}${afssrvsbindir}/bosserver
+       ${INSTALL_DATA} bosint.h ${DESTDIR}${includedir}/afs/bosint.h
+       ${INSTALL_PROGRAM} bos ${DESTDIR}${bindir}/bos
+       ${INSTALL_PROGRAM} bos ${DESTDIR}${afssrvbindir}/bos
+       ${INSTALL_PROGRAM} bos_util ${DESTDIR}${afssrvsbindir}/bos_util
+       ${INSTALL_DATA} libbos.a ${DESTDIR}${libdir}/afs/libbos.a
+       ${INSTALL_DATA} bnode.h ${DESTDIR}${includedir}/afs/bnode.h
+
+dest: bosserver bos bos_util libbos.a bosint.h bnode.h
+       ${INSTALL} -d ${DEST}/bin
+       ${INSTALL} -d ${DEST}/include/afs
+       ${INSTALL} -d ${DEST}/lib/afs
+       ${INSTALL} -d ${DEST}/root.server/usr/afs/bin
+       ${INSTALL_PROGRAM} bosserver ${DEST}/root.server/usr/afs/bin/bosserver
+       ${INSTALL_DATA} bosint.h ${DEST}/include/afs/bosint.h
+       ${INSTALL_PROGRAM} bos ${DEST}/bin/bos
+       ${INSTALL_PROGRAM} bos ${DEST}/root.server/usr/afs/bin/bos
+       ${INSTALL_PROGRAM} bos_util ${DEST}/root.server/usr/afs/bin/bos_util
+       ${INSTALL_DATA} libbos.a ${DEST}/lib/afs/libbos.a
+       ${INSTALL_DATA} bnode.h ${DEST}/include/afs/bnode.h
 
 #
 # Misc. targets
 #
 clean:
-       $(RM) -f  *.a *.o bos bosserver testproc bos_util \
+       $(RM) -f  *.a *.o bos bosserver bos_util \
                bosint.cs.c bosint.ss.c bosint.xdr.c bosint.h \
-               core boserr.c bnode.h AFS_component_version_number.c 
+               core boserr.c bnode.h AFS_component_version_number.c
 
-test: 
-       cd test; $(MAKE) 
+.PHONY: test
+test:
+       cd test && $(MAKE)
 
 include ../config/Makefile.version
-${DESTDIR}${afssrvsbindir}/bosserver: bosserver
-       ${INSTALL} $? $@
-
-${DESTDIR}${includedir}/afs/bosint.h: bosint.h
-       ${INSTALL} $? $@
-
-${TOP_INCDIR}/afs/bosint.h: bosint.h
-       ${INSTALL} $? $@
-
-${DESTDIR}${bindir}/bos: bos
-       ${INSTALL} $? $@
 
-${DESTDIR}${afssrvbindir}/bos: bos
-       ${INSTALL} $? $@
-
-${DESTDIR}${afssrvsbindir}/bos_util: bos_util
-       ${INSTALL} $? $@
-
-${DESTDIR}${libdir}/afs/libbos.a: libbos.a
-       ${INSTALL} $? $@
-
-${TOP_LIBDIR}/libbos.a: libbos.a
-       ${INSTALL} $? $@
-
-${DESTDIR}${includedir}/afs/bnode.h: bnode.h
-       ${INSTALL} $? $@
-
-${TOP_INCDIR}/afs/bnode.h: bnode.h
-       ${INSTALL} $? $@
-
-dest: \
-       ${DEST}/root.server/usr/afs/bin/bosserver \
-       ${DEST}/include/afs/bosint.h \
-       ${DEST}/bin/bos \
-       ${DEST}/root.server/usr/afs/bin/bos \
-       ${DEST}/root.server/usr/afs/bin/bos_util \
-       ${DEST}/lib/afs/libbos.a \
-       ${DEST}/include/afs/bnode.h