fix standard EPICS build system

This commit is contained in:
2017-01-25 11:37:15 +01:00
parent 0195386606
commit ac07ac3dcf
5 changed files with 15 additions and 11 deletions

View File

@ -4,21 +4,24 @@ DIRS = src
streamApp_DEPEND_DIRS = src
# Look if we have EPICS R3.13 or R3.14
ifeq ($(wildcard $(TOP)/configure),)
ifneq ($(wildcard $(TOP)/configure),)
# EPICS R3.14
include $(TOP)/configure/CONFIG
else ifneq ($(wildcard $(TOP)/config),)
# EPICS R3.13
include $(TOP)/config/CONFIG_APP
CONFIG = $(TOP)/config
else
# EPICS R3.14
TOP = .
include $(TOP)/configure/CONFIG
ifneq ($(words $(CALC) $(SYNAPPS)), 0)
# with synApps calc module (contains scalcout)
DIRS += srcSynApps
srcSynApps_DEPEND_DIRS = src
streamApp_DEPEND_DIRS += srcSynApps
endif
endif
DIRS += streamApp
ifneq ($(words $(CALC) $(SYNAPPS)), 0)
# with synApps calc module (contains scalcout)
DIRS += srcSynApps
srcSynApps_DEPEND_DIRS = src
streamApp_DEPEND_DIRS += srcSynApps
endif
include $(CONFIG)/RULES_DIRS

View File

@ -16,3 +16,4 @@ TEMPLATE_TOP=$(EPICS_BASE)/templates/makeBaseApp/top
# EPICS_BASE usually appears last so other apps can override stuff:
EPICS_BASE=/usr/local/epics/base-3.14.12
CALC=~/top/SynApps/calc-2-8

View File

@ -18,7 +18,7 @@
# #
################################################################
TOP=../..
TOP:=../$(TOP)
# Look if we have EPICS R3.13 or R3.14
ifeq ($(wildcard $(TOP)/configure),)

View File

@ -1,4 +1,4 @@
TOP=../..
TOP:=../$(TOP)
include $(TOP)/configure/CONFIG

View File

@ -1,4 +1,4 @@
TOP=../..
TOP:=../$(TOP)
# Look if we have EPICS R3.13 or R3.14
ifeq ($(wildcard $(TOP)/configure),)