diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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 |