Added makefile

This commit is contained in:
qorg11 2021-04-30 18:20:02 +02:00
parent 98b001d8c4
commit a0d078e78f
Signed by: qorg11
GPG Key ID: 343FC20A4ACA62B9
1 changed files with 19 additions and 0 deletions

19
src/Makefile Normal file
View File

@ -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