summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjwerle <joseph.werle@gmail.com>2024-12-31 13:47:30 -0500
committerjwerle <joseph.werle@gmail.com>2024-12-31 13:47:30 -0500
commita15164f747e51484360a01b404531fe51c2e5b7a (patch)
tree61bfd56020777697b13f88ab51be813205892f58
parent81259bbb334cb884dedf607d4432d301763f6dc2 (diff)
fix(Makefile): fix 'example' target
-rw-r--r--Makefile7
1 files 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