From 126f1a425776a5ce52fcb8f45d30cf40f09d93e2 Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Thu, 15 Apr 2004 03:14:56 +0000 Subject: Some added CVS files and fixes --- .cvsignore | 17 ++++++++++++++++- ChangeLog | 0 configure.in | 13 +++++++++++-- src/.cvsignore | 5 +++++ src/Makefile.am | 9 +++++++++ win32/.cvsignore | 4 +++- 6 files changed, 44 insertions(+), 4 deletions(-) create mode 100644 ChangeLog create mode 100644 src/.cvsignore create mode 100644 src/Makefile.am diff --git a/.cvsignore b/.cvsignore index c5c3c75..be94300 100644 --- a/.cvsignore +++ b/.cvsignore @@ -1 +1,16 @@ -trash \ No newline at end of file +aclocal.m4 +autom4te.cache +compile +config.h +config.h.in* +config.log +config.status +configure +depcomp +install-sh +Makefile +Makefile.in +missing +mkinstalldirs +stamp-* +trash diff --git a/ChangeLog b/ChangeLog new file mode 100644 index 0000000..e69de29 diff --git a/configure.in b/configure.in index 2b5fac7..f81ec93 100644 --- a/configure.in +++ b/configure.in @@ -40,7 +40,6 @@ AC_INIT(scrounge-ntfs, 0.8.1, nielsen@memberwebs.com) AM_INIT_AUTOMAKE(scrounge-ntfs, 0.8.1) LDFLAGS="$LDFLAGS -L/usr/local/lib" -CPPFLAGS="$CPPFLAGS -I/usr/local/include" CFLAGS="$CFLAGS -I/usr/local/include" AC_CONFIG_SRCDIR([src/scrounge.c]) @@ -52,13 +51,23 @@ AC_PROG_INSTALL AC_PROG_LN_S AC_PROG_MAKE_SET +# Debug mode +AC_ARG_ENABLE(debug, + AC_HELP_STRING([--enable-debug], + [Compile binaries in debug mode])) + +if test "$enable_debug" = "yes"; then + CFLAGS="$CFLAGS -g -O0 -D_DEBUG=1" + echo "enabling debug compile mode" +fi + # Check for libraries # Checks for header files. AC_HEADER_STDC +AC_CHECK_HEADERS([string.h io.h unistd.h err.h malloc.h sys/time.h stdint.h]) AC_CHECK_HEADERS([stdio.h stddef.h fcntl.h stdlib.h wchar.h assert.h errno.h stdint.h stdarg.h], , [echo "ERROR: Required C header missing"; exit 1]) -AC_CHECK_HEADERS([string.h io.h unistd.h err.h malloc.h sys/time.h stdint.h]) # Checks for typedefs, structures, and compiler characteristics. diff --git a/src/.cvsignore b/src/.cvsignore new file mode 100644 index 0000000..8f6b4a3 --- /dev/null +++ b/src/.cvsignore @@ -0,0 +1,5 @@ +Makefile +Makefile.in +scrounge-ntfs +*.o +.deps diff --git a/src/Makefile.am b/src/Makefile.am new file mode 100644 index 0000000..be563f5 --- /dev/null +++ b/src/Makefile.am @@ -0,0 +1,9 @@ +bin_PROGRAMS = scrounge-ntfs + +scrounge_ntfs_SOURCES = compat.c compat.h debug.h drive.h list.c locks.h main.c memref.h \ + misc.c ntfs.c ntfs.h ntfsx.h ntfsx.c posix.c scrounge.c scrounge.h \ + search.c unicode.c usuals.h + +scrounge_ntfs_CFLAGS = -I${top_srcdir} + +EXTRA_DIST = win32.c diff --git a/win32/.cvsignore b/win32/.cvsignore index 55017e7..51f1a96 100644 --- a/win32/.cvsignore +++ b/win32/.cvsignore @@ -1,4 +1,6 @@ win32.ncb win32.plg win32.opt -debug \ No newline at end of file +debug +Makefile +Makefile.in -- cgit v1.2.3