]> wirehaze git hosting - graph-theory.git/blob - Makefile

wirehaze git hosting

refac
[graph-theory.git] / Makefile
1 CC := gcc
2 CFLAGS := -I. \
3 -std=gnu90 \
4 -g \
5 -pedantic \
6 -pedantic-errors \
7 -Wall \
8 -Wextra \
9 -Wconversion \
10 -Wstrict-prototypes \
11 -Wshadow \
12 -Wundef \
13 -Wdouble-promotion \
14 -Wno-variadic-macros
15
16 objs := dfs.o graph/adj.o graph/pr.o
17 bin := dfs
18
19 all : $(bin)
20
21 clean :
22 rm -f $(bin) $(objs)
23
24 .PHONY : all clean
25
26 $(bin) : $(objs)
27 $(CC) $(CFLAGS) $(LDFLAGS) $^ $(LDLIBS) -o $@