Files
epics-base/configure/os/CONFIG.Common.vxWorks-ppc604_altivec
2010-11-29 10:38:06 +00:00

23 lines
853 B
Plaintext

# Revision-Id: anj@aps.anl.gov-20101005192737-disfz3vs0f3fiixd
#
# Definitions for vxWorks-ppc604 targets with an Altivec and >32MB of RAM.
# Site-specific overrides go in CONFIG_SITE.Common.vxWorks-ppc604_altivec
#
# This file is maintained by the EPICS build community.
#-------------------------------------------------------
# Inherit the settings from vxWorks-ppc604_long
include $(CONFIG)/os/CONFIG.Common.vxWorks-ppc604_long
defval = $(if $(strip $(1),),$(1),$(2))
# Tell compiler to include altivec support; not available in 5.4
ALTIVEC_CFLAG_5.4 = THIS_VERSION_OF_VXWORKS DOES_NOT_SUPPORT_ALTIVEC
ALTIVEC_CFLAG_5.5 = -fvec -DALTIVEC
ALTIVEC_CFLAG_6.0 = -fvec -DALTIVEC
# From 6.1 onwards the compiler option changed
ALTIVEC_CFLAG = -maltivec -DALTIVEC
ARCH_DEP_CFLAGS += $(call defval,$(ALTIVEC_CFLAG_$(VXWORKS_VERSION)),$(ALTIVEC_CFLAG))