X-Git-Url: https://git.wirehaze.ovh/graph-theory.git/blobdiff_plain/8285b08b1ca5d40e691bdc6bcd0e0a6dfd904135..HEAD:/Makefile?ds=sidebyside diff --git a/Makefile b/Makefile index 90d603b..6553b1e 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,6 @@ CC := gcc -CFLAGS := -I. \ - -std=gnu90 \ - -g \ +CPPFLAGS := -I. +CFLAGS := -std=gnu90 \ -pedantic \ -pedantic-errors \ -Wall \ @@ -13,8 +12,9 @@ CFLAGS := -I. \ -Wdouble-promotion \ -Wno-variadic-macros -objs := dfs.o graph/adj.o graph/pr.o -bin := dfs +srcs := $(wildcard **/*.c) +objs := $(srcs:.c=.o) +bin := gt all : $(bin) @@ -24,4 +24,3 @@ clean : .PHONY : all clean $(bin) : $(objs) - $(CC) $(CFLAGS) $(LDFLAGS) $^ $(LDLIBS) -o $@