diff --git a/source_codes/recursivity/Makefile b/source_codes/recursivity/Makefile new file mode 100644 index 0000000000000000000000000000000000000000..652d2dfcdabc3c47efaec5f3d8a18af6e6367373 --- /dev/null +++ b/source_codes/recursivity/Makefile @@ -0,0 +1,18 @@ +CC:=gcc +SAN:=-fsanitize=address +CFLAGS:=-Wall -Wextra -pedantic -g $(SAN) +LDFLAGS:=-lm $(SAN) + +EXECS := $(shell find . -type f -iname '*.c' | sed 's/\.c//g') + +all: $(EXECS) + +$(EXECS): %: %.c + # @echo $< + $(CC) $(CFLAGS) -o $@ $< $(LDFLAGS) + +.PHONY: clean + +clean: + rm -f *.o $(EXECS) +