From e7d5db7d701ede0ae89073fd2c102a6bb529a4f8 Mon Sep 17 00:00:00 2001 From: Giovanni La Mura <giovanni.lamura@inaf.it> Date: Tue, 5 Sep 2023 14:02:36 +0200 Subject: [PATCH] Create a global Makefile --- src/Makefile | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 src/Makefile diff --git a/src/Makefile b/src/Makefile new file mode 100644 index 00000000..44e798cc --- /dev/null +++ b/src/Makefile @@ -0,0 +1,18 @@ +SUBDIRS := $(wildcard */.) + +all: $(SUBDIRS) + +$(SUBDIRS): + $(MAKE) -C $@ + +clean: + rm -f $(BUILDDIR)/cluster/*.o + rm -f $(BUILDDIR)/sphere/*.o + rm -f $(BUILDDIR)/trapping/*.o + +wipe: + rm -f $(BUILDDIR)/cluster/* + rm -f $(BUILDDIR)/sphere/* + rm -f $(BUILDDIR)/trapping/* + +.PHONY: all $(SUBDIRS) -- GitLab