TOP=../..

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

#==================================================
# Build an IOC 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 = pmate
# pmate.dbd will be created and installed
DBD += pmate.dbd

# pmate.dbd will be made up from these files:
pmate_DBD += base.dbd
#pmate_DBD += xxxSupport.dbd
#pmate_DBD += dbSubExample.dbd
#pmate_DBD += pmateHello.dbd

# <name>_registerRecordDeviceDriver.cpp will be created from <name>.dbd
pmate_SRCS += pmate_registerRecordDeviceDriver.cpp
pmate_SRCS_DEFAULT += pmateMain.cpp
pmate_SRCS_vxWorks += -nil-

# Add locally compiled object code
#pmate_SRCS += dbSubExample.c
#pmate_SRCS += pmateHello.c

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

#pmate_LIBS += xxxSupport

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

ifneq ($(SNCSEQ),)
    # This builds sncExample as a component of pmate
    pmate_SNCFLAGS += +r
    pmate_DBD += sncPmMon.dbd
    pmate_SRCS += sncPmMon.stt
    pmate_LIBS += seq pv

    # The following builds sncProgram as a standalone application
    #PROD_HOST += sncProgPmMon
    #sncProgPmMon_SNCFLAGS += +m
    #sncProgPmMon_SRCS += sncProgPmMon.st
    #sncProgPmMon_LIBS += seq pv
    #sncProgPmMon_LIBS += $(EPICS_BASE_HOST_LIBS)
endif

pmate_LIBS += $(EPICS_BASE_IOC_LIBS)

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

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

