Make rec, softDev, and testDev libs shared.
This commit is contained in:
@@ -13,20 +13,29 @@ DBD += _APPNAME_.dbd
|
||||
|
||||
#=============================
|
||||
|
||||
PROD_IOC = _APPNAME_
|
||||
LIBRARY_IOC += _APPNAME_Ioc
|
||||
|
||||
_APPNAME__SRCS += xxxRecord.c
|
||||
_APPNAME__SRCS += devXxxSoft.c
|
||||
_APPNAME__SRCS += dbSubExample.c
|
||||
_APPNAME_Ioc_SRCS += xxxRecord.c
|
||||
_APPNAME_Ioc_SRCS += devXxxSoft.c
|
||||
|
||||
_APPNAME_Ioc_LIBS += $(EPICS_BASE_IOC_LIBRARIES)
|
||||
_APPNAME_Ioc_SYS_LIBS_solaris += c
|
||||
|
||||
#=============================
|
||||
|
||||
PROD_IOC = _APPNAME_
|
||||
|
||||
# <name>_registerRecordDeviceDriver.cpp will be created from <name>.dbd
|
||||
_APPNAME__SRCS += _APPNAME__registerRecordDeviceDriver.cpp
|
||||
_APPNAME__SRCS += dbSubExample.c
|
||||
_APPNAME__SRCS_DEFAULT += _APPNAME_Main.cpp
|
||||
_APPNAME__SRCS_vxWorks += -nil-
|
||||
|
||||
#The following adds support from base/src/vxWorks
|
||||
_APPNAME__OBJS_vxWorks += $(EPICS_BASE_BIN)/vxComLibrary
|
||||
|
||||
_APPNAME__LIBS += _APPNAME_Ioc
|
||||
|
||||
#NOTES:
|
||||
# 1)It is not possible to build sncExample both as a component of _APPNAME_
|
||||
# and standalone. You must choose only one.
|
||||
@@ -36,46 +45,16 @@ _APPNAME__OBJS_vxWorks += $(EPICS_BASE_BIN)/vxComLibrary
|
||||
#_APPNAME__SRCS += sncExample.stt
|
||||
#_APPNAME__LIBS += seq
|
||||
#_APPNAME__LIBS += pv
|
||||
#seq_DIR = $(SNCSEQ_LIB)
|
||||
#pv_DIR = $(SNCSEQ_LIB)
|
||||
|
||||
_APPNAME__LIBS += $(EPICS_BASE_IOC_LIBRARIES)
|
||||
|
||||
#The following builds sncExample as a standalone application
|
||||
#PROD_HOST += sncExample
|
||||
#sncExample_SNCFLAGS += +m
|
||||
#sncExample_SRCS += sncExample.stt
|
||||
#seq_DIR = $(SNCSEQ_LIB)
|
||||
#pv_DIR = $(SNCSEQ_LIB)
|
||||
#sncExample_LIBS += seq
|
||||
#sncExample_LIBS += pv
|
||||
#sncExample_LIBS += iocsh
|
||||
#sncExample_LIBS += miscIoc
|
||||
#sncExample_LIBS += rsrvIoc
|
||||
#sncExample_LIBS += dbtoolsIoc
|
||||
#sncExample_LIBS += asIoc
|
||||
#sncExample_LIBS += dbIoc
|
||||
#sncExample_LIBS += registryIoc
|
||||
#sncExample_LIBS += dbStaticIoc
|
||||
#sncExample_LIBS += ca
|
||||
#sncExample_LIBS += Com
|
||||
|
||||
# Use win32 object libs for registered support
|
||||
_APPNAME__LIBS_win32 += recIocObj
|
||||
_APPNAME__LIBS_win32 += softDevIocObj
|
||||
_APPNAME__LIBS_win32 += testDevIocObj
|
||||
_APPNAME__LIBS_DEFAULT += recIoc
|
||||
_APPNAME__LIBS_DEFAULT += softDevIoc
|
||||
_APPNAME__LIBS_DEFAULT += testDevIoc
|
||||
|
||||
_APPNAME__LIBS += iocsh
|
||||
_APPNAME__LIBS += miscIoc
|
||||
_APPNAME__LIBS += rsrvIoc
|
||||
_APPNAME__LIBS += dbtoolsIoc
|
||||
_APPNAME__LIBS += asIoc
|
||||
_APPNAME__LIBS += dbIoc
|
||||
_APPNAME__LIBS += registryIoc
|
||||
_APPNAME__LIBS += dbStaticIoc
|
||||
_APPNAME__LIBS += ca
|
||||
_APPNAME__LIBS += Com
|
||||
#sncExample_LIBS += $(EPICS_BASE_IOC_LIBRARIES)
|
||||
|
||||
#===========================
|
||||
|
||||
|
||||
@@ -15,11 +15,13 @@
|
||||
#include "devSup.h"
|
||||
#include "link.h"
|
||||
#include "xxxRecord.h"
|
||||
#define epicsExportSharedSymbols
|
||||
#include "shareLib.h"
|
||||
|
||||
/*Create the dset for devXxxSoft */
|
||||
static long init_record();
|
||||
static long read_xxx();
|
||||
struct {
|
||||
epicsShareExtern struct {
|
||||
long number;
|
||||
DEVSUPFUN report;
|
||||
DEVSUPFUN init;
|
||||
|
||||
@@ -16,6 +16,7 @@
|
||||
#include "errMdef.h"
|
||||
#include "recSup.h"
|
||||
#include "special.h"
|
||||
#define epicsExportSharedSymbols
|
||||
#define GEN_SIZE_OFFSET
|
||||
#include "xxxRecord.h"
|
||||
#undef GEN_SIZE_OFFSET
|
||||
@@ -39,7 +40,7 @@ static long get_graphic_double();
|
||||
static long get_control_double();
|
||||
static long get_alarm_double();
|
||||
|
||||
struct rset xxxRSET={
|
||||
epicsShareDef struct rset xxxRSET={
|
||||
RSETNUMBER,
|
||||
report,
|
||||
initialize,
|
||||
|
||||
Reference in New Issue
Block a user