X-Git-Url: https://git.wirehaze.ovh/graph-theory.git/blobdiff_plain/0cafaf72753a31d47e96bc8318b70ad8db215e6f..HEAD:/Makefile?ds=sidebyside diff --git a/Makefile b/Makefile index 1af8984..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,7 +12,8 @@ CFLAGS := -I. \ -Wdouble-promotion \ -Wno-variadic-macros -objs := gt.o graph/adj.o graph/dfs.o graph/pr.o +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 $@