TOP=../..

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

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

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

# Alignment.dbd will be made up from these files:
Alignment_DBD += base.dbd
Alignment_DBD += asyn.dbd
Alignment_DBD += drvAsynSerialPort.dbd
Alignment_DBD += motorSupport.dbd
Alignment_DBD += devNewport.dbd

Alignment_DBD += drvIpac.dbd
Alignment_DBD += Xy2440.dbd
Alignment_DBD += Xy2445.dbd

Alignment_DBD += evrSupport.dbd
Alignment_DBD += devMrfEr.dbd

Alignment_DBD += iocAdmin.dbd
Alignment_DBD += dbRestore.dbd

# <name>_registerRecordDeviceDriver.cpp will be created from <name>.dbd
Alignment_SRCS += Alignment_registerRecordDeviceDriver.cpp
Alignment_SRCS_DEFAULT += AlignmentMain.cpp
Alignment_SRCS_vxWorks += -nil-

# Add locally compiled object code
# Alignment_SRCS += AlignmentHello.c

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

Alignment_LIBS += Newport
Alignment_LIBS += motor
Alignment_LIBS += asyn

Alignment_LIBS += Xy2440
Alignment_LIBS += Xy2445
Alignment_LIBS += Ipac

Alignment_LIBS += evrSupport
# Alignment_LIBS += sSubRecord no longer need for R3.14.12 nor is gneral_time
Alignment_LIBS += devMrfEr
Alignment_LIBS += mrfVme64x

Alignment_LIBS += devIocStats
Alignment_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 Alignment
    Alignment_SNCFLAGS += +r
    #Alignment_DBD += sncExample.dbd
    #Alignment_SRCS += sncExample.stt
    Alignment_LIBS += seq pv
endif

Alignment_LIBS += $(EPICS_BASE_IOC_LIBS)

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

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

