aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 44869e6..e7e7b3d 100644
--- a/Makefile
+++ b/Makefile
@@ -1,11 +1,13 @@
# Makefile
+CFLAGS += -Ic_headers/include
+
all: main endpoints.so
.PHONY: all clean
endpoints.o: endpoints.c
- $(CC) -c $< -o $@
+ $(CC) -c $< $(CFLAGS) -o $@
rename.ld: endpoints.o
# Looks terrible
@@ -18,7 +20,7 @@ endpoints.so: endpoints.o rename.ld
$(CC) -shared -Wl,rename.ld $< -fPIE -o $@
main: main.c
- $(CC) $< -ldl -lmicrohttpd -o $@
+ $(CC) $< $(CFLAGS) -ldl -lmicrohttpd -o $@
clean:
$(RM) main endpoints.o endpoints.so rename.ld