TOP=../..

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


# =====================================================
# Path to "NON EPICS" External PACKAGES: USER INCLUDES
# =====================================================

# Support Perl C regular expression library
USR_INCLUDES += -I$(PCRE_INCLUDE)


# ======================================================
# PATH TO "NON EPICS" EXTERNAL PACKAGES: USER LIBRARIES
# ======================================================
pcre_DIR = $(PCRE_LIB)
# ======================================================

# ======================================================
# LINK "NON EPICS" EXTERNAL PACKAGE LIBRARIES STATICALLY
# =======================================================
USR_LIBS_Linux += pcre
# =======================================================

#================================
# build BucketJump Soft IOC
#================================
PROD_IOC_Linux = BucketJump

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

# ========================================================================
# BucketJump.dbd will be made up from these files:
# ========================================================================
BucketJump_DBD += base.dbd
BucketJump_DBD += 
BucketJump_DBD += devIocStats.dbd
BucketJump_DBD += asSupport.dbd
BucketJump_DBD += asyn.dbd
BucketJump_DBD += asynRecord.dbd
BucketJump_DBD += drvAsynIPPort.dbd
BucketJump_DBD += stream.dbd
BucketJump_DBD += caPutLog.dbd

# ========================================================================
# The system command will be mainly used by linux hosted IOCs
# Very useful for changing kernel thread priorities for kernel drivers or
# simply just executing some linux system commands from your IOC
# ========================================================================
BucketJump_DBD += system.dbd
# ========================================================================

# ========================================================================
# Link locally-provided code into the IOC Application:
# ========================================================================
BucketJump_SRCS += BucketJump_registerRecordDeviceDriver.cpp
BucketJump_SRCS_DEFAULT += BucketJumpMain.cpp
BucketJump_SRCS += devBucketJumpVersion.c
# ========================================================================

# ===========================================================
# Auto-generate a header file containing a version string.
# ===========================================================
# Version comes from the VCS if available, else date+time.
GENVERSION = BucketJumpVersion.h

# Macro name
GENVERSIONMACRO = BucketJumpVERSION

BucketJump_DBD += devBucketJumpVersion.dbd
# ===========================================================



# =====================================================
# Link in the libraries from other EPICS modules
# =====================================================
BucketJump_LIBS += devIocStats
BucketJump_LIBS += autosave
BucketJump_LIBS += caPutLog
BucketJump_LIBS += stream
BucketJump_LIBS += asyn
# =====================================================

# Link QSRV (pvAccess Server) if available
ifdef EPICS_QSRV_MAJOR_VERSION
    BucketJump_LIBS += qsrv
    BucketJump_LIBS += $(EPICS_BASE_PVA_CORE_LIBS)
    BucketJump_DBD += PVAServerRegister.dbd
    BucketJump_DBD += qsrv.dbd
endif

# ======================================================
# Link libraries from EPICS BASE
# =====================================================
BucketJump_LIBS += $(EPICS_BASE_IOC_LIBS)
# =====================================================

# ======================================================
# Explicit dependency needed for generated header file
# ======================================================
devBucketJumpVersion$(DEP): $(COMMON_DIR)/$(GENVERSION)
#=======================================================


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

