Experimental Physics and
| |||||||||||||||
|
I believe something like the following would work. Given: edm sources in /epics/supTop/extensions/src/edm cd /epics/supTop/extensions/src mkdir edmPrivateExtensions cd edmPrivateExtensions mkdir <somedir> cp ../edm/Makefile . edit Makefile so that only <somedir> is referenced i.e. remove all DIRS += lines add DIRS += <somedir> cd <somedir> cp ../../edm/locPv/Makefile . edit makefile and change the library reference and the locpv support files names to your own i.e. change LIBRARY = Loc to LIBRARY = SomeType change LIB_SRCS += loc_pv_factory.cc to LIB_SRCS += some_type_pv_factory.cc change LIB_SRCS += regLoc.cc LIB_SRCS += regSomeType.cc Currently, you also need access to lib/edm.version and lib/environment.str cd /epics/supTop/extensions/src/edmPrivateExtensions mkdir lib cd lib ln -s ../../edm/lib/edm.version . ln -s ../../edm/lib/environment.str . I guess you could alternatively do ln -s ../../edm/lib . but a make clean might cause some problems This gives something like: /epics/supTop/extensions/src/edmPrivateExtensions Makefile lib edm.version environment.str <somedir> Makefile some_type_pv_factory.cc some_type_pv_factory.h regSomeType.cc regSomeType.str You should now be able to run make in /epics/supTop/extensions/src/edmPrivateExtensions and get the library file libSomeType.so in /epics/supTop/extensions/lib/<arch> . To install the new pv support: edm -addpv /epics/supTop/extensions/lib/<arch>/libSomeType.so If you want the new pv type to be the default type, edit edmPvObjects and move the reference to libSomeType.so to the first line of the file. John Sinclair Carl Schumann wrote: Hi,
| ||||||||||||||
ANJ, 02 Sep 2010 |
·
Home
·
News
·
About
·
Base
·
Modules
·
Extensions
·
Distributions
·
Download
·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing · |