From a0d078e78fa289d7fca93f858b0d1d96d1b13624 Mon Sep 17 00:00:00 2001 From: qorg11 Date: Fri, 30 Apr 2021 18:20:02 +0200 Subject: [PATCH] Added makefile --- src/Makefile | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 src/Makefile diff --git a/src/Makefile b/src/Makefile new file mode 100644 index 0000000..f7e2088 --- /dev/null +++ b/src/Makefile @@ -0,0 +1,19 @@ +# demiurge makefile + +TARGET = demiurge +OBJS = login.o util.o post.o main.o +CC = cc +CFLAGS = -O2 -march=native -MD -std=c11 -Wall -Wextra -lcurl -lreadline -ljson-c + + +$(TARGET): $(OBJS) + $(CC) $(CFLAGS) $(CFLAGSDEF) $(OBJS) -o $(TARGET) + +%.o: %.c + $(CC) -c $(CFLAGS) $(CFLAGSDEF) $< -o $@ + +-include *.d + +.PHONY: clean +clean: + rm -f *.d *.o demiurge