Comment 1 for bug 541210

Revision history for this message
Jeff Hill (johill-lanl) wrote :

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>_registerRecordDeviceDriver.cpp will be created from <name>.dbd
ex_SRCS += ex_registerRecordDeviceDriver.cpp
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
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