]> arthur.barton.de Git - bup.git/blob - Makefile
Use t# instead of et# for hashsplit parameter type.
[bup.git] / Makefile
1 CFLAGS=-Wall -g -O2 -Werror -I/usr/include/python2.5 -g -fwrapv -fPIC
2
3 default: all
4
5 all: hashsplit hashjoin datagen hashsplit.so
6
7 hashsplit: hashsplit.o
8
9 datagen: datagen.o
10
11 hashjoin: hashjoin.sh
12
13 hashsplit.so: hashsplitmodule.o
14         $(CC) -shared -Wl,-Bsymbolic-functions -o $@ $<
15
16 test: all
17         ./hashsplit.py <testfile1 >tags1
18         ./hashsplit.py <testfile2 >tags2
19         diff -u tags1 tags2 || true
20         wc -c testfile1 testfile2
21         wc -l tags1 tags2
22         ./hashjoin <tags1 >out1
23         ./hashjoin <tags2 >out2
24         diff -u testfile1 out1
25         diff -u testfile2 out2
26
27 %: %.o
28         gcc -o $@ $< $(LDFLAGS) $(LIBS)
29         
30 %: %.sh
31         rm -f $@
32         ln -s $^ $@
33         
34 %.o: %.c
35         gcc -c -o $@ $^ $(CPPFLAGS) $(CFLAGS)
36
37 clean:
38         rm -f *.o *.so *~ hashsplit hashjoin hsplit hjoin datagen \
39                 out[12] tags[12] .*~