Experimental Physics and
| |||||||||||||||
|
Right. I was just able to compile successfully with these in my Makefile:testSupport_SRCS += DI-2108-P.cpp testSupport_SYS_LIBS += usb-1.0 TOP=../.. include $(TOP)/configure/CONFIG #---------------------------------------- # ADD MACRO DEFINITIONS BELOW HERE # xxxRecord.h will be created from xxxRecord.dbd DBDINC += xxxRecord # Install xxxSupport.dbd into <top>/dbd DBD += xxxSupport.dbd # Build an IOC support library LIBRARY_IOC += testSupport # Compile and add the code to the support library testSupport_SRCS += xxxRecord.c testSupport_SRCS += devXxxSoft.c testSupport_SRCS += DI-2108-P.cpp # Link locally-provided code into the support library, # rather than directly into the IOC application. # This is required for Windows DLL builds. testSupport_SRCS += dbSubExample.c testSupport_SRCS += testHello.c testSupport_SRCS += initTrace.c testSupport_SYS_LIBS += usb-1.0 testSupport_LIBS += $(EPICS_BASE_IOC_LIBS) # Build the IOC application PROD_IOC = test # test.dbd will be created and installed DBD += test.dbd # test.dbd will include these files: test_DBD += base.dbd test_DBD += xxxSupport.dbd test_DBD += dbSubExample.dbd test_DBD += testHello.dbd test_DBD += initTrace.dbd # test_registerRecordDeviceDriver.cpp derives from test.dbd test_SRCS += test_registerRecordDeviceDriver.cpp # Build the main IOC entry point where needed test_SRCS_DEFAULT += testMain.cpp test_SRCS_vxWorks += -nil- # Add support from base/src/vxWorks if needed #test_OBJS_vxWorks += $(EPICS_BASE_BIN)/vxComLibrary # Link in the code from our support library test_LIBS += testSupport On Fri, Jun 23, 2017 at 4:45 AM, Hinko Kocevar <[email protected]> wrote:
-- Mike Westfall Control Systems Software Engineer
| ||||||||||||||
ANJ, 21 Dec 2017 |
·
Home
·
News
·
About
·
Base
·
Modules
·
Extensions
·
Distributions
·
Download
·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing · |