TOP=../..

include $(TOP)/configure/CONFIG
#----------------------------------------
#  ADD MACRO DEFINITIONS AFTER THIS LINE
#=============================
# NOTE: powerPMAC App only compiled for rhel6-x86_64
ifeq ($(T_A),rhel6-x86_64)

# =====================================================
# Path to "NON EPICS" External PACKAGES: USER INCLUDES
# ======================================================
USR_INCLUDES += -I$(SSH2_INCLUDE)
USR_INCLUDES += -I$(ZLIB_INCLUDE)
USR_INCLUDES += -I$(CRYPTO_INCLUDE)

# ======================================================
# PATH TO "NON EPICS" EXTERNAL PACKAGES: USER LIBRARIES
# ======================================================
ssh2_DIR   = $(SSH2_LIB)
crypto_DIR = $(CRYPTO_LIB)
z_DIR      = $(ZLIB_LIB)

# ======================================================
# LINK "NON EPICS" EXTERNAL PACKAGE LIBRARIES STATICALLY
# =======================================================
USR_LIBS_Linux += ssh2 crypto z
USR_SYS_LIBS   += pcre

#=============================
# Build the IOC application
#=============================
PROD_IOC_Linux = hxrUndFgEnc
# hxrUndFgEnc.dbd will be created and installed
DBD += hxrUndFgEnc.dbd

# hxrUndFgEnc.dbd will be made up from these files:
hxrUndFgEnc_DBD += base.dbd
hxrUndFgEnc_DBD += devIocStats.dbd
hxrUndFgEnc_DBD += asSupport.dbd
hxrUndFgEnc_DBD += caPutLog.dbd
hxrUndFgEnc_DBD += devSeqCar.dbd

# Include dbd files from all support applications:
hxrUndFgEnc_DBD += asyn.dbd
hxrUndFgEnc_DBD += calcSupport.dbd
#hxrUndFgEnc_DBD += stream.dbd
hxrUndFgEnc_DBD += busySupport.dbd
hxrUndFgEnc_DBD += motorSupport.dbd
hxrUndFgEnc_DBD += pmacAsynIPPort.dbd
hxrUndFgEnc_DBD += drvAsynPowerPMACPort.dbd
hxrUndFgEnc_DBD += devSoftMotor.dbd
hxrUndFgEnc_DBD += pmacAsynMotorPort.dbd

# Add PV Access support
hxrUndFgEnc_DBD += PVAServerRegister.dbd
hxrUndFgEnc_DBD += qsrv.dbd

# hxrUndFgEnc_registerRecordDeviceDriver.cpp derives from hxrUndFgEnc.dbd
hxrUndFgEnc_SRCS += hxrUndFgEnc_registerRecordDeviceDriver.cpp

# Build the main IOC entry point on workstation OSs.
hxrUndFgEnc_SRCS_DEFAULT += hxrUndFgEncMain.cpp
hxrUndFgEnc_SRCS_vxWorks += -nil-

# =====================================================
# Link in the code from other libraries
# =====================================================
hxrUndFgEnc_LIBS += devIocStats
hxrUndFgEnc_LIBS += autosave
hxrUndFgEnc_LIBS += caPutLog
hxrUndFgEnc_LIBS += calc 
hxrUndFgEnc_LIBS += sscan 
hxrUndFgEnc_LIBS += busy
hxrUndFgEnc_LIBS += pmacAsynMotorPort
hxrUndFgEnc_LIBS += powerPmacAsynPort 
hxrUndFgEnc_LIBS += softMotor
hxrUndFgEnc_LIBS += motor  
hxrUndFgEnc_LIBS += pmacAsynIPPort 
hxrUndFgEnc_LIBS += qsrv
hxrUndFgEnc_LIBS += asyn
hxrUndFgEnc_LIBS += seqCar seq pv
#hxrUndFgEnc_LIBS += stream

# Finally link to the EPICS Base libraries
hxrUndFgEnc_LIBS += $(EPICS_BASE_PVA_CORE_LIBS)
hxrUndFgEnc_LIBS += $(EPICS_BASE_IOC_LIBS)
endif

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

