From 031bb1d6418236d6b7d581aba48ad8c3864af5c9 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Fri, 23 Dec 2022 23:13:54 +0100 Subject: Make the Makefile more extendable --- examples/Makefile | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'examples/Makefile') 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} -- cgit v1.2.3