kill off afs/debug.h
[openafs.git] / src / config / Makefile.in
index 8b4fdb8..d855da5 100644 (file)
@@ -7,13 +7,13 @@
 
 srcdir=@srcdir@
 include @TOP_OBJDIR@/src/config/Makefile.config
+include @TOP_OBJDIR@/src/config/Makefile.lwp
+
 INSTALL = @INSTALL@
 INSTALL_DATA = @INSTALL_DATA@
 INSTALL_PROGRAM = @INSTALL_PROGRAM@
 INSTALL_SCRIPT = @INSTALL_SCRIPT@
 
-CFLAGS=${DBG} ${OPTMZ} -I${TOP_INCDIR} -I. ${XCFLAGS} ${ARCHFLAGS}
-
 INST=$(RM) -f $@; $(CP) $? $@
 
 all: config mkvers \
@@ -23,14 +23,19 @@ all: config mkvers \
        ${TOP_INCDIR}/afs/afs_args.h \
        ${TOP_INCDIR}/afs/icl.h \
        ${TOP_INCDIR}/afs/venus.h \
-       ${TOP_INCDIR}/afs/vioc.h \
-       ${TOP_INCDIR}/afs/debug.h
+       ${TOP_INCDIR}/afs/vioc.h
+
+buildtools: \
+       config \
+       mkvers \
+       ${TOP_INCDIR}/afs/param.h \
+       ${TOP_INCDIR}/afs/afs_sysnames.h \
+       ${TOP_INCDIR}/afs/stds.h
 
-Makefile.version: ${srcdir}/Makefile.version-CML Makefile.version-NOCML
+Makefile.version: Makefile.version-CML Makefile.version-NOCML
        $(RM) -f Makefile.version
-       $(CP) Makefile.version-NOCML.in Makefile.version.in
-       if      [ -r SRC/../CML/state ] ; \
-       then    $(CP) ${srcdir}/Makefile.version-CML Makefile.version ; \
+       if      [ -r @TOP_SRCDIR@/CML/state ] ; \
+       then    $(CP) Makefile.version-CML Makefile.version ; \
        else    $(CP) Makefile.version-NOCML Makefile.version ; \
        fi
 
@@ -44,29 +49,20 @@ AFS_component_version_number.c: Makefile.version
 # App build/install targets
 #
 config: config.o mc.o
-       $(CC) $(CFLAGS) -o config config.o mc.o
+       $(AFS_LDRULE) config.o mc.o
 
-mkvers: ${srcdir}/mkvers.c
-       $(CC) $(CFLAGS) -o mkvers ${srcdir}/mkvers.c
+mkvers: mkvers.c
+       $(CC) $(AFS_CPPFLAGS) $(AFS_CFLAGS) $(AFS_LDFLAGS) \
+               -o mkvers ${srcdir}/mkvers.c
 
-mc.o: ${srcdir}/mc.c
-       $(CC) $(CFLAGS) -c ${srcdir}/mc.c
-
-config.o: ${srcdir}/config.c AFS_component_version_number.c
-       $(CC) $(CFLAGS) -I. -c ${srcdir}/config.c
+config.o: config.c AFS_component_version_number.c
 
 #
 # Include installation targets
 #
 
-${TOP_INCDIR}/afs: ${TOP_INCDIR}
-       mkdir -p $@
-
-${TOP_INCDIR}:
-       mkdir -p $@
-
 # XXX inlined INST
-${DEST}/include/afs/param.h ${DESTDIR}${includedir}/afs/param.h ${TOP_INCDIR}/afs/param.h: ${TOP_INCDIR}/afs ${srcdir}/param.${SYS_NAME}.h ${AFS_PARAM_COMMON}
+${DEST}/include/afs/param.h ${DESTDIR}${includedir}/afs/param.h ${TOP_INCDIR}/afs/param.h: ${srcdir}/param.${SYS_NAME}.h ${AFS_PARAM_COMMON}
        if [ "X${AFS_PARAM_COMMON}" != "X" ] ; then \
                cat ${srcdir}/${AFS_PARAM_COMMON} ${srcdir}/param.${SYS_NAME}.h > param.h.new ; \
                $(RM) -f $@; \
@@ -93,9 +89,6 @@ ${DEST}/include/afs/venus.h ${DESTDIR}${includedir}/afs/venus.h ${TOP_INCDIR}/af
 ${DEST}/include/afs/vioc.h ${DESTDIR}${includedir}/afs/vioc.h ${TOP_INCDIR}/afs/vioc.h: ${srcdir}/vioc.h 
        $(INST)
 
-${DEST}/include/afs/debug.h ${DESTDIR}${includedir}/afs/debug.h ${TOP_INCDIR}/afs/debug.h: ${srcdir}/debug.h 
-       $(INST)
-
 # these are needed to compile the kernel.  Config is necessary to
 # convert the MakefileProto in libafs and the kernel links provide the
 # kernel include environment.  param.h is, well, param.h.  The afs_sysnames.h
@@ -107,11 +100,10 @@ install: ${DESTDIR}${includedir}/afs/param.h \
        ${DESTDIR}${includedir}/afs/afs_args.h \
        ${DESTDIR}${includedir}/afs/icl.h \
        ${DESTDIR}${includedir}/afs/venus.h \
-       ${DESTDIR}${includedir}/afs/vioc.h \
-       ${DESTDIR}${includedir}/afs/debug.h
+       ${DESTDIR}${includedir}/afs/vioc.h
 
 clean:
-       $(RM) -f *.o config mkvers core xprt AFS_component_version_number.c param.h.new
+       $(RM) -f *.o config mkvers core xprt AFS_component_version_number.c param.h.new Makefile.version.in
 
 dest: ${DEST}/include/afs/param.h \
        ${DEST}/include/afs/stds.h \
@@ -119,6 +111,5 @@ dest: ${DEST}/include/afs/param.h \
        ${DEST}/include/afs/afs_args.h \
        ${DEST}/include/afs/icl.h \
        ${DEST}/include/afs/venus.h \
-       ${DEST}/include/afs/vioc.h \
-       ${DEST}/include/afs/debug.h
+       ${DEST}/include/afs/vioc.h