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 = gtr

LIBRARY += gs16ai64utils
gs16ai64utils_SRCS += gs16ai64utils.c gs16ai64reports.c gs16ai64fsamp.c gs16ai64ioctl.c

# Use the following for RTEMS Only IOCs
#PROD_IOC_RTEMS = gtr

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

# gtr.dbd will be made up from these files:
gtr_DBD += base.dbd
gtr_DBD += asyn.dbd
gtr_DBD += devIocStats.dbd
gtr_DBD += autosaveSupport.dbd

ifdef CAPUTLOG
gtr_DBD += caPutLog.dbd
endif

ifdef CEXP
gtr_DBD += $(CEXP_DBDS)
endif

ifdef RESTORE
gtr_DBD += dbRestore.dbd
endif

gtr_DBD += gtrSupport.dbd

# ================================================================================
# The system command will be mainly used by linux hosted IOCs
# Very useful for changing kernel thread priorities for kernel drivers
# ================================================================================
gtr_DBD += system.dbd

# If you don't have an EVR comment the following two lines:
#gtr_DBD += evrSupport.dbd
#gtr_DBD += devMrfEr.dbd

# ======================================================================
# <name>_registerRecordDeviceDriver.cpp will be created from <name>.dbd
gtr_SRCS += gtr_registerRecordDeviceDriver.cpp

gtr_SRCS_DEFAULT += gtrMain.cpp

gtr_SRCS_vxWorks += -nil-

# ========================================================================
# ========================================================================
# Add locally compiled object code
# For example, subroutines
# ========================================================================
# gtr_SRCS += file1.c
# gtr_SRCS += file2.c
gtr_SRCS += drvGS16AI64.cpp

# =====================================================
# Link in the code from other libraries
# =====================================================
# Needed to link in iocAdmin support
gtr_LIBS += devIocStats

ifdef RESTORE
gtr_LIBS += restore
endif

gtr_LIBS += asyn
gtr_LIBS += gs16ai64utils

# Needed to link in autosave support
gtr_LIBS += autosave

# Needed to link caPutLog support
ifdef CAPUTLOG
gtr_LIBS += caPutLog
endif

# Needed to link cexpsh() support
ifdef CEXP
gtr_LIBS += $(CEXP_LIBS)
endif

gtr_LIBS += $(EPICS_BASE_IOC_LIBS)

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

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

