# CONFIG
include $(TOP)/configure/CONFIG_APP
-include $(TOP)/configure/CONFIG_SITE

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

# Set this when you only want to compile this application
# for a subset of the cross-compiled target architectures
# that Base is built for.
ALL_CROSS_ARCHS:=$(filter-out vxworks% vxWorks% linux-f3rp61,$(CROSS_COMPILER_TARGET_ARCHS))
# Build Bpm/fftw only for a subset (padBpmApp is also built for the PAD)
BPM_CROSS_ARCHS:=$(filter RTEMS-beatnik linux%, $(ALL_CROSS_ARCHS))
# CROSS_COMPILER TARGET_ARCHS is overridden in some subdirectories
# to BPM_CROSS_ARCHS. Thus, if you want to filter you
# should further filter ALL_CROSS_ARCHS/BPM_CROSS_ARCHS above.
CROSS_COMPILER_TARGET_ARCHS = $(ALL_CROSS_ARCHS)

# 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 = <path to application top as seen by IOC>

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

ifneq ($(wildcard $(CPSW)/lib/$(T_A)),)
HAVE_CPSW:=YES
else
HAVE_CPSW:=NO
endif
# For cram
SHARED_LIBRARIES=NO
STATIC_BUILD=YES
