Skip to content
Snippets Groups Projects
Commit 6f1dfc35 authored by mooney's avatar mooney
Browse files

Use structure from 3.14.10 makeBaseApp.pl

parent c2e33831
No related branches found
No related tags found
No related merge requests found
#Makefile at top of application tree
TOP = .
include $(TOP)/configure/CONFIG
DIRS := $(DIRS) $(filter-out $(DIRS), configure)
DIRS := $(DIRS) $(filter-out $(DIRS), $(wildcard *App))
DIRS := $(DIRS) $(filter-out $(DIRS), $(wildcard iocBoot))
DIRS += configure xxxApp iocBoot
xxxApp_DEPEND_DIRS = configure
iocBoot_DEPEND_DIRS = xxxApp
define DIR_template
$(1)_DEPEND_DIRS = configure
endef
$(foreach dir, $(filter-out configure,$(DIRS)),$(eval $(call DIR_template,$(dir))))
iocBoot_DEPEND_DIRS += $(filter %App,$(DIRS))
include $(TOP)/configure/RULES_TOP
#CONFIG
include $(TOP)/configure/CONFIG_APP
# Add any changes to make definitions here
#CROSS_COMPILER_TARGET_ARCHS = vxWorks-68040 vxWorks-ppc604
# 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 = <the top of the application as seen by the IOC>
# CONFIG
# You might want to change this to some shared set of rules, e.g.
# RULES=/path/to/epics/support/modules/rules/x-y
RULES=$(EPICS_BASE)
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 for definition in base
INSTALL_LOCATION = $(TOP)
include $(TOP)/configure/CONFIG_SITE
-include $(TOP)/configure/CONFIG_SITE.$(EPICS_HOST_ARCH)
-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)
-include $(TOP)/configure/O.$(T_A)/CONFIG_APP_INCLUDE
endif
# Makefile
TOP=..
include $(TOP)/configure/CONFIG
# Set the following to NO to disable consistency checking of
# the support applications defined in $(TOP)/configure/RELEASE
# CHECK_RELEASE controls the consistency checking of the support
# applications defined in the $(TOP)/configure/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 the build even if conflicts are found.
CHECK_RELEASE = YES
TARGETS = $(CONFIG_TARGETS)
......
# RELEASE - Location of external products
#RELEASE Location of external products
#
# Run "gnumake clean uninstall install" in the application
# top directory each time this file is changed.
# IF YOU MAKE ANY CHANGES to this file you MUST at least run
# "gnumake" in this directory afterwards; you usually need
# to run "gnumake rebuild" in the application's top level
# directory each time this file is changed.
#
# Notes:
# NOTE: The build does not check dependencies against files
# that are outside this application, thus you should run
# "gnumake distclean install" in the top directory each time
# EPICS_BASE, SNCSEQ, or any other external module defined
# in the RELEASE file is rebuilt.
#
# - Architecture dependent declarations should go into RELEASE.<arch>
#
# - This file will be scanned to automatically generate
# include path definitions etc.
# The order of the following declarations will be retained
# within those definitions.
#
# - The build does not check dependencies on files
# external to this application. Thus you should run
# "gnumake clean uninstall install" in the top directory
# each time EPICS_BASE, SNCSEQ, or any other external
# module defined in the RELEASE file is rebuilt.
#
# - "#!" marks lines that can be uncommented.
# Host/target specific settings can be specified in files named
# RELEASE.$(EPICS_HOST_ARCH).Common
# RELEASE.Common.$(T_A)
# RELEASE.$(EPICS_HOST_ARCH).$(T_A)
##############################################################################
# Choose one, and only one, of the following two methods to define SUPPORT.
#
# The 1st method uses the intermediate variable GATEWAY. GATEWAY is used if
# you are using a shared distribution of synApps among users with different
# directory paths (i.e., mount points) to synApps.
# The 2nd, defalut, method is for users that have their own copy of synApps.
# 1ST METHOD, for GATEWAY users.
# If you are using the APS gateway to access synApps; define the NFS mount path
# to the gateway here and uncomment the following lines.
#!GATEWAY=
#!SUPPORT=$(GATEWAY)/epics/synApps_5_2/support
# 2ND METHOD; define the path to the synApps support directory and uncomment.
# Define the path to the synApps support directory and uncomment.
SUPPORT=/home/oxygen/MOONEY/epics/synApps/support
##############################################################################
# Choice one, and only one, of the following two methods to define the synApps
# configuration.
# For the standard synApps configuration; uncomment the following line.
#include $(SUPPORT)/config/MASTER_RELEASE
# Specify the standard synApps configuration.
include $(SUPPORT)/configure/RELEASE
# For a local, custom configuration; copy $(SUPPORT)/configure/RELEASE
# to this directory as the file MASTER_RELEASE, edit the file and uncomment
# the following line.
#!include $(TOP)/configure/MASTER_RELEASE
TEMPLATE_TOP=$(EPICS_BASE)/templates/makeBaseApp/top
#CONFIG
include $(EPICS_BASE)/configure/RULES
# RULES
include $(CONFIG)/RULES
# Library should be rebuilt because LIBOBJS may have changed.
$(LIBNAME): ../Makefile
#RULES.ioc
include $(EPICS_BASE)/configure/RULES.ioc
include $(CONFIG)/RULES.ioc
#RULES_DIRS
include $(EPICS_BASE)/configure/RULES_DIRS
include $(CONFIG)/RULES_DIRS
#RULES_TOP
include $(EPICS_BASE)/configure/RULES_TOP
include $(CONFIG)/RULES_TOP
......@@ -2,5 +2,5 @@ TOP = ..
include $(TOP)/configure/CONFIG
DIRS += $(wildcard *ioc*)
DIRS += $(wildcard as*)
include $(EPICS_BASE)/configure/RULES_DIRS
include $(CONFIG)/RULES_DIRS
......@@ -14,7 +14,7 @@ include $(TOP)/configure/CONFIG
#----------------------------------------------------
# If <anyname>.db template is not named <anyname>*.template add
# <anyname>_template = <templatename>
# <anyname>_TEMPLATE = <templatename>
include $(TOP)/configure/RULES
#----------------------------------------
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment