include $(TOP)/configure/CONFIG
#----------------------------------------
# ADD MACRO DEFINITIONS AFTER THIS LINE
#=============================
#==================================================
# build a support library
LIBRARY_IOC += xxxSupport
# xxxRecord.h will be created from xxxRecord.dbd
DBDINC += xxxRecord
# install devXxxSoft.dbd into <top>/dbd
DBD += xxxSupport.dbd
# The following are compiled and added to the Support library
xxxSupport_SRCS += xxxRecord.c
xxxSupport_SRCS += devXxxSoft.c
xxxSupport_LIBS += $(EPICS_BASE_IOC_LIBS)
#=============================
# build an ioc application
PROD_IOC = ex
# <name>.dbd will be created from <name>Include.dbd
DBD += ex.dbd
# <name>_registerRecordDeviceDriver.cpp will be created from <name>.dbd
ex_SRCS += ex_registerRecordDeviceDriver.cpp
ex_SRCS_DEFAULT += exMain.cpp
ex_SRCS_vxWorks += -nil-
# The following adds support from base/src/vxWorks
ex_OBJS_vxWorks += $(EPICS_BASE_BIN)/vxComLibrary
ex_OBJS += $(EPICS_BASE_BIN)/acctst
ex_LIBS += xxxSupport
# NOTES:
# 1)It is not possible to build sncExample both as a component of ex
# and standalone. You must choose only one.
# 2)To build sncExample SNCSEQ must be defined in <top>/configure/RELEASE
# The following builds sncExample as a component of ex
# Also in exInclude.dbd uncomment #registrar(sncExampleRegistrar)
#ex_SRCS += sncExample.stt
#ex_LIBS += seq pv
ex_LIBS += $(EPICS_BASE_IOC_LIBS)
# The following builds sncExample as a standalone application
#PROD_HOST += sncExample
#sncExample_SNCFLAGS += +m
#sncExample_SRCS += sncExample.stt
#sncExample_LIBS += seq pv
#sncExample_LIBS += $(EPICS_BASE_HOST_LIBS)
#===========================
include $(TOP)/configure/RULES
#----------------------------------------
# ADD RULES AFTER THIS LINE
Here is the Makefile for the application
TOP=../..
include $(TOP)/ configure/ CONFIG ------- ------- ------- ------- ------ ======= ======= ======= ==
#------
# ADD MACRO DEFINITIONS AFTER THIS LINE
#======
#====== ======= ======= ======= ======= ======= ======= ==
# build a support library
LIBRARY_IOC += xxxSupport
# xxxRecord.h will be created from xxxRecord.dbd
DBDINC += xxxRecord
# install devXxxSoft.dbd into <top>/dbd
DBD += xxxSupport.dbd
# The following are compiled and added to the Support library
xxxSupport_SRCS += xxxRecord.c
xxxSupport_SRCS += devXxxSoft.c
xxxSupport_LIBS += $(EPICS_ BASE_IOC_ LIBS)
#====== ======= ======= ======= ==
# build an ioc application
PROD_IOC = ex
# <name>.dbd will be created from <name>Include.dbd
DBD += ex.dbd
# <name>_ registerRecordD eviceDriver. cpp will be created from <name>.dbd rdDeviceDriver. cpp
ex_SRCS += ex_registerReco
ex_SRCS_DEFAULT += exMain.cpp
ex_SRCS_vxWorks += -nil-
# Add locally compiled object code
ex_SRCS += dbSubExample.c devAiXxx.c
# The following adds support from base/src/vxWorks BASE_BIN) /vxComLibrary
ex_OBJS_vxWorks += $(EPICS_
ex_OBJS += $(EPICS_ BASE_BIN) /acctst
ex_LIBS += xxxSupport
# NOTES: /RELEASE
# 1)It is not possible to build sncExample both as a component of ex
# and standalone. You must choose only one.
# 2)To build sncExample SNCSEQ must be defined in <top>/configure
# The following builds sncExample as a component of ex sncExampleRegis trar)
# Also in exInclude.dbd uncomment #registrar(
#ex_SRCS += sncExample.stt
#ex_LIBS += seq pv
ex_LIBS += $(EPICS_ BASE_IOC_ LIBS)
# The following builds sncExample as a standalone application SNCFLAGS += +m BASE_HOST_ LIBS)
#PROD_HOST += sncExample
#sncExample_
#sncExample_SRCS += sncExample.stt
#sncExample_LIBS += seq pv
#sncExample_LIBS += $(EPICS_
#====== ======= ======= =======
include $(TOP)/ configure/ RULES ------- ------- ------- ------- ------
#------
# ADD RULES AFTER THIS LINE