Fix des key type issue in bosoprocs
[openafs.git] / src / bozo / Makefile.in
index 8e56b70..286389b 100644 (file)
@@ -5,33 +5,13 @@
 # License.  For details, see the LICENSE file in the top-level source
 # directory or online at http://www.openafs.org/dl/license10.html
 
-DEST=@DEST@
-TOP_INCDIR=@TOP_INCDIR@
-TOP_LIBDIR=@TOP_LIBDIR@
-TOP_OBJDIR=@TOP_OBJDIR@
 srcdir=@srcdir@
-VPATH=${srcdir}
-prefix=@prefix@
-exec_prefix=@exec_prefix@
-bindir=@bindir@
-sbindir=@sbindir@
-libexecdir=@libexecdir@
-libdir=@libdir@
-includedir=@includedir@
-mandir=@mandir@
-afssrvbindir=@afssrvbindir@
-afssrvsbindir=@afssrvsbindir@
-afssrvlibexecdir=@afssrvlibexecdir@
-RXGEN=${TOP_OBJDIR}/src/rxgen/rxgen
-TOP_SRCDIR=@TOP_SRCDIR@
-SYS_NAME=@AFS_SYSNAME@
-
-SHELL=/bin/sh
-
-include ../config/Makefile.${SYS_NAME}
-
-COMPILE_ET=${TOP_OBJDIR}/src/comerr/compile_et
-CFLAGS=-g -I. -I${srcdir} -I${TOP_OBJDIR}/src/config -I${TOP_INCDIR} ${XCFLAGS}
+include @TOP_OBJDIR@/src/config/Makefile.config
+INSTALL = @INSTALL@
+INSTALL_DATA = @INSTALL_DATA@
+INSTALL_PROGRAM = @INSTALL_PROGRAM@
+INSTALL_SCRIPT = @INSTALL_SCRIPT@
+
 RPCINCLS=${TOP_INCDIR}/lwp.h ${TOP_INCDIR}/rx/rx.h bosint.h
 
 INCLS=bnode.h \
@@ -53,8 +33,8 @@ LIBS=${TOP_LIBDIR}/librx.a \
        ${TOP_LIBDIR}/librxstat.a \
        ${TOP_LIBDIR}/librxkad.a \
        ${TOP_LIBDIR}/libdes.a \
-       ${TOP_LIBDIR}/librx.a \
        ${TOP_LIBDIR}/libubik.a \
+       ${TOP_LIBDIR}/librx.a \
        ${TOP_LIBDIR}/libcom_err.a \
        ${TOP_LIBDIR}/util.a \
        ${TOP_LIBDIR}/libsys.a \
@@ -63,7 +43,16 @@ LIBS=${TOP_LIBDIR}/librx.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
+all: bosserver ${TOP_INCDIR}/afs/bosint.h bos ${TOP_LIBDIR}/libbos.a bos_util
+
+${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)
 
@@ -71,10 +60,25 @@ bosint.ss.o: bosint.ss.c ${RPCINCLS}
 bosint.xdr.o: bosint.xdr.c ${RPCINCLS}
 bosint.cs.o: bosint.cs.c ${RPCINCLS}
 
-bosint.xdr.c bosint.ss.c bosint.cs.c bosint.h: bosint.xg
-       ${RXGEN} -x ${srcdir}/bosint.xg
+bosint.cs.c: bosint.xg
+       ${RXGEN} -x -A -C -o $@ ${srcdir}/bosint.xg
 
-bnode.h boserr.c: bnode.p.h boserr.et
+bosint.ss.c: bosint.xg
+       ${RXGEN} -x -A -S -o $@ ${srcdir}/bosint.xg
+
+bosint.xdr.c: bosint.xg
+       ${RXGEN} -x -A -c -o $@ ${srcdir}/bosint.xg
+
+bosint.h: 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
+
+boserr.c: bnode.p.h boserr.et
        $(RM) -f boserr.c bnode.h
        ${COMPILE_ET} -p ${srcdir} boserr -h bnode
 
@@ -87,10 +91,17 @@ bnode.o: bnode.c ${INCLS}
 bosoprocs.o: bosoprocs.c ${INCLS}
 
 bos.o: bos.c ${INCLS} AFS_component_version_number.o
+       $(CC) $(CFLAGS) @CFLAGS_NOERROR@ -c $<
 
 bos: bos.o $(LIBS) libbos.a
        ${CC} ${CFLAGS} -o bos bos.o libbos.a $(LIBS)  ${XLIBS}
 
+bos_util.o: bos_util.c ${INCLS} AFS_component_version_number.o ${TOP_INCDIR}/afs/bnode.h
+       $(CC) $(CFLAGS) @CFLAGS_NOERROR@ -c $<
+
+bos_util: bos_util.o $(LIBS) 
+       ${CC} ${CFLAGS} -o bos_util bos_util.o $(LIBS)  ${XLIBS}
+
 ezbnodeops.o: ezbnodeops.c ${INCLS}
 
 fsbnodeops.o: fsbnodeops.c ${INCLS}
@@ -106,75 +117,43 @@ bosserver: $(OBJS) $(LIBS)
 #
 # Install targets
 #
-install: \
-       ${DESTDIR}${afssrvsbindir}/bosserver \
-       ${DESTDIR}${includedir}/afs/bosint.h \
-       ${DESTDIR}${bindir}/bos \
-       ${DESTDIR}${afssrvbindir}/bos \
-       ${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}/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 bosint.cs.c bosint.ss.c bosint.xdr.c \
-               bosint.h core boserr.c bnode.h AFS_component_version_number.c
+       $(RM) -f  *.a *.o bos bosserver testproc bos_util \
+               bosint.cs.c bosint.ss.c bosint.xdr.c bosint.h \
+               core boserr.c bnode.h AFS_component_version_number.c 
 
 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}${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}/lib/afs/libbos.a \
-       ${DEST}/include/afs/bnode.h