diff --git a/iocs/andorIOC/configure/CONFIG b/iocs/andorIOC/configure/CONFIG new file mode 100755 index 0000000..c1a4703 --- /dev/null +++ b/iocs/andorIOC/configure/CONFIG @@ -0,0 +1,29 @@ +# CONFIG - Load build configuration data +# +# Do not make changes to this file! + +# Allow user to override where the build rules come from +RULES = $(EPICS_BASE) + +# RELEASE files point to other application tops +include $(TOP)/configure/RELEASE +-include $(TOP)/configure/RELEASE.$(EPICS_HOST_ARCH).Common +ifdef T_A +-include $(TOP)/configure/RELEASE.Common.$(T_A) +-include $(TOP)/configure/RELEASE.$(EPICS_HOST_ARCH).$(T_A) +endif + +CONFIG = $(RULES)/configure +include $(CONFIG)/CONFIG + +# Override the Base definition: +INSTALL_LOCATION = $(TOP) + +# CONFIG_SITE files contain other build configuration settings +include $(TOP)/configure/CONFIG_SITE +-include $(TOP)/configure/CONFIG_SITE.$(EPICS_HOST_ARCH).Common +ifdef T_A + -include $(TOP)/configure/CONFIG_SITE.Common.$(T_A) + -include $(TOP)/configure/CONFIG_SITE.$(EPICS_HOST_ARCH).$(T_A) +endif + diff --git a/iocs/andorIOC/configure/CONFIG_SITE b/iocs/andorIOC/configure/CONFIG_SITE new file mode 100644 index 0000000..4df968f --- /dev/null +++ b/iocs/andorIOC/configure/CONFIG_SITE @@ -0,0 +1,42 @@ +# 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 = vxWorks-68040 + +# To install files into a location other than $(TOP) define +# INSTALL_LOCATION here. +#INSTALL_LOCATION= + +# 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 = + +# Get settings from AREA_DETECTOR, so we only have to configure once for all detectors if we want to +-include $(AREA_DETECTOR)/configure/CONFIG_SITE +-include $(AREA_DETECTOR)/configure/CONFIG_SITE.$(EPICS_HOST_ARCH) +-include $(AREA_DETECTOR)/configure/CONFIG_SITE.$(EPICS_HOST_ARCH).Common +ifdef T_A + -include $(AREA_DETECTOR)/configure/CONFIG_SITE.Common.$(T_A) + -include $(AREA_DETECTOR)/configure/CONFIG_SITE.$(EPICS_HOST_ARCH).$(T_A) +endif diff --git a/iocs/andorIOC/configure/CONFIG_SITE.Common.linux-x86 b/iocs/andorIOC/configure/CONFIG_SITE.Common.linux-x86 new file mode 100644 index 0000000..03934db --- /dev/null +++ b/iocs/andorIOC/configure/CONFIG_SITE.Common.linux-x86 @@ -0,0 +1,7 @@ +# There is a problem when building dynamically on our linux-x86 system, due to functions called in PvAPI.a. + +# These can be fixed either by building statically with this line: +#STATIC_BUILD=YES +# Or by building dynamically with this line: +PROD_SYS_LIBS += pthread rt + diff --git a/iocs/andorIOC/configure/Makefile b/iocs/andorIOC/configure/Makefile new file mode 100644 index 0000000..9254309 --- /dev/null +++ b/iocs/andorIOC/configure/Makefile @@ -0,0 +1,8 @@ +TOP=.. + +include $(TOP)/configure/CONFIG + +TARGETS = $(CONFIG_TARGETS) +CONFIGS += $(subst ../,,$(wildcard $(CONFIG_INSTALLS))) + +include $(TOP)/configure/RULES diff --git a/iocs/andorIOC/configure/RELEASE b/iocs/andorIOC/configure/RELEASE new file mode 100644 index 0000000..5d07336 --- /dev/null +++ b/iocs/andorIOC/configure/RELEASE @@ -0,0 +1,12 @@ +#RELEASE Location of external products +# Run "gnumake clean uninstall install" in the application +# top directory each time this file is changed. + +ADANDOR=$(AREA_DETECTOR)/ADAndor + +-include $(TOP)/../../../RELEASE_PATHS.local +-include $(TOP)/../../../RELEASE_PATHS.local.$(EPICS_HOST_ARCH) +-include $(TOP)/../../../RELEASE_PRODS.local +-include $(TOP)/RELEASE.local +-include $(TOP)/configure/RELEASE.local + diff --git a/iocs/andorIOC/configure/RULES b/iocs/andorIOC/configure/RULES new file mode 100644 index 0000000..6d56e14 --- /dev/null +++ b/iocs/andorIOC/configure/RULES @@ -0,0 +1,6 @@ +# RULES + +include $(CONFIG)/RULES + +# Library should be rebuilt because LIBOBJS may have changed. +$(LIBNAME): ../Makefile diff --git a/iocs/andorIOC/configure/RULES.ioc b/iocs/andorIOC/configure/RULES.ioc new file mode 100644 index 0000000..901987c --- /dev/null +++ b/iocs/andorIOC/configure/RULES.ioc @@ -0,0 +1,2 @@ +#RULES.ioc +include $(CONFIG)/RULES.ioc diff --git a/iocs/andorIOC/configure/RULES_DIRS b/iocs/andorIOC/configure/RULES_DIRS new file mode 100644 index 0000000..3ba269d --- /dev/null +++ b/iocs/andorIOC/configure/RULES_DIRS @@ -0,0 +1,2 @@ +#RULES_DIRS +include $(CONFIG)/RULES_DIRS diff --git a/iocs/andorIOC/configure/RULES_TOP b/iocs/andorIOC/configure/RULES_TOP new file mode 100644 index 0000000..d09d668 --- /dev/null +++ b/iocs/andorIOC/configure/RULES_TOP @@ -0,0 +1,3 @@ +#RULES_TOP +include $(CONFIG)/RULES_TOP +