Skip to content
Snippets Groups Projects
Commit b15d13a6 authored by mooney's avatar mooney
Browse files

Make the .dbd file generation much more sensitive to which modules are in...

Make the .dbd file generation much more sensitive to which modules are in configure/RELEASE, and pair link libraries with dbd files.
parent 165b44c5
No related branches found
No related tags found
No related merge requests found
...@@ -34,159 +34,251 @@ PROD_IOC = xxx ...@@ -34,159 +34,251 @@ PROD_IOC = xxx
# Note that the order in which .dbd files are added to a list variable # Note that the order in which .dbd files are added to a list variable
# doesn't matter, but the order of libraries does. # doesn't matter, but the order of libraries does.
# <name>.dbd will be created from <name>Include.dbd ##################################################################
ifeq (win32-x86,$(findstring win32-x86, $(T_A))) # First, define xxx_Common_DBD and xxx_Common_LIBS from the modules
DBD += iocxxxWin32.dbd # defined in RELEASE
iocxxxWin32_DBD += xxxCommonInclude.dbd ##################################################################
DBD += xxx_Common.dbd
xxx_Common_DBD += base.dbd
ifdef AREA_DETECTOR
xxx_Common_DBD += ADSupport.dbd NDFileNetCDF.dbd
xxx_Common_LIBS += ADBase NDPlugin netCDF ADBase
xxx_Common_DBD += simDetectorSupport.dbd commonDriverSupport.dbd
xxx_Common_LIBS += simDetector
endif
ifdef ASYN
xxx_Common_DBD += asyn.dbd drvAsynSerialPort.dbd
xxx_Common_DBD += drvAsynIPPort.dbd drvVxi11.dbd devGpib.dbd
xxx_Common_LIBS += asyn
endif
ifdef STD
xxx_Common_DBD += stdSupport.dbd
xxx_Common_LIBS += std
endif
ifdef CALC
xxx_Common_DBD += calcSupport.dbd
xxx_Common_LIBS += calc
endif
ifdef BUSY
xxx_Common_DBD += busySupport.dbd
xxx_Common_LIBS += busy
endif
ifdef SSCAN
xxx_Common_DBD += sscanSupport.dbd
xxx_Common_LIBS += sscan
ifdef SNCSEQ
xxx_Common_DBD += sscanProgressSupport.dbd
xxx_Common_LIBS += scanProgress
endif
endif
ifdef AUTOSAVE
xxx_Common_DBD += asSupport.dbd
xxx_Common_LIBS += autosave
endif
ifdef OPTICS
xxx_Common_DBD += opticsSupport.dbd
xxx_Common_LIBS += optics
endif
ifdef MCA
xxx_Common_DBD += mcaSupport.dbd
xxx_Common_LIBS += mca
endif
ifdef IP
xxx_Common_DBD += ipSupport.dbd
xxx_Common_LIBS += ip
endif
ifdef QUADEM
xxx_Common_DBD += drvAHxxx.dbd
xxx_Common_LIBS += quadEM
endif
ifdef MOTOR
xxx_Common_DBD += motorSupport.dbd devAcsMotor.dbd devAerotech.dbd
xxx_Common_DBD += devAttocube.dbd devFaulhaberMotor.dbd devImsMotor.dbd
xxx_Common_DBD += devKohzuMotor.dbd devMclennanMotor.dbd devMicos.dbd
xxx_Common_DBD += devMicroMo.dbd devNewFocus.dbd devNewport.dbd
xxx_Common_DBD += devOriel.dbd devPC6K.dbd devPIJena.dbd devPIMotor.dbd
xxx_Common_DBD += devSPiiPlus.dbd devSmartMotorMotor.dbd devSoftMotor.dbd
xxx_Common_DBD += devThorLabs.dbd motorRecord.dbd motorSimSupport.dbd
xxx_Common_LIBS += Acs acsTech80 Aerotech Attocube Faulhaber Ims KohzuMotor
xxx_Common_LIBS += Mclennan Micos MicroMo NewFocus Newport Oriel PI PIJena
xxx_Common_LIBS += Parker SmartMotor ThorLabs softMotor motorSimSupport
xxx_Common_LIBS += motor
endif
ifdef SNCSEQ
xxx_Common_DBD += devSequencer.dbd
xxx_Common_LIBS += seqDev seq pv
endif
ifdef STREAM
xxx_Common_DBD += stream.dbd streamSynApps.dbd
xxx_Common_LIBS += stream streamSynApps
endif
ifdef DEVIOCSTATS
xxx_Common_DBD += devIocStats.dbd iocAdmin.dbd
xxx_Common_LIBS += devIocStats
endif
xxx_Common_LIBS += $(EPICS_BASE_IOC_LIBS)
# If your host supports libpcap and libnet and you want to build Canberra network ##################################################################
# support uncomment the following line
#iocxxxWin32_DBD += mcaCanberraSupport.dbd
# If you want to build parallel port or USB interfaces to Saturn and/or xMAP DXP
# then uncomment the following lines
iocxxxWin32_DBD += dxpSupport.dbd
iocxxxWin32_DBD += ADSupport.dbd NDFileNetCDF.dbd
xxx_LIBS_WIN32 += dxp handel
xxx_LIBS_WIN32 += ADBase NDPlugin netCDF
xxx_LIBS_WIN32 += DLPORTIO PlxApi
xxx_SYS_LIBS_WIN32 += setupapi
ifdef DEVIOCSTATS ifeq (win32-x86,$(findstring win32-x86, $(T_A)))
iocxxxWin32_DBD += devIocStats.dbd iocAdmin.dbd
DBD += iocxxxWin32.dbd
iocxxxWin32_DBD += xxx_Common.dbd
ifdef MCA
# If your host supports libpcap and libnet and you want to build
# Canberra network support uncomment the following lines
#iocxxxWin32_DBD += mcaCanberraSupport.dbd
#xxx_LIBS_WIN32 += mcaCanberra
#xxx_SYS_LIBS_WIN32 += net pcap
endif
ifdef DXP
# If you want to build parallel port or USB interfaces to Saturn and/or
# xMAP DXP,
then uncomment the following lines
iocxxxWin32_DBD += dxpSupport.dbd
xxx_LIBS_WIN32 += dxp handel
xxx_LIBS_WIN32 += DLPORTIO PlxApi
xxx_SYS_LIBS_WIN32 += setupapi
endif endif
endif endif
ifeq (windows-x64,$(findstring windows-x64, $(T_A))) ifeq (windows-x64,$(findstring windows-x64, $(T_A)))
DBD += iocxxxWin64.dbd DBD += iocxxxWin64.dbd
iocxxxWin64_DBD += xxxCommonInclude.dbd iocxxxWin64_DBD += xxx_Common.dbd
# If your host supports libpcap and libnet and you want to build Canberra network ifdef MCA
# support uncomment the following line # If your host supports libpcap and libnet and you want to build Canberra network
iocxxxWin32_DBD += mcaCanberraSupport.dbd # support uncomment the following line
iocxxxWin64_DBD += mcaCanberraSupport.dbd
ifdef DEVIOCSTATS xxx_LIBS_WIN64 += mcaCanberra
iocxxxWin32_DBD += devIocStats.dbd iocAdmin.dbd xxx_SYS_LIBS_WIN64 += net pcap
endif endif
endif endif
ifeq ($(EPICS_HOST_ARCH), cygwin-x86) ifeq ($(EPICS_HOST_ARCH), cygwin-x86)
DBD += iocxxxCygwin.dbd DBD += iocxxxCygwin.dbd
iocxxxCygwin_DBD += xxxCommonInclude.dbd iocxxxCygwin_DBD += xxx_Common.dbd
# for simDetector
iocxxxCygwin_DBD += ADSupport.dbd NDFileNetCDF.dbd ifdef DXP
xxx_LIBS_cygwin32 += ADBase NDPlugin netCDF # If you want to build parallel port or USB interfaces to Saturn and/or
iocxxxCygwin_DBD += simDetectorSupport.dbd commonDriverSupport.dbd # xMAP DXP,then uncomment the following lines
xxx_LIBS_cygwin32 += simDetector #iocxxxCygwin_DBD += dxpSupport.dbd
#xxx_LIBS_cygwin32 += dxp handel
# If you want to build parallel port or USB interfaces to Saturn and/or xMAP DXP #xxx_SYS_LIBS_cygwin32 += DLPORTIO PlxApi setupapi
# then uncomment the following six lines endif
#iocxxxCygwin_DBD += dxpSupport.dbd
#iocxxxCygwin_DBD += ADSupport.dbd NDFileNetCDF.dbd
#xxx_LIBS_cygwin32 += dxp handel
#xxx_LIBS_cygwin32 += ADBase NDPlugin netCDF
#xxx_SYS_LIBS_cygwin32 += DLPORTIO PlxApi
#xxx_SYS_LIBS_cygwin32 += setupapi
xxx_SYS_LIBS_cygwin32 += $(CYGWIN_RPC_LIB) xxx_SYS_LIBS_cygwin32 += $(CYGWIN_RPC_LIB)
ifdef DEVIOCSTATS
iocxxxCygwin_DBD += devIocStats.dbd iocAdmin.dbd
endif
endif endif
ifeq (vxWorks,$(findstring vxWorks, $(T_A))) ifeq (vxWorks,$(findstring vxWorks, $(T_A)))
DBD += iocxxxVX.dbd DBD += iocxxxVX.dbd
#iocxxxVX_DBD += iocxxxVXInclude.dbd iocxxxVX_DBD += xxx_Common.dbd
iocxxxVX_DBD += xxxCommonInclude.dbd ifdef ALLEN_BRADLEY
xxx_LIBS_vxWorks += allenBradley
iocxxxVX_DBD += NDFileNetCDF.dbd endif
iocxxxVX_DBD += simDetectorSupport.dbd ADSupport.dbd NDPluginSupport.dbd ifdef VME
xxx_LIBS_vxWorks += ADBase NDPlugin netCDF ADBase iocxxxVX_DBD += vmeVXSupport.dbd
xxx_LIBS_vxWorks += simDetector xxx_LIBS_vxWorks += vme
endif
ifdef STD
iocxxxVX_DBD += vmeVXSupport.dbd iocxxxVX_DBD += stdVXSupport.dbd
iocxxxVX_DBD += stdVXSupport.dbd endif
iocxxxVX_DBD += ipVXSupport.dbd ifdef IP
iocxxxVX_DBD += SIS38XXSupport.dbd iocxxxVX_DBD += ipVXSupport.dbd
iocxxxVX_DBD += ipUnidigSupport.dbd endif
iocxxxVX_DBD += dac128VSupport.dbd ifdef MCA
iocxxxVX_DBD += ip330Support.dbd iocxxxVX_DBD += SIS38XXSupport.dbd
ifdef CAMAC iocxxxVX_DBD += mcaCanberraSupport.dbd
iocxxxVX_DBD += camacSupport.dbd xxx_LIBS_vxWorks += SIS38XX
iocxxxVX_DBD += devCamacSupport.dbd xxx_LIBS_vxWorks += mcaCanberra
endif endif
ifdef ALLEN_BRADLEY ifdef IPUNIDIG
iocxxxVX_DBD += allenBradley.dbd iocxxxVX_DBD += ipUnidigSupport.dbd
endif xxx_LIBS_vxWorks += ipUnidig
iocxxxVX_DBD += drvAPS_EM.dbd endif
iocxxxVX_DBD += mcaCanberraSupport.dbd ifdef DAC128V
iocxxxVX_DBD += devLove.dbd iocxxxVX_DBD += dac128VSupport.dbd
# from ipac xxx_LIBS_vxWorks += dac128V
iocxxxVX_DBD += tyGSOctal.dbd endif
iocxxxVX_DBD += drvIpac.dbd ifdef IP330
# from asyn iocxxxVX_DBD += ip330Support.dbd
iocxxxVX_DBD += drvGsIP488.dbd xxx_LIBS_vxWorks += ip330
ifndef DEVIOCSTATS endif
iocxxxVX_DBD += vxStats.dbd ifdef CAMAC
iocxxxVX_DBD += camacSupport.dbd
iocxxxVX_DBD += devCamacSupport.dbd
xxx_LIBS_vxWorks += camac devCamac
endif
ifdef ALLEN_BRADLEY
iocxxxVX_DBD += allenBradley.dbd
endif
ifdef QUADEM
iocxxxVX_DBD += drvAPS_EM.dbd
endif
ifdef LOVE
iocxxxVX_DBD += devLove.dbd
xxx_LIBS_vxWorks += love
endif
ifdef IPAC
iocxxxVX_DBD += tyGSOctal.dbd
iocxxxVX_DBD += drvIpac.dbd
xxx_LIBS_vxWorks += TyGSOctal Ipac
endif
ifdef ASYN
iocxxxVX_DBD += drvGsIP488.dbd
endif
ifdef SOFTGLUE
iocxxxVX_DBD += softGlueSupport.dbd
xxx_LIBS_vxWorks += softGlue
endif
ifdef MOTOR
iocxxxVX_DBD += devDeltaTau.dbd
iocxxxVX_DBD += devOms.dbd
xxx_LIBS_vxWorks += oms DeltaTau
endif endif
iocxxxVX_DBD += softGlueSupport.dbd
# from motor
iocxxxVX_DBD += devDeltaTau.dbd
iocxxxVX_DBD += devOms.dbd
ifdef DEVIOCSTATS ifdef DEVIOCSTATS
iocxxxVX_DBD += devIocStats.dbd iocAdmin.dbd
iocxxxVX_DBD += devVxStats.dbd iocxxxVX_DBD += devVxStats.dbd
endif endif
endif endif
ifneq (,$(findstring linux, $(T_A))) ifneq (,$(findstring linux, $(T_A)))
DBD += iocxxxLinux.dbd DBD += iocxxxLinux.dbd
iocxxxLinux_DBD += xxxCommonInclude.dbd iocxxxLinux_DBD += xxx_Common.dbd
iocxxxLinux_DBD += ADSupport.dbd NDFileNetCDF.dbd
xxx_LIBS_Linux += ADBase NDPlugin netCDF ifdef MCA
iocxxxLinux_DBD += simDetectorSupport.dbd commonDriverSupport.dbd # If your host supports libpcap and libnet and you want to build Canberra network
xxx_LIBS_Linux += simDetector # support, set LINUX_NET_INSTALLED to YES in <synApps>/configure/CONFIG_SITE.
ifeq ($(LINUX_NET_INSTALLED), YES)
# If your host supports libpcap and libnet and you want to build Canberra network iocxxxLinux_DBD += mcaCanberraSupport.dbd
# support, set LINUX_NET_INSTALLED to YES in <synApps>/configure/CONFIG_SITE. xxx_LIBS_Linux += mcaCanberra
ifeq ($(LINUX_NET_INSTALLED), YES) xxx_SYS_LIBS_Linux += net pcap
iocxxxLinux_DBD += mcaCanberraSupport.dbd endif
xxx_LIBS_Linux += mcaCanberra
xxx_SYS_LIBS_Linux += net pcap
endif
# If your host supports parallel port or USB interfaces to Saturn DXP, set
# LINUX_USB_INSTALLED to YES in <synApps>/configure/CONFIG_SITE.
ifeq ($(LINUX_USB_INSTALLED), YES)
iocxxxLinux_DBD += dxpSupport.dbd
xxx_LIBS_Linux += dxp handel
xxx_SYS_LIBS_Linux += usb
endif endif
ifdef DEVIOCSTATS ifdef DXP
iocxxxLinux_DBD += devIocStats.dbd iocAdmin.dbd # If your host supports parallel port or USB interfaces to Saturn DXP, set
endif # LINUX_USB_INSTALLED to YES in <synApps>/configure/CONFIG_SITE.
endif ifeq ($(LINUX_USB_INSTALLED), YES)
iocxxxLinux_DBD += dxpSupport.dbd
ifeq ($(OS_CLASS), solaris) xxx_LIBS_Linux += dxp handel
DBD += iocxxx_solaris.dbd xxx_SYS_LIBS_Linux += usb
iocxxx_solaris_DBD += xxxCommonInclude.dbd endif
ifdef DEVIOCSTATS
iocxxx_solaris_DBD += devIocStats.dbd iocAdmin.dbd
xxx_SYS_LIBS_solaris += kstat
endif endif
endif endif
ifeq ($(OS_CLASS), Darwin) ifeq ($(OS_CLASS), Darwin)
DBD += iocxxxDarwin.dbd DBD += iocxxxDarwin.dbd
iocxxxDarwin_DBD += xxxCommonInclude.dbd iocxxxDarwin_DBD += xxx_Common.dbd
ifdef DEVIOCSTATS
iocxxxDarwin_DBD += devIocStats.dbd iocAdmin.dbd
endif
endif endif
...@@ -204,45 +296,7 @@ xxx_SRCS_cygwin32 += iocxxxCygwin_registerRecordDeviceDriver.cpp xxxMain.cpp ...@@ -204,45 +296,7 @@ xxx_SRCS_cygwin32 += iocxxxCygwin_registerRecordDeviceDriver.cpp xxxMain.cpp
xxx_SRCS_solaris += iocxxx_solaris_registerRecordDeviceDriver.cpp xxxMain.cpp xxx_SRCS_solaris += iocxxx_solaris_registerRecordDeviceDriver.cpp xxxMain.cpp
xxx_SRCS_Darwin += iocxxxDarwin_registerRecordDeviceDriver.cpp xxxMain.cpp xxx_SRCS_Darwin += iocxxxDarwin_registerRecordDeviceDriver.cpp xxxMain.cpp
xxx_Common_LIBS += mca
xxx_Common_LIBS += calc
xxx_Common_LIBS += busy
xxx_Common_LIBS += sscan scanProgress
xxx_Common_LIBS += autosave
xxx_Common_LIBS += optics
xxx_Common_LIBS += std
xxx_Common_LIBS += ip
xxx_Common_LIBS += quadEM
xxx_Common_LIBS += Acs acsTech80 Aerotech Attocube Faulhaber Ims KohzuMotor Mclennan
xxx_Common_LIBS += Micos MicroMo NewFocus Newport Oriel PI PIJena Parker SmartMotor
xxx_Common_LIBS += ThorLabs softMotor motorSimSupport motor
xxx_Common_LIBS += asyn
xxx_Common_LIBS += stream streamSynApps
xxx_Common_LIBS += seqDev seq pv
xxx_Common_LIBS += $(EPICS_BASE_IOC_LIBS)
ifdef DEVIOCSTATS
xxx_Common_LIBS += devIocStats
endif
ifdef ALLEN_BRADLEY
xxx_LIBS_vxWorks += allenBradley
endif
xxx_LIBS_vxWorks += SIS38XX
xxx_LIBS_vxWorks += mcaCanberra
xxx_LIBS_vxWorks += ip330
xxx_LIBS_vxWorks += ipUnidig
xxx_LIBS_vxWorks += dac128V
ifdef CAMAC
xxx_LIBS_vxWorks += camac devCamac
endif
xxx_LIBS_vxWorks += love
ifndef DEVIOCSTATS
xxx_LIBS_vxWorks += vxStats
endif
xxx_LIBS_vxWorks += vme
xxx_LIBS_vxWorks += TyGSOctal Ipac
xxx_LIBS_vxWorks += oms DeltaTau
xxx_LIBS_vxWorks += softGlue
#The following adds support from base/src/vxWorks #The following adds support from base/src/vxWorks
xxx_OBJS_vxWorks += $(EPICS_BASE_BIN)/vxComLibrary xxx_OBJS_vxWorks += $(EPICS_BASE_BIN)/vxComLibrary
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment