From 60ab93acc62257099372d2a3568a0529ce83f9ac Mon Sep 17 00:00:00 2001 From: Orestis <orestis.malaspinas@pm.me> Date: Mon, 25 Oct 2021 14:12:32 +0200 Subject: [PATCH] added makefile to compile all examples in recursivity --- source_codes/recursivity/Makefile | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 source_codes/recursivity/Makefile diff --git a/source_codes/recursivity/Makefile b/source_codes/recursivity/Makefile new file mode 100644 index 0000000..652d2df --- /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) + -- GitLab