Move scalcout support to src dir
This commit is contained in:
15
Makefile
15
Makefile
@ -1,24 +1,17 @@
|
|||||||
TOP = ..
|
TOP = ..
|
||||||
|
|
||||||
DIRS = src
|
# Look if we have EPICS R3.13 or R3.14+
|
||||||
streamApp_DEPEND_DIRS = src
|
|
||||||
|
|
||||||
# Look if we have EPICS R3.13 or R3.14
|
|
||||||
ifeq ($(wildcard $(TOP)/configure),)
|
ifeq ($(wildcard $(TOP)/configure),)
|
||||||
# EPICS R3.13
|
# EPICS R3.13
|
||||||
include $(TOP)/config/CONFIG_APP
|
include $(TOP)/config/CONFIG_APP
|
||||||
CONFIG = $(TOP)/config
|
CONFIG = $(TOP)/config
|
||||||
else
|
else
|
||||||
# EPICS R3.14
|
# EPICS R3.14+
|
||||||
include $(TOP)/configure/CONFIG
|
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
|
endif
|
||||||
|
|
||||||
|
DIRS += src
|
||||||
DIRS += streamApp
|
DIRS += streamApp
|
||||||
|
streamApp_DEPEND_DIRS = src
|
||||||
|
|
||||||
include $(CONFIG)/RULES_DIRS
|
include $(CONFIG)/RULES_DIRS
|
||||||
|
@ -1,6 +1,3 @@
|
|||||||
# Want debugging?
|
|
||||||
# HOST_OPT = NO
|
|
||||||
|
|
||||||
# You may add more record interfaces
|
# You may add more record interfaces
|
||||||
# This requires the naming conventions
|
# This requires the naming conventions
|
||||||
# dev$(RECORD)Stream.c
|
# dev$(RECORD)Stream.c
|
||||||
@ -18,12 +15,13 @@ RECORDS += aai aao
|
|||||||
# Do you have synApps and want support for scalcout?
|
# Do you have synApps and want support for scalcout?
|
||||||
# Then define CALC or SYNAPPS in your RELEASE file
|
# Then define CALC or SYNAPPS in your RELEASE file
|
||||||
# pointing to the 'calc' module of synApps.
|
# pointing to the 'calc' module of synApps.
|
||||||
# Due to strange cross dependencies in synApps
|
# Older 'calc' versions have a cross reference on
|
||||||
# you have to build the 'sscan' and 'genSub'
|
# 'sscan' and/or 'genSub', so you may have to build them first.
|
||||||
# modules before building 'calc'.
|
|
||||||
# See doc/scalcout.html for a required fix in scalcout.
|
# See doc/scalcout.html for a required fix in scalcout.
|
||||||
|
|
||||||
SYNAPPS_RECORDS += scalcout
|
ifneq ($(words $(CALC) $(SYNAPPS)),0)
|
||||||
|
RECORDS += scalcout
|
||||||
|
endif
|
||||||
|
|
||||||
# You may add more bus interfaces
|
# You may add more bus interfaces
|
||||||
# This requires the naming convention
|
# This requires the naming convention
|
||||||
@ -33,6 +31,9 @@ SYNAPPS_RECORDS += scalcout
|
|||||||
|
|
||||||
BUSSES += Debug
|
BUSSES += Debug
|
||||||
BUSSES += Dummy
|
BUSSES += Dummy
|
||||||
|
ifdef ASYN
|
||||||
|
BUSSES += AsynDriver
|
||||||
|
endif
|
||||||
|
|
||||||
# You may add more format converters
|
# You may add more format converters
|
||||||
# This requires the naming convention
|
# This requires the naming convention
|
||||||
|
11
src/Makefile
11
src/Makefile
@ -20,7 +20,7 @@
|
|||||||
|
|
||||||
TOP=../..
|
TOP=../..
|
||||||
|
|
||||||
# Look if we have EPICS R3.13 or R3.14
|
# Look if we have EPICS R3.13 or R3.14+
|
||||||
ifeq ($(wildcard $(TOP)/configure),)
|
ifeq ($(wildcard $(TOP)/configure),)
|
||||||
# EPICS R3.13
|
# EPICS R3.13
|
||||||
include $(TOP)/config/CONFIG_APP
|
include $(TOP)/config/CONFIG_APP
|
||||||
@ -40,13 +40,8 @@ DBD += $(LIBRARY_DEFAULT).dbd
|
|||||||
|
|
||||||
ifdef ASYN
|
ifdef ASYN
|
||||||
LIB_LIBS += asyn
|
LIB_LIBS += asyn
|
||||||
BUSSES += AsynDriver
|
else
|
||||||
endif
|
$(Warning AsynDriver interface not included! Didn't you set ASYN in your RELEASE file?)
|
||||||
|
|
||||||
ifdef T_A
|
|
||||||
ifndef BUSSES
|
|
||||||
$(error No bus interface defined! Didn't you set ASYN in your RELEASE file?)
|
|
||||||
endif
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(LOADABLE_MODULE),YES)
|
ifeq ($(LOADABLE_MODULE),YES)
|
||||||
|
@ -28,10 +28,6 @@ LIBNAME = streamLib
|
|||||||
# In 3.13, calcout has no device support
|
# In 3.13, calcout has no device support
|
||||||
RECORDS_3_13 = $(filter-out calcout,$(RECORDS))
|
RECORDS_3_13 = $(filter-out calcout,$(RECORDS))
|
||||||
|
|
||||||
ifdef ASYN
|
|
||||||
BUSSES += AsynDriver
|
|
||||||
endif
|
|
||||||
|
|
||||||
SRCS.cc += $(patsubst %,../%,$(filter %.cc,$(STREAM_SRCS)))
|
SRCS.cc += $(patsubst %,../%,$(filter %.cc,$(STREAM_SRCS)))
|
||||||
SRCS.cc += $(BUSSES:%=../%Interface.cc)
|
SRCS.cc += $(BUSSES:%=../%Interface.cc)
|
||||||
SRCS.cc += $(FORMATS:%=../%Converter.cc)
|
SRCS.cc += $(FORMATS:%=../%Converter.cc)
|
||||||
|
@ -21,14 +21,14 @@
|
|||||||
#include "epicsExport.h"
|
#include "epicsExport.h"
|
||||||
#include "devStream.h"
|
#include "devStream.h"
|
||||||
|
|
||||||
/* scalcout record has a bug: it never calls init_record
|
/* Up to version 2-6-1 of the SynApps calc module
|
||||||
|
scalcout record has a bug: it never calls init_record
|
||||||
of the device support.
|
of the device support.
|
||||||
Fix: sCalcoutRecord.c, end of init_record() add
|
Fix: sCalcoutRecord.c, end of init_record() add
|
||||||
|
|
||||||
if(pscalcoutDSET->init_record ) {
|
if(pscalcoutDSET->init_record ) {
|
||||||
return (*pscalcoutDSET->init_record)(pcalc);
|
return (*pscalcoutDSET->init_record)(pcalc);
|
||||||
}
|
}
|
||||||
The bug has been fixed in version 2-6-1.
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
static long readData (dbCommon *record, format_t *format)
|
static long readData (dbCommon *record, format_t *format)
|
@ -1,23 +0,0 @@
|
|||||||
TOP=../..
|
|
||||||
|
|
||||||
include $(TOP)/configure/CONFIG
|
|
||||||
|
|
||||||
-include ../src/CONFIG_STREAM
|
|
||||||
-include ../../src/CONFIG_STREAM
|
|
||||||
|
|
||||||
LIBRARY_DEFAULT = streamSynApps
|
|
||||||
|
|
||||||
DBD += $(LIBRARY_DEFAULT).dbd
|
|
||||||
|
|
||||||
ifeq ($(LOADABLE_MODULE),YES)
|
|
||||||
SRCS += $(LIBRARY_DEFAULT)_registerRecordDeviceDriver.cpp
|
|
||||||
endif
|
|
||||||
SRCS += $(SYNAPPS_RECORDS:%=dev%Stream.c)
|
|
||||||
|
|
||||||
LIB_LIBS += stream $(EPICS_BASE_IOC_LIBS)
|
|
||||||
|
|
||||||
include $(TOP)/configure/RULES
|
|
||||||
|
|
||||||
# create streamSynApps.dbd from all SYNAPPS_RECORDS
|
|
||||||
$(COMMON_DIR)/$(LIBRARY_DEFAULT).dbd: ../../src/CONFIG_STREAM
|
|
||||||
$(PERL) ../../src/makedbd.pl $(SYNAPPS_RECORDS) > $@
|
|
@ -1,6 +1,6 @@
|
|||||||
TOP=../..
|
TOP=../..
|
||||||
|
|
||||||
# Look if we have EPICS R3.13 or R3.14
|
# Look if we have EPICS R3.13 or R3.14+
|
||||||
ifeq ($(wildcard $(TOP)/configure),)
|
ifeq ($(wildcard $(TOP)/configure),)
|
||||||
# EPICS R3.13
|
# EPICS R3.13
|
||||||
include $(TOP)/config/CONFIG_APP
|
include $(TOP)/config/CONFIG_APP
|
||||||
@ -8,11 +8,9 @@ include $(TOP)/config/CONFIG_APP
|
|||||||
include $(TOP)/config/RULES_ARCHS
|
include $(TOP)/config/RULES_ARCHS
|
||||||
else
|
else
|
||||||
|
|
||||||
# EPICS R3.14
|
# EPICS R3.14+
|
||||||
include $(TOP)/configure/CONFIG
|
include $(TOP)/configure/CONFIG
|
||||||
|
|
||||||
#HOST_OPT = NO
|
|
||||||
|
|
||||||
PROD = streamApp
|
PROD = streamApp
|
||||||
DBD = streamApp.dbd
|
DBD = streamApp.dbd
|
||||||
|
|
||||||
@ -41,11 +39,11 @@ endif
|
|||||||
ifneq ($(words $(CALC) $(SYNAPPS)), 0)
|
ifneq ($(words $(CALC) $(SYNAPPS)), 0)
|
||||||
# With synApps scalcout record
|
# With synApps scalcout record
|
||||||
streamApp_DBD += calcSupport.dbd
|
streamApp_DBD += calcSupport.dbd
|
||||||
streamApp_DBD += streamSynApps.dbd
|
|
||||||
PROD_LIBS += calc
|
PROD_LIBS += calc
|
||||||
# older calc versions require sscan
|
# older calc versions require sscan
|
||||||
#PROD_LIBS += sscan
|
ifneq ($(words $(SSCAN) $(SYNAPPS)), 0)
|
||||||
PROD_LIBS_DEFAULT += streamSynApps
|
PROD_LIBS += sscan
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
streamApp_DBD += stream.dbd
|
streamApp_DBD += stream.dbd
|
||||||
|
Reference in New Issue
Block a user