TOP=../..

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

USR_INCLUDES += $(ALGLIB_INCLUDE)
alg_DIR=$(ALGLIB_LIB)
LIB_INSTALLS += $(ALGLIB_LIB)/libalglib.a

# ================================================
# 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 += motorSupport.dbd
Interspace_DBD += devAerotech.dbd

Interspace_DBD += devIocStats.dbd
Interspace_DBD += asSupport.dbd
Interspace_DBD += iocAdmin.dbd

Interspace_DBD += drvAsynIPPort.dbd
Interspace_DBD += modbusSupport.dbd

Interspace_DBD += stream.dbd 
Interspace_DBD += asyn.dbd
Interspace_DBD += caPutLog.dbd

Interspace_DBD += $(CEXP_DBDS) 
Interspace_DBD += spline.dbd 

#Interspace_DBD += motorRecord.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
# ========================================================================

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

# =====================================================
# Link in the code from other libraries
# =====================================================
Interspace_LIBS += spline 
Interspace_LIBS += alglib 
Interspace_LIBS += $(CEXP_LIBS) 

Interspace_LIBS += Aerotech
Interspace_LIBS += motor
Interspace_LIBS += asyn
Interspace_LIBS += modbus 
Interspace_LIBS += stream
Interspace_LIBS += devIocStats
Interspace_LIBS += autosave
Interspace_LIBS += caPutLog

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

# 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

