From 8542ec17d3df989f3df9fd03af7a447bf730dc13 Mon Sep 17 00:00:00 2001 From: justanothercatgirl Date: Mon, 24 Mar 2025 08:30:16 +0300 Subject: added json dependency --- Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'Makefile') 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 -- cgit v1.2.3-70-g09d2