--- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ SHELL=/bin/sh TARGET=swuniq -SRCS=swuniq.c xxHash/xxhash.c +SRCS=swuniq.c DESTDIR= prefix=/usr/local/bin INSTALL=install @@ -22,7 +22,7 @@ SRCS += xxHash/xxh_x86dispatch.c endif swuniq: mkdir -p out - $(CC) $(CFLAGS) $(SRCS) -o out/$(TARGET) + $(CC) $(CFLAGS) $(SRCS) -o out/$(TARGET) $(LDFLAGS) -lxxhash install: swuniq mkdir -p $(DESTDIR)$(prefix) --- a/swuniq.c +++ b/swuniq.c @@ -38,11 +38,11 @@ #include #include -#include "uthash/src/utringbuffer.h" +#include #define XXH_STATIC_LINKING_ONLY /* *_state_t */ -#include "xxHash/xxhash.h" +#include /* makes the next part easier */ #if defined(__x86_64__) || defined(_M_AMD64) || defined(_M_X64)