make clear distinction between support and ioc apps
This commit is contained in:
@@ -5,25 +5,30 @@ include $(TOP)/configure/CONFIG
|
||||
# ADD MACRO DEFINITIONS AFTER THIS LINE
|
||||
#=============================
|
||||
|
||||
#==================================================
|
||||
# build a support library
|
||||
|
||||
LIBRARY_IOC += _APPNAME_Support
|
||||
|
||||
# xxxRecord.h will be created from xxxRecord.dbd
|
||||
DBDINC += xxxRecord
|
||||
# install devXxxSoft.dbd into <top>/dbd
|
||||
DBD += _APPNAME_Support.dbd
|
||||
|
||||
# The following are compiled and added to the Support library
|
||||
_APPNAME_Support_SRCS += xxxRecord.c
|
||||
_APPNAME_Support_SRCS += devXxxSoft.c
|
||||
_APPNAME_Support_SRCS += dbSubExample.c
|
||||
|
||||
_APPNAME_Support_LIBS += $(EPICS_BASE_IOC_LIBS)
|
||||
|
||||
#=============================
|
||||
# build an ioc application
|
||||
|
||||
PROD_IOC = _APPNAME_
|
||||
# <name>.dbd will be created from <name>Include.dbd
|
||||
DBD += _APPNAME_.dbd
|
||||
|
||||
#=============================
|
||||
|
||||
LIBRARY_IOC += _APPNAME_Ioc
|
||||
|
||||
_APPNAME_Ioc_SRCS += xxxRecord.c
|
||||
_APPNAME_Ioc_SRCS += devXxxSoft.c
|
||||
_APPNAME_Ioc_SRCS += dbSubExample.c
|
||||
|
||||
_APPNAME_Ioc_LIBS += $(EPICS_BASE_IOC_LIBS)
|
||||
|
||||
#=============================
|
||||
|
||||
PROD_IOC = _APPNAME_
|
||||
|
||||
# <name>_registerRecordDeviceDriver.cpp will be created from <name>.dbd
|
||||
_APPNAME__SRCS += _APPNAME__registerRecordDeviceDriver.cpp
|
||||
@@ -33,7 +38,7 @@ _APPNAME__SRCS_vxWorks += -nil-
|
||||
#The following adds support from base/src/vxWorks
|
||||
_APPNAME__OBJS_vxWorks += $(EPICS_BASE_BIN)/vxComLibrary
|
||||
|
||||
_APPNAME__LIBS += _APPNAME_Ioc
|
||||
_APPNAME__LIBS += _APPNAME_Support
|
||||
|
||||
#NOTES:
|
||||
# 1)It is not possible to build sncExample both as a component of _APPNAME_
|
||||
|
||||
@@ -1,4 +1,2 @@
|
||||
include "base.dbd"
|
||||
include "xxxRecord.dbd"
|
||||
device(xxx,CONSTANT,devXxxSoft,"SoftChannel")
|
||||
registrar("mySub")
|
||||
include "_APPNAME_Support.dbd"
|
||||
|
||||
3
src/makeBaseApp/top/exampleApp/src/_APPNAME_Support.dbd
Normal file
3
src/makeBaseApp/top/exampleApp/src/_APPNAME_Support.dbd
Normal file
@@ -0,0 +1,3 @@
|
||||
include "xxxRecord.dbd"
|
||||
device(xxx,CONSTANT,devXxxSoft,"SoftChannel")
|
||||
registrar(mySub)
|
||||
Reference in New Issue
Block a user