aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorjustanothercatgirl <sotov@twistea.su>2025-03-24 08:30:16 +0300
committerjustanothercatgirl <sotov@twistea.su>2025-03-24 08:30:16 +0300
commit8542ec17d3df989f3df9fd03af7a447bf730dc13 (patch)
tree796f070ef2d22d0d8d75fd25f3ce6613a0ce15ab /Makefile
parent787ef64ce61302a159ad48974272533b6fdf6c9e (diff)
added json dependency
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