change macroname to simplify PSI GNUmakefile
This commit is contained in:
36
GNUmakefile
36
GNUmakefile
@ -7,35 +7,16 @@ EXCLUDE_VERSIONS = 3.13.2
|
|||||||
PROJECT=stream
|
PROJECT=stream
|
||||||
BUILDCLASSES += Linux
|
BUILDCLASSES += Linux
|
||||||
|
|
||||||
#DOCUDIR = doc
|
DOCUDIR = doc
|
||||||
|
|
||||||
BUSSES += AsynDriver
|
PCRE=1
|
||||||
BUSSES += Dummy
|
ASYN=1
|
||||||
|
-include src/CONFIG_STREAM
|
||||||
|
|
||||||
FORMATS += Enum
|
SOURCES += $(RECORDS:%=src/dev%Stream.c)
|
||||||
FORMATS += BCD
|
|
||||||
FORMATS += Raw
|
|
||||||
FORMATS += RawFloat
|
|
||||||
FORMATS += Binary
|
|
||||||
FORMATS += Checksum
|
|
||||||
FORMATS += Regexp
|
|
||||||
FORMATS += MantissaExponent
|
|
||||||
FORMATS += Timestamp
|
|
||||||
|
|
||||||
RECORDTYPES += aai aao
|
|
||||||
RECORDTYPES += ao ai
|
|
||||||
RECORDTYPES += bo bi
|
|
||||||
RECORDTYPES += mbbo mbbi
|
|
||||||
RECORDTYPES += mbboDirect mbbiDirect
|
|
||||||
RECORDTYPES += longout longin
|
|
||||||
RECORDTYPES += stringout stringin
|
|
||||||
RECORDTYPES += waveform
|
|
||||||
|
|
||||||
SOURCES += $(RECORDTYPES:%=src/dev%Stream.c)
|
|
||||||
SOURCES += $(FORMATS:%=src/%Converter.cc)
|
SOURCES += $(FORMATS:%=src/%Converter.cc)
|
||||||
SOURCES += $(BUSSES:%=src/%Interface.cc)
|
SOURCES += $(BUSSES:%=src/%Interface.cc)
|
||||||
SOURCES += $(wildcard src/Stream*.cc)
|
SOURCES += $(STREAM_SRCS:%=src/%)
|
||||||
SOURCES += src/StreamVersion.c
|
|
||||||
|
|
||||||
HEADERS += devStream.h
|
HEADERS += devStream.h
|
||||||
HEADERS += StreamFormat.h
|
HEADERS += StreamFormat.h
|
||||||
@ -43,10 +24,6 @@ HEADERS += StreamFormatConverter.h
|
|||||||
HEADERS += StreamBuffer.h
|
HEADERS += StreamBuffer.h
|
||||||
HEADERS += StreamError.h
|
HEADERS += StreamError.h
|
||||||
|
|
||||||
ifneq (${EPICS_BASETYPE},3.13)
|
|
||||||
RECORDTYPES += calcout
|
|
||||||
endif
|
|
||||||
|
|
||||||
StreamCore.o: streamReferences
|
StreamCore.o: streamReferences
|
||||||
|
|
||||||
streamReferences:
|
streamReferences:
|
||||||
@ -58,4 +35,3 @@ streamSup.dbd:
|
|||||||
@echo Creating $@
|
@echo Creating $@
|
||||||
perl ../src/makedbd.pl $(RECORDTYPES) > $@
|
perl ../src/makedbd.pl $(RECORDTYPES) > $@
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
@ -3,17 +3,17 @@
|
|||||||
|
|
||||||
# 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$(RECORDTYPE)Stream.c
|
||||||
|
|
||||||
RECORDS += ao ai
|
RECORDTYPES += ao ai
|
||||||
RECORDS += bo bi
|
RECORDTYPES += bo bi
|
||||||
RECORDS += mbbo mbbi
|
RECORDTYPES += mbbo mbbi
|
||||||
RECORDS += mbboDirect mbbiDirect
|
RECORDTYPES += mbboDirect mbbiDirect
|
||||||
RECORDS += longout longin
|
RECORDTYPES += longout longin
|
||||||
RECORDS += stringout stringin
|
RECORDTYPES += stringout stringin
|
||||||
RECORDS += waveform
|
RECORDTYPES += waveform
|
||||||
RECORDS += calcout
|
RECORDTYPES += calcout
|
||||||
RECORDS += aai aao
|
RECORDTYPES += 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
|
||||||
@ -23,16 +23,18 @@ RECORDS += aai aao
|
|||||||
# modules before building 'calc'.
|
# 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
|
SYNAPPS_RECORDTYPES += scalcout
|
||||||
|
|
||||||
# You may add more bus interfaces
|
# You may add more bus interfaces
|
||||||
# This requires the naming convention
|
# This requires the naming convention
|
||||||
# $(BUS)Interface.cc
|
# $(BUS)Interface.cc
|
||||||
# asynDriver interface is added automatically
|
# asynDriver interface is added if ASYN is defined in your RELEASE file.
|
||||||
# if ASYN is defined in your RELEASE file.
|
|
||||||
|
|
||||||
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
|
||||||
|
15
src/Makefile
15
src/Makefile
@ -40,13 +40,8 @@ DBD += $(LIBRARY_DEFAULT).dbd
|
|||||||
|
|
||||||
ifdef ASYN
|
ifdef ASYN
|
||||||
LIB_LIBS += asyn
|
LIB_LIBS += asyn
|
||||||
BUSSES += AsynDriver
|
else
|
||||||
endif
|
$(warning Asyn 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)
|
||||||
@ -54,7 +49,7 @@ SRCS += $(LIBRARY_DEFAULT)_registerRecordDeviceDriver.cpp
|
|||||||
endif
|
endif
|
||||||
SRCS += $(BUSSES:%=%Interface.cc)
|
SRCS += $(BUSSES:%=%Interface.cc)
|
||||||
SRCS += $(FORMATS:%=%Converter.cc)
|
SRCS += $(FORMATS:%=%Converter.cc)
|
||||||
SRCS += $(RECORDS:%=dev%Stream.c)
|
SRCS += $(RECORDTYPES:%=dev%Stream.c)
|
||||||
SRCS += $(STREAM_SRCS)
|
SRCS += $(STREAM_SRCS)
|
||||||
|
|
||||||
# find system wide or local PCRE header and library
|
# find system wide or local PCRE header and library
|
||||||
@ -89,9 +84,9 @@ streamReferences: ../CONFIG_STREAM
|
|||||||
$(PERL) ../makeref.pl Interface $(BUSSES) > $@
|
$(PERL) ../makeref.pl Interface $(BUSSES) > $@
|
||||||
$(PERL) ../makeref.pl Converter $(FORMATS) >> $@
|
$(PERL) ../makeref.pl Converter $(FORMATS) >> $@
|
||||||
|
|
||||||
# create stream.dbd from all RECORDS
|
# create stream.dbd from all RECORDTYPES
|
||||||
$(COMMON_DIR)/$(LIBRARY_DEFAULT).dbd: ../CONFIG_STREAM
|
$(COMMON_DIR)/$(LIBRARY_DEFAULT).dbd: ../CONFIG_STREAM
|
||||||
$(PERL) ../makedbd.pl $(RECORDS) > $@
|
$(PERL) ../makedbd.pl $(RECORDTYPES) > $@
|
||||||
|
|
||||||
$(LIBRARY_DEFAULT).dbd$(DEP): ../CONFIG_STREAM
|
$(LIBRARY_DEFAULT).dbd$(DEP): ../CONFIG_STREAM
|
||||||
echo $(LIBRARY_DEFAULT).dbd: $< > $@
|
echo $(LIBRARY_DEFAULT).dbd: $< > $@
|
||||||
|
@ -12,12 +12,12 @@ DBD += $(LIBRARY_DEFAULT).dbd
|
|||||||
ifeq ($(LOADABLE_MODULE),YES)
|
ifeq ($(LOADABLE_MODULE),YES)
|
||||||
SRCS += $(LIBRARY_DEFAULT)_registerRecordDeviceDriver.cpp
|
SRCS += $(LIBRARY_DEFAULT)_registerRecordDeviceDriver.cpp
|
||||||
endif
|
endif
|
||||||
SRCS += $(SYNAPPS_RECORDS:%=dev%Stream.c)
|
SRCS += $(SYNAPPS_RECORDTYPES:%=dev%Stream.c)
|
||||||
|
|
||||||
LIB_LIBS += stream $(EPICS_BASE_IOC_LIBS)
|
LIB_LIBS += stream $(EPICS_BASE_IOC_LIBS)
|
||||||
|
|
||||||
include $(TOP)/configure/RULES
|
include $(TOP)/configure/RULES
|
||||||
|
|
||||||
# create streamSynApps.dbd from all SYNAPPS_RECORDS
|
# create streamSynApps.dbd from all SYNAPPS_RECORDTYPES
|
||||||
$(COMMON_DIR)/$(LIBRARY_DEFAULT).dbd: ../../src/CONFIG_STREAM
|
$(COMMON_DIR)/$(LIBRARY_DEFAULT).dbd: ../../src/CONFIG_STREAM
|
||||||
$(PERL) ../../src/makedbd.pl $(SYNAPPS_RECORDS) > $@
|
$(PERL) ../../src/makedbd.pl $(SYNAPPS_RECORDTYPES) > $@
|
||||||
|
Reference in New Issue
Block a user