TOP=../..

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

# ================================================
# Build the IOC application
# ================================================
# This will attempt to build an IOC application 
# for every target including the host computer.
#PROD_IOC = Interspace

# Use the following for Linux Only IOCs
PROD_IOC_Linux = Interspace

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

# Interspace.dbd will be made up from these files:
Interspace_DBD += base.dbd
Interspace_DBD += devIocStats.dbd
Interspace_DBD += autosave.dbd
Interspace_DBD += caPutLog.dbd
Interspace_DBD += histogramRecord.dbd
Interspace_DBD += dbSubPoly.dbd
Interspace_DBD += asyn.dbd
Interspace_DBD += drvAsynIPPort.dbd
#Interspace_DBD += drvAsynSerialPort.dbd
#Interspace_DBD += omsAsynSupport.dbd
Interspace_DBD += motorSupport.dbd
Interspace_DBD += motorRecord.dbd
Interspace_DBD += devAerotech.dbd
Interspace_DBD += stream.dbd 
#Interspace_DBD += drvIpac.dbd
#Interspace_DBD += IP330.dbd
#Interspace_DBD += ip330Support.dbd
#Interspace_DBD += HytecMotorDriver.dbd
Interspace_DBD += iocAdmin.dbd
Interspace_DBD += genSubRecord.dbd
Interspace_DBD += mgntSub.dbd
Interspace_DBD += gtr.dbd 
#Interspace_DBD += drvSisfadc.dbd
#Interspace_DBD += devHy8413.dbd
Interspace_DBD += genPolySub.dbd


# ======================================================================
# <name>_registerRecordDeviceDriver.cpp will be created from <name>.dbd
Interspace_SRCS += InterspaceMain.cpp
Interspace_SRCS += Interspace_registerRecordDeviceDriver.cpp
Interspace_SRCS_vxWorks += -nil-

# ========================================================================
# ========================================================================
# Add locally compiled object code
# For example, subroutines
# ========================================================================
Interspace_SRCS += polynomial.c
Interspace_SRCS += mgntSub.c


# =================================================
# Corrdinate transformation of CAM
# =================================================
Interspace_DBD  += a_camSupport.dbd
Interspace_SRCS += a_camPosRead.c
Interspace_SRCS += a_camPosWrite.c


#ifneq ($(SNCSEQ),)
#        Interspace_DBD += camSupport.dbd
#        Interspace_SRCS += bfwMon.st
#        Interspace_SRCS += camCalibrate.st
#        Interspace_SRCS += camPosCalc.c
#        Interspace_SRCS += camPosRead.c
#        Interspace_SRCS += girderRollCalc.c
#        Interspace_SRCS += motorMon.st
#        Interspace_SRCS += quadBfwCalc.c
#        Interspace_SRCS += xyCORrection.c
#        Interspace_LIBS += seq pv
#endif




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

# =====================================================
# Link in the code from other libraries
# =====================================================
Interspace_LIBS += devIocStats
Interspace_LIBS += autosave
Interspace_LIBS += caPutLog
#Interspace_LIBS += HytecMotor
Interspace_LIBS += Aerotech
Interspace_LIBS += stream
Interspace_LIBS += motor
#Interspace_LIBS += Ipac
#Interspace_LIBS += IP330
#Interspace_LIBS += ip330
Interspace_LIBS += asyn
#Interspace_LIBS += omsAsyn
Interspace_LIBS += genSub
Interspace_LIBS += gtr
#Interspace_LIBS += drvRTEMSDmaSup
#Interspace_LIBS += Hy8413
Interspace_LIBS += genPolySub


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

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

Interspace_LIBS += $(EPICS_BASE_IOC_LIBS)

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

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

