TOP=../..

include $(TOP)/configure/CONFIG
#----------------------------------------
#  ADD MACRO DEFINITIONS AFTER THIS LINE
#=============================

#==================================================
# build an ioc application

PROD_IOC_RTEMS = ProfileMonitor

# ProfileMonitor.dbd will be created and installed
DBD += ProfileMonitor.dbd

# ProfileMonitor.dbd will be made up from these files:
ProfileMonitor_DBD += base.dbd
ProfileMonitor_DBD += EDT_CL.dbd

ProfileMonitor_DBD += drvIpac.dbd
ProfileMonitor_DBD += Xy2440.dbd
ProfileMonitor_DBD += Xy2445.dbd
ProfileMonitor_DBD += IP330.dbd
ProfileMonitor_DBD += IP231.dbd

ProfileMonitor_DBD += evrSupport.dbd
ProfileMonitor_DBD += devMrfEr.dbd
ProfileMonitor_DBD += generalTimeNonVx.dbd

ProfileMonitor_DBD += iocAdmin.dbd
ProfileMonitor_DBD += dbRestore.dbd

# <name>_registerRecordDeviceDriver.cpp will be created from <name>.dbd
ProfileMonitor_SRCS += ProfileMonitor_registerRecordDeviceDriver.cpp
ProfileMonitor_SRCS_DEFAULT += ProfileMonitorMain.cpp
ProfileMonitor_SRCS_vxWorks += -nil-

# Add locally compiled object code
#ProfileMonitor_SRCS += ProfileMonitorHello.c

# The following adds support from base/src/vxWorks
ProfileMonitor_OBJS_vxWorks += $(EPICS_BASE_BIN)/vxComLibrary

ProfileMonitor_LIBS += EDT_CL

ProfileMonitor_LIBS += Xy2440
ProfileMonitor_LIBS += Xy2445
ProfileMonitor_LIBS += IP330
ProfileMonitor_LIBS += IP231
ProfileMonitor_LIBS += Ipac

ProfileMonitor_LIBS += evrSupport
ProfileMonitor_LIBS += sSubRecord
ProfileMonitor_LIBS += generalTime
ProfileMonitor_LIBS += devMrfEr
ProfileMonitor_LIBS += mrfVme64x

ProfileMonitor_LIBS += devIocStats
ProfileMonitor_LIBS += restore

# NOTE: To build SNL programs, SNCSEQ must be defined
# in the <top>/configure/RELEASE file

ifneq ($(SNCSEQ),)
# This builds sncExample as a component of ProfileMonitor
#    ProfileMonitor_SNCFLAGS += +r
#    ProfileMonitor_DBD += sncExample.dbd
#    ProfileMonitor_SRCS += sncExample.stt
#    ProfileMonitor_LIBS += seq pv
endif

ProfileMonitor_LIBS += $(EPICS_BASE_IOC_LIBS)

#===========================

include $(TOP)/configure/RULES
#----------------------------------------
#  ADD RULES AFTER THIS LINE

