From 82fde5ac12c8d494a8fc3220a30ebd209c64b573 Mon Sep 17 00:00:00 2001 From: Boris Gjenero Date: Thu, 22 Oct 2020 14:50:18 -0400 Subject: [PATCH] Add top level Makefile.linux for building everything at once. --- Makefile.linux | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 Makefile.linux diff --git a/Makefile.linux b/Makefile.linux new file mode 100644 index 0000000..0bb8c77 --- /dev/null +++ b/Makefile.linux @@ -0,0 +1,29 @@ +SUBDIRS := common mopd mopcopy mopprobe moptrace mopchk + +CLEANDIRS := $(SUBDIRS:%=clean-%) +INSTALLDIRS := $(SUBDIRS:%=install-%) + +.PHONY : all $(SUBDIRS) $(CLEANDIRS) $(INSTALLDIRS) + +all: $(SUBDIRS) + +# Dependencies between targets + +mopd: common +mopcopy: common +mopprobe: common +moptrace: common +mopchk: common + +# Rules + +$(SUBDIRS): + $(MAKE) -C $@ -f Makefile.linux + +install: $(INSTALLDIRS) all +$(INSTALLDIRS): + $(MAKE) -C $(@:install-%=%) -f Makefile.linux install + +clean: $(CLEANDIRS) +$(CLEANDIRS): + $(MAKE) -C $(@:clean-%=%) -f Makefile.linux clean