From f618466c25d43f3bae9e40920273bf77de1e1149 Mon Sep 17 00:00:00 2001 From: leochanj105 Date: Mon, 19 Oct 2020 23:09:30 -0400 Subject: initial sd-vbs initial sd-vbs add sd-vbs sd-vbs --- SD-VBS/common/makefiles/Makefile.include | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 SD-VBS/common/makefiles/Makefile.include (limited to 'SD-VBS/common/makefiles/Makefile.include') diff --git a/SD-VBS/common/makefiles/Makefile.include b/SD-VBS/common/makefiles/Makefile.include new file mode 100644 index 0000000..f1000b9 --- /dev/null +++ b/SD-VBS/common/makefiles/Makefile.include @@ -0,0 +1,16 @@ +find-dir-with = $(shell /usr/bin/perl -e 'chomp($$_ = `pwd`); while ($$_ ne "" && ! -e "$$_/$(1)") { m:(.*)/[^/]+/??:; $$_ = $$1; } print;') + +# define canonical directories in starsearch +ifndef TOP_DIR + export TOP_DIR := $(call find-dir-with,.SD-VBS) +endif + +export MAKEFILE_COMMON_DIR=$(TOP_DIR)/common/makefiles + +# backward compatibility + +ifeq ($(TOP_DIR),) +$(error file .SD-VBS not found -- try running 'gmake setup' at the top of your source tree) +endif + + -- cgit v1.2.2