summaryrefslogtreecommitdiff
path: root/examples/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'examples/Makefile')
-rw-r--r--examples/Makefile16
1 files changed, 14 insertions, 2 deletions
diff --git a/examples/Makefile b/examples/Makefile
index 451863a..25d3fa5 100644
--- a/examples/Makefile
+++ b/examples/Makefile
@@ -1,2 +1,14 @@
-all:
- cc -Og -g -ggdb -I../src gehashmap.c -o gehashmap
+.POSIX:
+
+CC = cc
+CFLAGS = -Og -g -ggdb
+LDFLAGS = -I../src
+
+srcs = gehashmap
+
+all: ${srcs}
+
+gehashmap: gehashmap.c
+
+clean:
+ rm -f ${srcs}