CFLAGS=-Wall -g -Werror default: all all: hashsplit hashjoin datagen hashsplit: hashsplit.o datagen: datagen.o hashjoin: hashjoin.sh test: hashsplit hashjoin ./hashsplit.py tags1 ./hashsplit.py tags2 diff -u tags1 tags2 || true wc -c testfile1 testfile2 wc -l tags1 tags2 ./hashjoin out1 ./hashjoin out2 diff -u testfile1 out1 diff -u testfile2 out2 %: %.o gcc -o $@ $< $(LDFLAGS) $(LIBS) %: %.sh rm -f $@ ln -s $^ $@ %.o: %.c gcc -c -o $@ $^ $(CPPFLAGS) $(CFLAGS) clean: rm -f *.o *~ hashsplit hashjoin hsplit hjoin datagen \ out[12] tags[12] .*~