annotate Makefile @ 4:28737b9480e4

fix usage help
author carl
date Thu, 23 Dec 2004 11:20:24 -0800
parents 8dd68d722fa8
children 3e9cea0af4a1
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
6b1b602514db Initial revision
carl
parents:
diff changeset
1 GCC_FLAGS=-g ${CFLAGS}
6b1b602514db Initial revision
carl
parents:
diff changeset
2
2
8dd68d722fa8 add ldif converters
carl
parents: 0
diff changeset
3 all: readpst pst2ldif nick2ldif getidblock readpstlog dumpblocks
0
6b1b602514db Initial revision
carl
parents:
diff changeset
4
6b1b602514db Initial revision
carl
parents:
diff changeset
5 libpst.o: libpst.c libpst.h define.h
6b1b602514db Initial revision
carl
parents:
diff changeset
6 gcc ${GCC_FLAGS} -c libpst.c -o libpst.o
6b1b602514db Initial revision
carl
parents:
diff changeset
7
6b1b602514db Initial revision
carl
parents:
diff changeset
8 libstrfunc.o: libstrfunc.c libstrfunc.h
6b1b602514db Initial revision
carl
parents:
diff changeset
9 gcc ${GCC_FLAGS} -c libstrfunc.c -o libstrfunc.o
6b1b602514db Initial revision
carl
parents:
diff changeset
10
6b1b602514db Initial revision
carl
parents:
diff changeset
11 debug.o: debug.c define.h
6b1b602514db Initial revision
carl
parents:
diff changeset
12 gcc ${GCC_FLAGS} -c debug.c -o debug.o
6b1b602514db Initial revision
carl
parents:
diff changeset
13
6b1b602514db Initial revision
carl
parents:
diff changeset
14 lzfu.o: lzfu.c define.h
6b1b602514db Initial revision
carl
parents:
diff changeset
15 gcc ${GCC_FLAGS} -c lzfu.c -o lzfu.o
6b1b602514db Initial revision
carl
parents:
diff changeset
16
6b1b602514db Initial revision
carl
parents:
diff changeset
17 readpst: readpst.c define.h libpst.o timeconv.o libstrfunc.o common.h debug.o lzfu.o
6b1b602514db Initial revision
carl
parents:
diff changeset
18 # ccmalloc gcc -Wall -Werror readpst.c -g -o readpst libpst.o timeconv.o libstrfunc.o debug.o
6b1b602514db Initial revision
carl
parents:
diff changeset
19 # gcc -Wall -Werror readpst.c -g -o readpst libpst.o timeconv.o libstrfunc.o debug.o lzfu.o -lefence
6b1b602514db Initial revision
carl
parents:
diff changeset
20 gcc ${GCC_FLAGS} readpst.c -o readpst libpst.o timeconv.o libstrfunc.o debug.o lzfu.o
6b1b602514db Initial revision
carl
parents:
diff changeset
21
2
8dd68d722fa8 add ldif converters
carl
parents: 0
diff changeset
22 pst2ldif: pst2ldif.c define.h libpst.o timeconv.o libstrfunc.o common.h debug.o lzfu.o
8dd68d722fa8 add ldif converters
carl
parents: 0
diff changeset
23 gcc ${GCC_FLAGS} pst2ldif.c -o pst2ldif libpst.o timeconv.o libstrfunc.o debug.o lzfu.o
8dd68d722fa8 add ldif converters
carl
parents: 0
diff changeset
24
8dd68d722fa8 add ldif converters
carl
parents: 0
diff changeset
25 nick2ldif: nick2ldif.cpp define.h libpst.o timeconv.o libstrfunc.o common.h debug.o lzfu.o
8dd68d722fa8 add ldif converters
carl
parents: 0
diff changeset
26 g++ ${GCC_FLAGS} nick2ldif.cpp -o nick2ldif libpst.o timeconv.o libstrfunc.o debug.o lzfu.o
8dd68d722fa8 add ldif converters
carl
parents: 0
diff changeset
27
0
6b1b602514db Initial revision
carl
parents:
diff changeset
28 timeconv.o: timeconv.c timeconv.h common.h
6b1b602514db Initial revision
carl
parents:
diff changeset
29 gcc ${GCC_FLAGS} -c timeconv.c -o timeconv.o
6b1b602514db Initial revision
carl
parents:
diff changeset
30
6b1b602514db Initial revision
carl
parents:
diff changeset
31 getidblock: getidblock.c define.h libpst.o common.h debug.o libstrfunc.o
6b1b602514db Initial revision
carl
parents:
diff changeset
32 gcc ${GCC_FLAGS} getidblock.c -o getidblock libpst.o debug.o timeconv.o libstrfunc.o
6b1b602514db Initial revision
carl
parents:
diff changeset
33
6b1b602514db Initial revision
carl
parents:
diff changeset
34 testdebug: testdebug.c define.h debug.o
6b1b602514db Initial revision
carl
parents:
diff changeset
35 gcc ${GCC_FLAGS} testdebug.c -o testdebug debug.o libstrfunc.o
6b1b602514db Initial revision
carl
parents:
diff changeset
36
6b1b602514db Initial revision
carl
parents:
diff changeset
37 readpstlog: readpstlog.c define.h debug.o
6b1b602514db Initial revision
carl
parents:
diff changeset
38 gcc ${GCC_FLAGS} readpstlog.c -g -o readpstlog debug.o libstrfunc.o
6b1b602514db Initial revision
carl
parents:
diff changeset
39
6b1b602514db Initial revision
carl
parents:
diff changeset
40 dumpblocks: dumpblocks.c define.h libpst.o debug.o
6b1b602514db Initial revision
carl
parents:
diff changeset
41 gcc ${GCC_FLAGS} dumpblocks.c -o dumpblocks libpst.o debug.o libstrfunc.o timeconv.o
6b1b602514db Initial revision
carl
parents:
diff changeset
42
2
8dd68d722fa8 add ldif converters
carl
parents: 0
diff changeset
43 clean:
8dd68d722fa8 add ldif converters
carl
parents: 0
diff changeset
44 rm -f core readpst pst2ldif libpst.o timeconv.o libstrfunc.o debug.o getidblock readpstlog testdebug dumpblocks lzfu.o *~
0
6b1b602514db Initial revision
carl
parents:
diff changeset
45
6b1b602514db Initial revision
carl
parents:
diff changeset
46 rebuild: clean all
6b1b602514db Initial revision
carl
parents:
diff changeset
47
6b1b602514db Initial revision
carl
parents:
diff changeset
48 install: all
2
8dd68d722fa8 add ldif converters
carl
parents: 0
diff changeset
49 cp readpst /usr/local/bin
8dd68d722fa8 add ldif converters
carl
parents: 0
diff changeset
50 cp pst2ldif /usr/local/bin
8dd68d722fa8 add ldif converters
carl
parents: 0
diff changeset
51 cp readpstlog /usr/local/bin
0
6b1b602514db Initial revision
carl
parents:
diff changeset
52 uninstall:
6b1b602514db Initial revision
carl
parents:
diff changeset
53 rm -f /usr/local/bin/readpst
2
8dd68d722fa8 add ldif converters
carl
parents: 0
diff changeset
54 rm -f /usr/local/bin/pst2ldif
0
6b1b602514db Initial revision
carl
parents:
diff changeset
55 rm -f /usr/local/bin/readpstlog