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