diff --git a/Makefile b/Makefile index f604095..c579ea6 100644 --- a/Makefile +++ b/Makefile @@ -38,24 +38,24 @@ default: xxhsum all: xxhsum xxhsum32 -xxhsum: xxhash.c bench.c +xxhsum: xxhash.c xxhsum.c $(CC) $(CFLAGS) $^ -o $@$(EXT) ln -sf $@ xxh32sum ln -sf $@ xxh64sum -xxhsum32: xxhash.c bench.c +xxhsum32: xxhash.c xxhsum.c $(CC) -m32 $(CFLAGS) $^ -o $@$(EXT) test: $(TEST_TARGETS) test: xxhsum - ./xxhsum -b bench.c - valgrind ./xxhsum -bi1 bench.c - valgrind ./xxhsum -H0 bench.c - valgrind ./xxhsum -H1 bench.c + ./xxhsum -b xxhash.c + valgrind ./xxhsum -bi1 xxhash.c + valgrind ./xxhsum -H0 xxhash.c + valgrind ./xxhsum -H1 xxhash.c test-all: test xxhsum32 - ./xxhsum32 -b bench.c + ./xxhsum32 -b xxhash.c clean: @rm -f core *.o xxhsum$(EXT) xxhsum32$(EXT) xxh32sum xxh64sum diff --git a/bench.c b/xxhsum.c similarity index 100% rename from bench.c rename to xxhsum.c