Mercurial > libpst
diff Makefile @ 0:6b1b602514db libpst_0_5
Initial revision
author | carl |
---|---|
date | Fri, 09 Jul 2004 07:26:16 -0700 |
parents | |
children | 43e8802f08c5 8dd68d722fa8 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Makefile Fri Jul 09 07:26:16 2004 -0700 @@ -0,0 +1,47 @@ +GCC_FLAGS=-g ${CFLAGS} + +all: readpst getidblock readpstlog dumpblocks + +libpst.o: libpst.c libpst.h define.h + gcc ${GCC_FLAGS} -c libpst.c -o libpst.o + +libstrfunc.o: libstrfunc.c libstrfunc.h + gcc ${GCC_FLAGS} -c libstrfunc.c -o libstrfunc.o + +debug.o: debug.c define.h + gcc ${GCC_FLAGS} -c debug.c -o debug.o + +lzfu.o: lzfu.c define.h + gcc ${GCC_FLAGS} -c lzfu.c -o lzfu.o + +readpst: readpst.c define.h libpst.o timeconv.o libstrfunc.o common.h debug.o lzfu.o +# ccmalloc gcc -Wall -Werror readpst.c -g -o readpst libpst.o timeconv.o libstrfunc.o debug.o +# gcc -Wall -Werror readpst.c -g -o readpst libpst.o timeconv.o libstrfunc.o debug.o lzfu.o -lefence + gcc ${GCC_FLAGS} readpst.c -o readpst libpst.o timeconv.o libstrfunc.o debug.o lzfu.o + +timeconv.o: timeconv.c timeconv.h common.h + gcc ${GCC_FLAGS} -c timeconv.c -o timeconv.o + +getidblock: getidblock.c define.h libpst.o common.h debug.o libstrfunc.o + gcc ${GCC_FLAGS} getidblock.c -o getidblock libpst.o debug.o timeconv.o libstrfunc.o + +testdebug: testdebug.c define.h debug.o + gcc ${GCC_FLAGS} testdebug.c -o testdebug debug.o libstrfunc.o + +readpstlog: readpstlog.c define.h debug.o + gcc ${GCC_FLAGS} readpstlog.c -g -o readpstlog debug.o libstrfunc.o + +dumpblocks: dumpblocks.c define.h libpst.o debug.o + gcc ${GCC_FLAGS} dumpblocks.c -o dumpblocks libpst.o debug.o libstrfunc.o timeconv.o + +clean: + rm -f core readpst libpst.o timeconv.o libstrfunc.o debug.o getidblock readpstlog testdebug dumpblocks lzfu.o *~ + +rebuild: clean all + +install: all + cp readpst /usr/local/bin + cp readpstlog /usr/local/bin/readpstlog +uninstall: + rm -f /usr/local/bin/readpst + rm -f /usr/local/bin/readpstlog