From 6f7286b0ea3b605bbe2d11af6bc41c2f4a2c2959 Mon Sep 17 00:00:00 2001 From: Mark Rivers Date: Tue, 18 Feb 2014 18:59:37 -0600 Subject: [PATCH] New file --- iocs/Makefile | 25 +++++++++++++++++++++++++ iocs/andorIOC/Makefile | 8 ++++++++ iocs/andorIOC/andorApp/Makefile | 9 +++++++++ iocs/andorIOC/iocBoot/Makefile | 6 ++++++ 4 files changed, 48 insertions(+) create mode 100644 iocs/Makefile create mode 100644 iocs/andorIOC/Makefile create mode 100644 iocs/andorIOC/andorApp/Makefile create mode 100644 iocs/andorIOC/iocBoot/Makefile diff --git a/iocs/Makefile b/iocs/Makefile new file mode 100644 index 0000000..3a1925d --- /dev/null +++ b/iocs/Makefile @@ -0,0 +1,25 @@ +TOP = .. +include $(TOP)/configure/CONFIG + +DIRS := $(wildcard *IOC) + +include $(TOP)/configure/RULES_TOP + +uninstallTargets = $(foreach dir, $(DIRS), $(dir)$(DIVIDER)uninstall) +uninstall: $(uninstallTargets) +define UNINSTALL_template +$(1)$(DIVIDER)uninstall: + $(MAKE) -C $(1) uninstall +endef +$(foreach dir, $(DIRS), $(eval $(call UNINSTALL_template,$(dir)))) +.PHONY: uninstall $(uninstallTargets) + +realuninstallTargets = $(foreach dir, $(DIRS), $(dir)$(DIVIDER)realuninstall) +realuninstall: $(realuninstallTargets) +define REALUNINSTALL_template +$(1)$(DIVIDER)realuninstall: + $(MAKE) -C $(1) realuninstall +endef +$(foreach dir, $(DIRS), $(eval $(call REALUNINSTALL_template,$(dir)))) +.PHONY: realuninstall $(realuninstallTargets) + diff --git a/iocs/andorIOC/Makefile b/iocs/andorIOC/Makefile new file mode 100644 index 0000000..015d84e --- /dev/null +++ b/iocs/andorIOC/Makefile @@ -0,0 +1,8 @@ +#Makefile at top of application tree +TOP = . +include $(TOP)/configure/CONFIG +DIRS := $(DIRS) $(filter-out $(DIRS), configure) +DIRS := $(DIRS) $(filter-out $(DIRS), $(wildcard *App)) +DIRS := $(DIRS) $(filter-out $(DIRS), $(wildcard *app)) +DIRS := $(DIRS) $(filter-out $(DIRS), $(wildcard iocBoot)) +include $(TOP)/configure/RULES_TOP diff --git a/iocs/andorIOC/andorApp/Makefile b/iocs/andorIOC/andorApp/Makefile new file mode 100644 index 0000000..338c8b7 --- /dev/null +++ b/iocs/andorIOC/andorApp/Makefile @@ -0,0 +1,9 @@ +TOP = .. +include $(TOP)/configure/CONFIG + +DIRS := $(DIRS) $(filter-out $(DIRS), $(wildcard *db*)) +DIRS := $(DIRS) $(filter-out $(DIRS), $(wildcard *Db*)) +DIRS := $(DIRS) $(filter-out $(DIRS), $(wildcard *src*)) + +include $(TOP)/configure/RULES_DIRS + diff --git a/iocs/andorIOC/iocBoot/Makefile b/iocs/andorIOC/iocBoot/Makefile new file mode 100644 index 0000000..d097ef0 --- /dev/null +++ b/iocs/andorIOC/iocBoot/Makefile @@ -0,0 +1,6 @@ +TOP = .. +include $(TOP)/configure/CONFIG +DIRS += $(wildcard *ioc*) +DIRS += $(wildcard as*) +include $(EPICS_BASE)/configure/RULES_DIRS +