aboutsummaryrefslogtreecommitdiffstats
path: root/src/Makefile
blob: 5d0646efc2017e5c59db2d47330b71b5d0d95477 (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 -Werror -Wpedantic -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