# CONFIG_SITE

# Make any application-specific changes to the EPICS build
#   configuration variables in this file.

# Host/target specific settings can be specified in files named
#   CONFIG_SITE.$(EPICS_HOST_ARCH).Common
#   CONFIG_SITE.Common.$(T_A)
#   CONFIG_SITE.$(EPICS_HOST_ARCH).$(T_A)

# CHECK_RELEASE controls the consistency checking of the support
#   applications pointed to by the RELEASE* files.
# Normally CHECK_RELEASE should be set to YES.
# Set CHECK_RELEASE to NO to disable checking completely.
# Set CHECK_RELEASE to WARN to perform consistency checking but
#   continue building anyway if conflicts are found.
CHECK_RELEASE = YES

# Set this when you only want to compile this application
#   for a subset of the cross-compiled target architectures
#   that Base is built for.
CROSS_COMPILER_TARGET_ARCHS = RTEMS-beatnik linuxRT-x86_64

# kill the bad RTEMS setting - Ernest should do that globally
ifneq ($(filter RTEMS-%,$(T_A))xx,xx)
        OP_SYS_LDLIBS=
#       OP_SYS_LDFLAGS=
endif

# To install files into a location other than $(TOP) define
#   INSTALL_LOCATION here.
#INSTALL_LOCATION=</path/name/to/install/top>

# Define install location for protocol files
INSTALL_PROTO = $(INSTALL_LOCATION)/db

# Set this when your IOC and the host use different paths
#   to access the application. This will be needed to boot
#   from a Microsoft FTP server or with some NFS mounts.
# You must rebuild in the iocBoot directory for this to
#   take effect.
#IOCS_APPL_TOP = </IOC/path/to/application/top>

# =======================================================
# Let's install our IOC boot products:
# envPaths and st.cmd
# =======================================================
INSTALL_LOCATION_STARTUP += $(INSTALL_LOCATION)/startup
DIRECTORY_TARGETS += $(INSTALL_LOCATION_STARTUP)

## =============================
## Build Application Statically
## =============================
SHARED_LIBRARIES=NO
STATIC_BUILD=YES

# =================================
# Define the archiecture versions
# =================================
LINUX_VERSION=rhel6
# =================================
# Location of Linux Kernel Modules:
# =================================
LINUX_KERNEL_MODULES=$(PACKAGE_SITE_TOP)/linuxKernel_Modules
LINUXRT_BUILDROOT_VERSION=buildroot-2019.08
LINUX_VERSION=rhel6

# =======================================================
# Names/locations of external non-EPICS packages
# =======================================================

# ===========================================================================
# Support for BOOST
# ===========================================================================
BOOST_PACKAGE_NAME=boost
BOOST_VERSION=1.64.0
BOOST_TOP=$(PACKAGE_SITE_TOP)/$(BOOST_PACKAGE_NAME)/$(BOOST_VERSION)
BOOST_LIB = $(BOOST_TOP)/$(PKG_ARCH)/lib
BOOST_INCLUDE = $(BOOST_TOP)/$(PKG_ARCH)/include
# ===========================================================================

# ============================================================================================
# Support for BOOST Numeric Bindings (Headers)
# ============================================================================================
BOOSTBINDINGS_PACKAGE_NAME=boost-numeric-bindings
BOOSTBINDINGS_VERSION=1.64.0
BOOSTBINDINGS_TOP=$(PACKAGE_SITE_TOP)/$(BOOSTBINDINGS_PACKAGE_NAME)/$(BOOSTBINDINGS_VERSION)
BOOSTBINDINGS_INCLUDE = $(BOOSTBINDINGS_TOP)/include
# ============================================================================================

# ======================================
# Support for Stream Devices
# ======================================
PCRE=YES
PCRE_PACKAGE_NAME = pcre
PCRE_VERSION      = 8.37
PCRE_TOP          = $(PACKAGE_SITE_TOP)/$(PCRE_PACKAGE_NAME)/$(PCRE_VERSION)
PCRE_LIB          = $(PCRE_TOP)/$(PKG_ARCH)/lib
PCRE_INCLUDE      = $(PCRE_TOP)/$(PKG_ARCH)/include

# These allow developers to override the CONFIG_SITE variable
# settings without having to modify the configure/CONFIG_SITE
# file itself.
-include $(TOP)/../CONFIG_SITE.local
-include $(TOP)/configure/CONFIG_SITE.local

# End of file


