From b9cf16f360d56a1e34af57f4ab09e97371e8cbb8 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Mon, 15 Sep 2003 06:04:31 +0000 Subject: [PATCH] Isolate the hashing stuff into its own module. --- Makefile | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index 7992a1a..a0d6ec8 100644 --- a/Makefile +++ b/Makefile @@ -5,7 +5,8 @@ VERS=1.6 -CODE = shredtree.c shred.h report.c main.c md5.c md5.h filterator +CODE = shredtree.c shred.h report.c hash.c main.c md5.c md5.h hash.h \ + filterator hashgen.py DOCS = README NEWS comparator.xml scf-standard.xml COPYING EXTRAS = shredtree.py shredcompare.py TEST = test @@ -15,14 +16,19 @@ LDFLAGS = all: comparator comparator.1 -main.o: main.c shred.h +main.o: main.c shred.h hash.h $(CC) -DVERSION=\"$(VERS)\" -c $(CFLAGS) main.c -shredtree.o: shredtree.c shred.h +hash.o: hash.c hash.h + $(CC) -c $(CFLAGS) hash.c +shredtree.o: shredtree.c shred.h hash.h $(CC) -c $(CFLAGS) shredtree.c -report.o: report.c shred.h +report.o: report.c shred.h hash.h $(CC) -c $(CFLAGS) report.c -comparator: main.o shredtree.o md5.o report.o - $(CC) $(CFLAGS) main.o shredtree.o md5.o report.o $(LDFLAGS) -o comparator +comparator: main.o hash.o shredtree.o md5.o report.o + $(CC) $(CFLAGS) main.o hash.o shredtree.o md5.o report.o $(LDFLAGS) -o comparator + +hash.c: hashgen.py + python hashgen.py >hash.c clean: rm -f comparator shredtree.o md5.o report.o main.o *~ -- 2.43.0