mirror of
https://git.openafs.org/openafs.git
synced 2025-01-18 06:50:12 +00:00
tools: Move dumpscan into its own directory
Move dumpscan into its own directory, so that it's Makefile rules can be better contained, and not pollute the whole 'tools/' namespace Change-Id: Ic58d007824ab802eae469dd2996300f80671a3b8 Reviewed-on: http://gerrit.openafs.org/7239 Tested-by: BuildBot <buildbot@rampaginggeek.com> Reviewed-by: Derrick Brashear <shadow@dementix.org>
This commit is contained in:
parent
0dd7c980ac
commit
9dca26ac19
@ -908,6 +908,7 @@ distclean: clean
|
||||
src/tests/run-tests \
|
||||
src/tests/auth/Makefile \
|
||||
src/tools/Makefile \
|
||||
src/tools/dumpscan/Makefile \
|
||||
src/tsalvaged/Makefile \
|
||||
src/tsm41/Makefile \
|
||||
src/tvolser/Makefile \
|
||||
|
@ -228,6 +228,7 @@ src/tbutc/Makefile \
|
||||
src/tests/Makefile \
|
||||
src/tests/run-tests \
|
||||
src/tools/Makefile \
|
||||
src/tools/dumpscan/Makefile \
|
||||
src/tsalvaged/Makefile \
|
||||
src/tsm41/Makefile \
|
||||
src/tvolser/Makefile \
|
||||
|
@ -1,108 +1,7 @@
|
||||
srcdir = @srcdir@
|
||||
include @TOP_OBJDIR@/src/config/Makefile.config
|
||||
include @TOP_OBJDIR@/src/config/Makefile.lwp
|
||||
srcdir=@srcdir@
|
||||
|
||||
SUBDIRS=dumpscan
|
||||
|
||||
SHELL = /bin/sh
|
||||
all dest install clean distclean:
|
||||
@for A in $(SUBDIRS); do cd $$A && $(MAKE) $@ && cd .. || exit 1; done
|
||||
|
||||
INCDIRS=-I${TOP_OBJDIR}/src/config -I${TOP_INCDIR}/afs -I${TOP_INCDIR}
|
||||
INCLIBS=-L${SRCDIR}/lib/afs -L${TOP_LIBDIR}
|
||||
MODULE_CFLAGS=-DNATIVE_UINT64=afs_uint64
|
||||
|
||||
LIBS=\
|
||||
libdumpscan.a \
|
||||
libxfiles.a \
|
||||
${TOP_LIBDIR}/libauth.a \
|
||||
${TOP_LIBDIR}/libaudit.a \
|
||||
${TOP_LIBDIR}/libvolser.a \
|
||||
${TOP_LIBDIR}/libvldb.a \
|
||||
${TOP_LIBDIR}/libubik.a \
|
||||
${TOP_LIBDIR}/librxkad.a \
|
||||
${TOP_LIBDIR}/libsys.a \
|
||||
${TOP_LIBDIR}/librx.a \
|
||||
${TOP_LIBDIR}/liblwp.a \
|
||||
${TOP_LIBDIR}/util.a \
|
||||
$(TOP_LIBDIR)/libopr.a \
|
||||
${TOP_LIBDIR}/libafscom_err.a \
|
||||
$(LIB_roken) \
|
||||
${XLIBS}
|
||||
|
||||
OBJS_afsdump_scan = afsdump_scan.o repair.o
|
||||
OBJS_afsdump_xsed = afsdump_xsed.o repair.o
|
||||
OBJS_libxfiles.a = xfiles.o xf_errs.o xf_printf.o int64.o \
|
||||
xf_files.o xf_rxcall.o xf_profile.o
|
||||
OBJS_libdumpscan.a = primitive.o util.o dumpscan_errs.o parsetag.o \
|
||||
parsedump.o parsevol.o parsevnode.o dump.o \
|
||||
directory.o pathname.o backuphdr.o stagehdr.o
|
||||
|
||||
TARGETS = libxfiles.a libdumpscan.a \
|
||||
afsdump_scan afsdump_dirlist afsdump_extract dumptool
|
||||
|
||||
all: libxfiles.a libdumpscan.a \
|
||||
afsdump_scan afsdump_dirlist afsdump_extract dumptool
|
||||
|
||||
generated: xf_errs.c xf_errs.h dumpscan_errs.c dumpscan_errs.h
|
||||
|
||||
afsdump_scan: libxfiles.a libdumpscan.a $(OBJS_afsdump_scan)
|
||||
$(AFS_LDRULE) $(OBJS_afsdump_scan) $(LIBS)
|
||||
|
||||
afsdump_xsed: libxfiles.a libdumpscan.a $(OBJS_afsdump_xsed)
|
||||
$(AFS_LDRULE) $(OBJS_afsdump_xsed) $(LIBS)
|
||||
|
||||
afsdump_dirlist: libxfiles.a libdumpscan.a afsdump_dirlist.o
|
||||
$(AFS_LDRULE) afsdump_dirlist.o $(LIBS)
|
||||
|
||||
afsdump_extract: libxfiles.a libdumpscan.a afsdump_extract.o
|
||||
$(AFS_LDRULE) afsdump_extract.o $(LIBS)
|
||||
|
||||
null-search: libxfiles.a libdumpscan.a null-search.c
|
||||
$(AFS_LDRULE) null-search.c $(LIBS)
|
||||
|
||||
dumptool: dumptool.c
|
||||
$(AFS_LDRULE) dumptool.c
|
||||
|
||||
libxfiles.a: $(OBJS_libxfiles.a)
|
||||
-rm -f libxfiles.a
|
||||
$(AR) r libxfiles.a $(OBJS_libxfiles.a)
|
||||
$(RANLIB) libxfiles.a
|
||||
|
||||
libdumpscan.a: $(OBJS_libdumpscan.a)
|
||||
-rm -f libdumpscan.a
|
||||
$(AR) r libdumpscan.a $(OBJS_libdumpscan.a)
|
||||
$(RANLIB) libdumpscan.a
|
||||
|
||||
xf_errs.c xf_errs.h: xf_errs.et
|
||||
$(COMPILE_ET) xf_errs.et
|
||||
|
||||
dumpscan_errs.c dumpscan_errs.h: dumpscan_errs.et
|
||||
$(COMPILE_ET) dumpscan_errs.et
|
||||
|
||||
util.o xfiles.o xf_files.o: xf_errs.h
|
||||
backuphdr.o directory.o parsedump.o parsetag.o: dumpscan_errs.h
|
||||
parsevnode.o parsevol.o pathname.o stagehdr.o: dumpscan_errs.h
|
||||
util.o: dumpscan_errs.h
|
||||
|
||||
# repair addresses the same storage as two different types of structs at the
|
||||
# same time.
|
||||
CFLAGS_repair.o = @CFLAGS_NOSTRICT@
|
||||
repair.o: repair.c dumpscan_errs.h
|
||||
|
||||
${TOP_LIBDIR}/libxfiles.a: libxfiles.a
|
||||
${INSTALL_DATA} $? $@
|
||||
|
||||
${TOP_LIBDIR}/libdumpscan.a: libdumpscan.a
|
||||
${INSTALL_DATA} $? $@
|
||||
|
||||
dest:
|
||||
|
||||
install:
|
||||
|
||||
uninstall:
|
||||
|
||||
clean:
|
||||
-rm -f xf_errs.c xf_errs.h dumpscan_errs.c dumpscan_errs.h *.o \
|
||||
$(TARGETS)
|
||||
|
||||
include ../config/Makefile.version
|
||||
|
||||
.PHONY: all install clean realclean distclean mostlyclean install uninstall
|
||||
|
108
src/tools/dumpscan/Makefile.in
Normal file
108
src/tools/dumpscan/Makefile.in
Normal file
@ -0,0 +1,108 @@
|
||||
srcdir = @srcdir@
|
||||
include @TOP_OBJDIR@/src/config/Makefile.config
|
||||
include @TOP_OBJDIR@/src/config/Makefile.lwp
|
||||
|
||||
|
||||
SHELL = /bin/sh
|
||||
|
||||
INCDIRS=-I${TOP_OBJDIR}/src/config -I${TOP_INCDIR}/afs -I${TOP_INCDIR}
|
||||
INCLIBS=-L${SRCDIR}/lib/afs -L${TOP_LIBDIR}
|
||||
MODULE_CFLAGS=-DNATIVE_UINT64=afs_uint64
|
||||
|
||||
LIBS=\
|
||||
libdumpscan.a \
|
||||
libxfiles.a \
|
||||
${TOP_LIBDIR}/libauth.a \
|
||||
${TOP_LIBDIR}/libaudit.a \
|
||||
${TOP_LIBDIR}/libvolser.a \
|
||||
${TOP_LIBDIR}/libvldb.a \
|
||||
${TOP_LIBDIR}/libubik.a \
|
||||
${TOP_LIBDIR}/librxkad.a \
|
||||
${TOP_LIBDIR}/libsys.a \
|
||||
${TOP_LIBDIR}/librx.a \
|
||||
${TOP_LIBDIR}/liblwp.a \
|
||||
${TOP_LIBDIR}/util.a \
|
||||
$(TOP_LIBDIR)/libopr.a \
|
||||
${TOP_LIBDIR}/libafscom_err.a \
|
||||
$(LIB_roken) \
|
||||
${XLIBS}
|
||||
|
||||
OBJS_afsdump_scan = afsdump_scan.o repair.o
|
||||
OBJS_afsdump_xsed = afsdump_xsed.o repair.o
|
||||
OBJS_libxfiles.a = xfiles.o xf_errs.o xf_printf.o int64.o \
|
||||
xf_files.o xf_rxcall.o xf_profile.o
|
||||
OBJS_libdumpscan.a = primitive.o util.o dumpscan_errs.o parsetag.o \
|
||||
parsedump.o parsevol.o parsevnode.o dump.o \
|
||||
directory.o pathname.o backuphdr.o stagehdr.o
|
||||
|
||||
TARGETS = libxfiles.a libdumpscan.a \
|
||||
afsdump_scan afsdump_dirlist afsdump_extract dumptool
|
||||
|
||||
all: libxfiles.a libdumpscan.a \
|
||||
afsdump_scan afsdump_dirlist afsdump_extract dumptool
|
||||
|
||||
generated: xf_errs.c xf_errs.h dumpscan_errs.c dumpscan_errs.h
|
||||
|
||||
afsdump_scan: libxfiles.a libdumpscan.a $(OBJS_afsdump_scan)
|
||||
$(AFS_LDRULE) $(OBJS_afsdump_scan) $(LIBS)
|
||||
|
||||
afsdump_xsed: libxfiles.a libdumpscan.a $(OBJS_afsdump_xsed)
|
||||
$(AFS_LDRULE) $(OBJS_afsdump_xsed) $(LIBS)
|
||||
|
||||
afsdump_dirlist: libxfiles.a libdumpscan.a afsdump_dirlist.o
|
||||
$(AFS_LDRULE) afsdump_dirlist.o $(LIBS)
|
||||
|
||||
afsdump_extract: libxfiles.a libdumpscan.a afsdump_extract.o
|
||||
$(AFS_LDRULE) afsdump_extract.o $(LIBS)
|
||||
|
||||
null-search: libxfiles.a libdumpscan.a null-search.c
|
||||
$(AFS_LDRULE) null-search.c $(LIBS)
|
||||
|
||||
dumptool: dumptool.c
|
||||
$(AFS_LDRULE) dumptool.c
|
||||
|
||||
libxfiles.a: $(OBJS_libxfiles.a)
|
||||
-rm -f libxfiles.a
|
||||
$(AR) r libxfiles.a $(OBJS_libxfiles.a)
|
||||
$(RANLIB) libxfiles.a
|
||||
|
||||
libdumpscan.a: $(OBJS_libdumpscan.a)
|
||||
-rm -f libdumpscan.a
|
||||
$(AR) r libdumpscan.a $(OBJS_libdumpscan.a)
|
||||
$(RANLIB) libdumpscan.a
|
||||
|
||||
xf_errs.c xf_errs.h: xf_errs.et
|
||||
$(COMPILE_ET) xf_errs.et
|
||||
|
||||
dumpscan_errs.c dumpscan_errs.h: dumpscan_errs.et
|
||||
$(COMPILE_ET) dumpscan_errs.et
|
||||
|
||||
util.o xfiles.o xf_files.o: xf_errs.h
|
||||
backuphdr.o directory.o parsedump.o parsetag.o: dumpscan_errs.h
|
||||
parsevnode.o parsevol.o pathname.o stagehdr.o: dumpscan_errs.h
|
||||
util.o: dumpscan_errs.h
|
||||
|
||||
# repair addresses the same storage as two different types of structs at the
|
||||
# same time.
|
||||
CFLAGS_repair.o = @CFLAGS_NOSTRICT@
|
||||
repair.o: repair.c dumpscan_errs.h
|
||||
|
||||
${TOP_LIBDIR}/libxfiles.a: libxfiles.a
|
||||
${INSTALL_DATA} $? $@
|
||||
|
||||
${TOP_LIBDIR}/libdumpscan.a: libdumpscan.a
|
||||
${INSTALL_DATA} $? $@
|
||||
|
||||
dest:
|
||||
|
||||
install:
|
||||
|
||||
uninstall:
|
||||
|
||||
clean:
|
||||
-rm -f xf_errs.c xf_errs.h dumpscan_errs.c dumpscan_errs.h *.o \
|
||||
$(TARGETS)
|
||||
|
||||
include ../../config/Makefile.version
|
||||
|
||||
.PHONY: all install clean realclean distclean mostlyclean install uninstall
|
Loading…
Reference in New Issue
Block a user