change build
Change executable name to softIocPy Also build library pyDevSup#.#
This commit is contained in:
@ -22,33 +22,44 @@ endif
|
|||||||
#=============================
|
#=============================
|
||||||
# Build the IOC application
|
# Build the IOC application
|
||||||
|
|
||||||
PROD_IOC = devsup
|
LIBRARY = pyDevSup$(PY_VER)
|
||||||
# devsup.dbd will be created and installed
|
|
||||||
DBD += devsup.dbd
|
|
||||||
|
|
||||||
# devsup.dbd will be made up from these files:
|
SHRLIB_VERSION = 0
|
||||||
devsup_DBD += base.dbd
|
|
||||||
devsup_DBD += pyDevSup.dbd
|
|
||||||
|
|
||||||
devsup_SYS_LIBS += python$(PY_VER)
|
DBD += pyDevSup.dbd
|
||||||
|
|
||||||
# devsup_registerRecordDeviceDriver.cpp derives from devsup.dbd
|
pyDevSup$(PY_VER)_SYS_LIBS += python$(PY_VER)
|
||||||
devsup_SRCS += devsup_registerRecordDeviceDriver.cpp
|
|
||||||
|
pyDevSup$(PY_VER)_SRCS += setup.c
|
||||||
|
pyDevSup$(PY_VER)_SRCS += dbrec.c
|
||||||
|
pyDevSup$(PY_VER)_SRCS += dbfield.c
|
||||||
|
pyDevSup$(PY_VER)_SRCS += dbdset.c
|
||||||
|
|
||||||
|
|
||||||
|
PROD_IOC = softIocPy
|
||||||
|
# softIocPy.dbd will be created and installed
|
||||||
|
DBD += softIocPy.dbd
|
||||||
|
|
||||||
|
# softIocPy.dbd will be made up from these files:
|
||||||
|
softIocPy_DBD += base.dbd
|
||||||
|
softIocPy_DBD += pyDevSup.dbd
|
||||||
|
|
||||||
|
softIocPy_LIBS += pyDevSup$(PY_VER)
|
||||||
|
|
||||||
|
softIocPy_SYS_LIBS += python$(PY_VER)
|
||||||
|
|
||||||
|
# softIocPy_registerRecordDeviceDriver.cpp derives from softIocPy.dbd
|
||||||
|
softIocPy_SRCS += softIocPy_registerRecordDeviceDriver.cpp
|
||||||
|
|
||||||
# Build the main IOC entry point on workstation OSs.
|
# Build the main IOC entry point on workstation OSs.
|
||||||
devsup_SRCS_DEFAULT += devsupMain.cpp
|
softIocPy_SRCS_DEFAULT += devsupMain.cpp
|
||||||
devsup_SRCS_vxWorks += -nil-
|
softIocPy_SRCS_vxWorks += -nil-
|
||||||
|
|
||||||
devsup_SRCS += setup.c
|
|
||||||
devsup_SRCS += dbrec.c
|
|
||||||
devsup_SRCS += dbfield.c
|
|
||||||
devsup_SRCS += dbdset.c
|
|
||||||
|
|
||||||
# Add support from base/src/vxWorks if needed
|
# Add support from base/src/vxWorks if needed
|
||||||
#devsup_OBJS_vxWorks += $(EPICS_BASE_BIN)/vxComLibrary
|
#softIocPy_OBJS_vxWorks += $(EPICS_BASE_BIN)/vxComLibrary
|
||||||
|
|
||||||
# Finally link to the EPICS Base libraries
|
# Finally link to the EPICS Base libraries
|
||||||
devsup_LIBS += $(EPICS_BASE_IOC_LIBS)
|
softIocPy_LIBS += $(EPICS_BASE_IOC_LIBS)
|
||||||
|
|
||||||
|
|
||||||
PY += devsup/__init__.py
|
PY += devsup/__init__.py
|
||||||
|
6
test.cmd
6
test.cmd
@ -1,9 +1,9 @@
|
|||||||
#!./bin/linux-x86-debug/devsup
|
#!./bin/linux-x86/softIocPy
|
||||||
|
|
||||||
epicsEnvSet("PYTHONPATH", "${PWD}/python:${PWD}/testApp")
|
epicsEnvSet("PYTHONPATH", "${PWD}/python:${PWD}/testApp")
|
||||||
|
|
||||||
dbLoadDatabase("dbd/devsup.dbd")
|
dbLoadDatabase("dbd/softIocPy.dbd")
|
||||||
devsup_registerRecordDeviceDriver(pdbbase)
|
softIocPy_registerRecordDeviceDriver(pdbbase)
|
||||||
|
|
||||||
#py "import devsup.hooks"
|
#py "import devsup.hooks"
|
||||||
#py "devsup.hooks.debugHooks()"
|
#py "devsup.hooks.debugHooks()"
|
||||||
|
Reference in New Issue
Block a user