From fb956acdf256c58511fc9089cd3d2abc2122e0a1 Mon Sep 17 00:00:00 2001 From: Ron Sluiter Date: Tue, 8 Sep 2009 18:46:10 +0000 Subject: [PATCH] Moving to listing *.dbd's in Makefile. --- motorExApp/WithAsyn/LdevNewport.dbd | 25 ++++++ motorExApp/WithAsyn/LdevNewportTS.dbd | 6 ++ motorExApp/WithAsyn/Makefile | 117 +++++++++++++++----------- motorExApp/WithAsyn/MiscVx.dbd | 4 + 4 files changed, 101 insertions(+), 51 deletions(-) create mode 100644 motorExApp/WithAsyn/LdevNewport.dbd create mode 100644 motorExApp/WithAsyn/LdevNewportTS.dbd create mode 100644 motorExApp/WithAsyn/MiscVx.dbd diff --git a/motorExApp/WithAsyn/LdevNewport.dbd b/motorExApp/WithAsyn/LdevNewport.dbd new file mode 100644 index 00000000..4bf17a5c --- /dev/null +++ b/motorExApp/WithAsyn/LdevNewport.dbd @@ -0,0 +1,25 @@ +# This is a partial, local copy of devNewport.dbd used to illustrate how *.dbd +# specification can be moved to the Makefile. + +device(motor,VME_IO,devMM3000,"MM3000") +device(motor,VME_IO,devMM4000,"MM4000") +device(motor,VME_IO,devPM500, "PM500") +device(motor,VME_IO,devESP300,"ESP300") +driver(drvMM3000) +driver(drvMM4000) +driver(drvPM500) +driver(drvESP300) +driver(motorXPS) +driver(motorMM4000) +registrar(NewportRegister) +registrar(XPSGatheringRegister) +registrar(XPSRegister) +registrar(XPSInterposeRegister) +registrar(drvXPSAsynAuxRegister) +#variable(devXPSC8Debug) +#variable(drvXPSC8Debug) +#variable(drvESP300debug) +#variable(drvMM3000debug) +#variable(drvMM4000debug) +#variable(drvPM500debug) + diff --git a/motorExApp/WithAsyn/LdevNewportTS.dbd b/motorExApp/WithAsyn/LdevNewportTS.dbd new file mode 100644 index 00000000..fcf5c9e8 --- /dev/null +++ b/motorExApp/WithAsyn/LdevNewportTS.dbd @@ -0,0 +1,6 @@ +# This is a partial, local copy of devNewport.dbd used to illustrate how *.dbd +# specification can be moved to the Makefile. + +registrar(MM4005_trajectoryScanRegistrar) +registrar(XPS_trajectoryScanRegistrar) + diff --git a/motorExApp/WithAsyn/Makefile b/motorExApp/WithAsyn/Makefile index 8b46a8ef..325c37fc 100644 --- a/motorExApp/WithAsyn/Makefile +++ b/motorExApp/WithAsyn/Makefile @@ -1,72 +1,87 @@ # "#!" marks lines that can be uncommented. -# Choice either IPAC R2.5 and below, or, R2.6 -# and above. The default is IPAC R2.6 and above. # Makefile TOP = ../.. include $(TOP)/configure/CONFIG -ifeq ($(OS_CLASS), vxWorks) -DBD += WithAsynVx.dbd -endif -DBD += WithAsyn.dbd - PROD_IOC_DEFAULT = WithAsyn PROD_IOC_vxWorks = WithAsynVx -WithAsyn_SRCS += WithAsyn_registerRecordDeviceDriver.cpp -WithAsynVx_SRCS += WithAsynVx_registerRecordDeviceDriver.cpp -WithAsyn_SRCS_DEFAULT += WithAsynMain.cpp +COMMONDBDS = base.dbd +COMMONDBDS += motorSupport.dbd +COMMONDBDS += devAcsMotor.dbd +COMMONDBDS += devImsMotor.dbd +COMMONDBDS += devMclennanMotor.dbd +COMMONDBDS += devMicos.dbd +COMMONDBDS += devMicroMo.dbd +COMMONDBDS += LdevNewport.dbd +ifdef SNCSEQ +COMMONDBDS += LdevNewportTS.dbd +endif +COMMONDBDS += devPIMotor.dbd +COMMONDBDS += devOms.dbd +COMMONDBDS += devSoftMotor.dbd +COMMONDBDS += motorSimSupport.dbd +COMMONDBDS += devSmartMotorMotor.dbd +COMMONDBDS += devKohzuMotor.dbd +COMMONDBDS += devAttocube.dbd +COMMONDBDS += devAerotech.dbd +COMMONDBDS += drvAsynSerialPort.dbd + +DBD += WithAsyn.dbd +WithAsyn_DBD += $(COMMONDBDS) +ifdef SNCSEQ +WithAsyn_DBD += devSequencer.dbd +endif + +ifeq ($(OS_CLASS), vxWorks) +DBD += WithAsynVx.dbd +WithAsynVx_DBD += $(COMMONDBDS) +#!WithAsynVx_DBD += drvGsIP488.dbd +ifdef IPAC +WithAsynVx_DBD += MiscVx.dbd +endif +endif + +WithAsyn_SRCS += WithAsyn_registerRecordDeviceDriver.cpp +WithAsyn_SRCS_DEFAULT += WithAsynMain.cpp +WithAsynVx_SRCS += WithAsynVx_registerRecordDeviceDriver.cpp -# Support from EPICS base WithAsyn_OBJS_vxWorks += $(EPICS_BASE_BIN)/vxComLibrary -# Support from IPAC R2.5 and below. -#!WithAsynVx_LDOBJS_vxWorks += $(IPAC_BIN)/ipacLib -#!WithAsynVx_OBJS_vxWorks += $(IPAC_BIN)/tyGSOctal +COMMONLIBS += Aerotech +COMMONLIBS += Attocube +COMMONLIBS += oms +COMMONLIBS += Mclennan +COMMONLIBS += Micos +COMMONLIBS += MicroMo +COMMONLIBS += PI +COMMONLIBS += Acs +COMMONLIBS += Ims +COMMONLIBS += Newport +COMMONLIBS += softMotor +COMMONLIBS += motorSimSupport +COMMONLIBS += SmartMotor +COMMONLIBS += KohzuMotor +COMMONLIBS += motor -#!WithAsyn_LIBS += Aerotech -#!WithAsyn_LIBS += Attocube -#!WithAsyn_LIBS += oms -#!WithAsyn_LIBS += Mclennan -#!WithAsyn_LIBS += Micos -#!WithAsyn_LIBS += MicroMo -#!WithAsyn_LIBS += PI -#!WithAsyn_LIBS += Acs -#!WithAsyn_LIBS += Ims -#!WithAsyn_LIBS += Newport -#!WithAsyn_LIBS += softMotor -#!WithAsyn_LIBS += motorSimSupport -#!WithAsyn_LIBS += SmartMotor -#!WithAsyn_LIBS += KohzuMotor -WithAsyn_LIBS += motor -WithAsyn_LIBS += asyn # Needed for Newport SNL programs -#!WithAsyn_LIBS += seq pv -WithAsyn_LIBS += $(EPICS_BASE_IOC_LIBS) +WithAsyn_LIBS += $(COMMONLIBS) +WithAsyn_LIBS += asyn +ifdef SNCSEQ +WithAsyn_LIBS += seqDev seq pv +endif +WithAsyn_LIBS += $(EPICS_BASE_IOC_LIBS) -WithAsynVx_LIBS += Aerotech -WithAsynVx_LIBS += Attocube -#!WithAsynVx_LIBS += oms -#!WithAsynVx_LIBS += Mclennan -#!WithAsynVx_LIBS += Micos -#!WithAsynVx_LIBS += MicroMo -#!WithAsynVx_LIBS += PI -#!WithAsynVx_LIBS += Acs -#!WithAsynVx_LIBS += Ims -#!WithAsynVx_LIBS += Newport -#!WithAsynVx_LIBS += softMotor -#!WithAsynVx_LIBS += motorSimSupport -#!WithAsynVx_LIBS += SmartMotor -#!WithAsynVx_LIBS += KohzuMotor -WithAsynVx_LIBS += motor - -# Support from IPAC R2.6 and above. +WithAsynVx_LIBS += $(COMMONLIBS) +ifdef IPAC WithAsynVx_LIBS += Ipac TyGSOctal - +endif WithAsynVx_LIBS += asyn # Needed for Newport SNL programs -#!WithAsynVx_LIBS += seq pv +ifdef SNCSEQ +WithAsynVx_LIBS += seqDev seq pv +endif WithAsynVx_LIBS += $(EPICS_BASE_IOC_LIBS) include $(TOP)/configure/RULES diff --git a/motorExApp/WithAsyn/MiscVx.dbd b/motorExApp/WithAsyn/MiscVx.dbd new file mode 100644 index 00000000..a08fbe6b --- /dev/null +++ b/motorExApp/WithAsyn/MiscVx.dbd @@ -0,0 +1,4 @@ +driver(drvIpac) +registrar(tvme200Registrar) +registrar(vipc616Registrar) +registrar(tyGSOctalRegistrar)