From 08af514ba3fd9c1d4083c936b677ef74be0ad86b Mon Sep 17 00:00:00 2001 From: Nathanael Sensfelder Date: Thu, 17 Feb 2022 17:31:18 +0100 Subject: Greatly improves the compilation process. --- src/Makefile | 32 -------------------------------- 1 file changed, 32 deletions(-) delete mode 100644 src/Makefile (limited to 'src/Makefile') diff --git a/src/Makefile b/src/Makefile deleted file mode 100644 index 719b8ea..0000000 --- a/src/Makefile +++ /dev/null @@ -1,32 +0,0 @@ -SUBCOMPONENTS = $(dir $(filter-out "./Makefile",$(wildcard ./*/Makefile))) -SUBCOMPONENTS_EXPORT = $(addsuffix /export.a,$(SUBCOMPONENTS)) -################################################################################ -SRC_FILES = $(wildcard ./*.c) -OBJ_FILES = $(SRC_FILES:.c=.o) -DEP_FILES = $(SRC_FILES:.c=.d) -################################################################################ -build: export.a - -export.a: $(OBJ_FILES) $(SUBCOMPONENTS_EXPORT) - ar -crT $@ $^ - -$(SUBCOMPONENTS_EXPORT): .JUST_CHECK - $(MAKE) -C $(dir $@) export.a - -clean: - rm -f $(OBJ_FILES) - rm -f $(DEP_FILES) - rm -f export.a - for subcmp in $(SUBCOMPONENTS) ; do \ - $(MAKE) -C $$subcmp clean ; \ - done -################################################################################ -%.d: %.c - @set -e; rm -f $@; \ - $(CC) -M $(CPPFLAGS) $< > $@.$$$$; \ - sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \ - rm -f $@.$$$$ - -.JUST_CHECK: - -include $(DEP_FILES) -- cgit v1.2.3-70-g09d2