aboutsummaryrefslogtreecommitdiffstats
path: root/src/Makefile
blob: c74d14ee7a6b262fb9c6f5020e53822104e47b00 (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 asprintf.o follow.o
CC     = cc
CFLAGS += -O2 -MD -std=c11 -Wall -Wextra -lcurl -g -lreadline -ljson-c


$(TARGET): $(OBJS)
	$(CC) $(OBJS) $(CFLAGS) -o $(TARGET)

%.o: %.c
	$(CC) -c $(CFLAGS) $(CFLAGSDEF) $< -o $@

-include *.d

.PHONY: clean
clean:
	rm -f *.d *.o demiurge