From a15164f747e51484360a01b404531fe51c2e5b7a Mon Sep 17 00:00:00 2001 From: jwerle Date: Tue, 31 Dec 2024 13:47:30 -0500 Subject: fix(Makefile): fix 'example' target --- Makefile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 720af44..29e80ea 100644 --- a/Makefile +++ b/Makefile @@ -8,7 +8,7 @@ MAN_FILES = $(wildcard man/*.md) LIB ?= libmurmurhash.so INCLUDE ?= murmurhash.h -all: $(LIB) $(BIN) +all: $(LIB) $(BIN) example $(LIB): $(CC) -shared $(SRC) $(CFLAGS) -o $(LIB) @@ -20,9 +20,10 @@ clean: rm -f test rm -f $(BIN) rm -f $(LIB) + rm -f example -example: - $(CC) murmurhash_example.c -lmurmurhash -o murmurhash_example +example: example.c murmurhash.c + $(CC) $^ -o $@ test: $(CC) test.c $(SRC) $(CFLAGS) -o test -- cgit v1.2.3