]> arthur.barton.de Git - bup.git/blob - Makefile
hashsplit.py is now much, much faster than before.
[bup.git] / Makefile
1 CFLAGS=-Wall -g -Werror
2
3 default: all
4
5 all: hashsplit hashjoin
6
7 hashsplit: hashsplit.o
8
9 hashjoin: hashjoin.sh
10
11 test: hashsplit hashjoin
12         ./hashsplit.py <testfile1 >tags1
13         ./hashsplit.py <testfile2 >tags2
14         diff -u tags1 tags2 || true
15         wc -c testfile1 testfile2
16         wc -l tags1 tags2
17         ./hashjoin <tags1 >out1
18         ./hashjoin <tags2 >out2
19         diff -u testfile1 out1
20         diff -u testfile2 out2
21
22 %: %.o
23         gcc -o $@ $< $(LDFLAGS) $(LIBS)
24         
25 %: %.sh
26         rm -f $@
27         ln -s $^ $@
28         
29 %.o: %.c
30         gcc -c -o $@ $^ $(CPPFLAGS) $(CFLAGS)
31
32 clean:
33         rm -f *.o *~ hashsplit hashjoin hsplit hjoin \
34                 out[12] tags[12] .*~