CC := gcc
CFLAGS := -I. \
          -std=gnu90 \
          -g \
          -pedantic \
          -pedantic-errors \
          -Wall \
          -Wextra \
          -Wconversion \
          -Wstrict-prototypes \
          -Wshadow \
          -Wundef \
          -Wdouble-promotion \
          -Wno-variadic-macros

objs := dfs.o graph/adj.o graph/pr.o
bin := dfs

all : $(bin)

clean :
	rm -f $(bin) $(objs)

.PHONY : all clean

$(bin) : $(objs)
	$(CC) $(CFLAGS) $(LDFLAGS) $^ $(LDLIBS) -o $@
