Added makefile
This commit is contained in:
parent
98b001d8c4
commit
a0d078e78f
|
@ -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
|
Loading…
Reference in New Issue