aboutsummaryrefslogtreecommitdiffstats
path: root/src/Makefile
blob: 73075a66510fb032d6ab085fdc2754d61b9cf9a2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# demiurge makefile

TARGET = demiurge
OBJS   = login.o util.o post.o main.o upload_file.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