diff --git a/configure/CONFIG b/configure/CONFIG index b46d386..4e9af40 100644 --- a/configure/CONFIG +++ b/configure/CONFIG @@ -1,14 +1,29 @@ -#CONFIG -include $(TOP)/configure/CONFIG_APP -# Add any changes to make definitions here +# CONFIG - Load build configuration data +# +# Do not make changes to this file! -#CROSS_COMPILER_TARGET_ARCHS = vxWorks-68040 -#CROSS_COMPILER_TARGET_ARCHS = +# Allow user to override where the build rules come from +RULES = $(EPICS_BASE) -# Use this when your IOC and the host use different paths -# to access the application. Typically this will be -# used with the Microsoft FTP server or with NFS mounts. Use -# is indicated by failure of the cdCommands script on -# vxWorks. You must rebuild in the iocBoot directory -# before this takes effect. -#IOCS_APPL_TOP = +# RELEASE files point to other application tops +include $(TOP)/configure/RELEASE +-include $(TOP)/configure/RELEASE.$(EPICS_HOST_ARCH) +-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/configure/CONFIG_APP b/configure/CONFIG_APP deleted file mode 100644 index 2d93366..0000000 --- a/configure/CONFIG_APP +++ /dev/null @@ -1,26 +0,0 @@ -# CONFIG_APP - -include $(TOP)/configure/RELEASE --include $(TOP)/configure/RELEASE.$(EPICS_HOST_ARCH) --include $(TOP)/configure/RELEASE.Common.$(T_A) --include $(TOP)/configure/RELEASE.$(EPICS_HOST_ARCH).$(T_A) - -ifneq ($(wildcard $(EPICS_BASE)/configure),) -CONFIG=$(EPICS_BASE)/configure -else -CONFIG=$(EPICS_BASE)/config -DIRS += config -endif -include $(CONFIG)/CONFIG - -INSTALL_LOCATION = $(TOP) -ifdef INSTALL_LOCATION_APP -INSTALL_LOCATION = $(INSTALL_LOCATION_APP) -endif - -ifdef T_A --include $(TOP)/configure/O.$(T_A)/CONFIG_APP_INCLUDE -endif - -# dbst based database optimization (default: NO) -DB_OPT = NO diff --git a/configure/CONFIG_SITE b/configure/CONFIG_SITE new file mode 100644 index 0000000..d9fa938 --- /dev/null +++ b/configure/CONFIG_SITE @@ -0,0 +1,40 @@ +# CONFIG_SITE + +-include $(SUPPORT)/configure/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 even 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-ppc32 + +# To install files into a location other than $(TOP) define +# INSTALL_LOCATION here. +#INSTALL_LOCATION= + +# Set this when the IOC and build host use different paths +# to the install location. This may be needed to boot from +# a Microsoft FTP server say, or on some NFS configurations. +#IOCS_APPL_TOP = + +# 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 +-include $(TOP)/configure/CONFIG_SITE.local diff --git a/configure/Makefile b/configure/Makefile index 477cdad..0317746 100644 --- a/configure/Makefile +++ b/configure/Makefile @@ -2,7 +2,7 @@ TOP=.. -include $(TOP)/configure/CONFIG_APP +include $(TOP)/configure/CONFIG # Set the following to NO to disable consistency checking of # the support applications defined in $(TOP)/configure/RELEASE