TOP=../..

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

#=============================
# Build the IOC application

PROD_IOC_RTEMS = MAXv
# MAXv.dbd will be created and installed
DBD += MAXv.dbd

# MAXv.dbd will be made up from these files:
MAXv_DBD += base.dbd

# Include dbd files from all support applications:
# asyn
MAXv_DBD += asyn.dbd

# motor
MAXv_DBD += omsAsynSupport.dbd
MAXv_DBD += motorSupport.dbd
MAXv_DBD += motorRecord.dbd 

# timing: EVR
MAXv_DBD += evrSupport.dbd
MAXv_DBD += devMrfEr.dbd

# common
MAXv_DBD += iocAdmin.dbd
MAXv_DBD += autosaveSupport.dbd
MAXv_DBD += devIocStats.dbd


# Add all the support libraries needed by this IOC

# timing: EVR
MAXv_LIBS += evrSupport
MAXv_LIBS += devMrfEr
MAXv_LIBS += mrfVme64x

# asyn + motor
MAXv_LIBS += motor
MAXv_LIBS += asyn
MAXv_LIBS += omsAsyn

# common
MAXv_LIBS += autosave
MAXv_LIBS += devIocStats


# MAXv_registerRecordDeviceDriver.cpp derives from MAXv.dbd
MAXv_SRCS += MAXv_registerRecordDeviceDriver.cpp

# Build the main IOC entry point on workstation OSs.
MAXv_SRCS_DEFAULT += MAXvMain.cpp
MAXv_SRCS_vxWorks += -nil-

# Add support from base/src/vxWorks if needed
#MAXv_OBJS_vxWorks += $(EPICS_BASE_BIN)/vxComLibrary


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

ifneq ($(SNCSEQ),)

  MAXv_SNCFLAGS += +r
  MAXv_DBD += minigap.dbd
  MAXv_SRCS += minigap.stt
  
  MAXv_DBD  += setGap.dbd
  MAXv_SRCS += setGap.stt

  MAXv_LIBS += seq pv

endif


# Finally link to the EPICS Base libraries
MAXv_LIBS += $(EPICS_BASE_IOC_LIBS)

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

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

