]> arthur.barton.de Git - bup.git/blob - Makefile
0e36d1d1cc5dc98a6685d6be0cb0c4b28f1e3ab6
[bup.git] / Makefile
1 CFLAGS=-Wall -g -Werror
2
3 all: hsplit
4
5 hsplit: hsplit.o
6
7 hjoin: hjoin.sh
8
9 test: hsplit
10         ./hsplit <testfile1 >tags1
11         ./hsplit <testfile2 >tags2
12         diff -u -U50 tags1 tags2
13
14 %: %.o
15         gcc -o $@ $< $(LDFLAGS) $(LIBS)
16         
17 %: %.sh
18         rm -f $@
19         ln -s $^ $@
20         
21 %.o: %.c
22         gcc -c -o $@ $^ $(CPPFLAGS) $(CFLAGS)
23
24 clean:
25         rm -f *.o *~ hsplit hjoin