-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add 3.15.6 example app (for compilation tests)
- Loading branch information
1 parent
7634107
commit 064b4d3
Showing
30 changed files
with
1,023 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Makefile at top of application tree | ||
TOP = . | ||
include $(TOP)/configure/CONFIG | ||
|
||
# Directories to build, any order | ||
DIRS += configure | ||
DIRS += $(wildcard *Sup) | ||
DIRS += $(wildcard *App) | ||
DIRS += $(wildcard *Top) | ||
DIRS += $(wildcard iocBoot) | ||
|
||
# The build order is controlled by these dependency rules: | ||
|
||
# All dirs except configure depend on configure | ||
$(foreach dir, $(filter-out configure, $(DIRS)), \ | ||
$(eval $(dir)_DEPEND_DIRS += configure)) | ||
|
||
# Any *App dirs depend on all *Sup dirs | ||
$(foreach dir, $(filter %App, $(DIRS)), \ | ||
$(eval $(dir)_DEPEND_DIRS += $(filter %Sup, $(DIRS)))) | ||
|
||
# Any *Top dirs depend on all *Sup and *App dirs | ||
$(foreach dir, $(filter %Top, $(DIRS)), \ | ||
$(eval $(dir)_DEPEND_DIRS += $(filter %Sup %App, $(DIRS)))) | ||
|
||
# iocBoot depends on all *App dirs | ||
iocBoot_DEPEND_DIRS += $(filter %App,$(DIRS)) | ||
|
||
# Add any additional dependency rules here: | ||
|
||
include $(TOP)/configure/RULES_TOP |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# 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=</absolute/path/to/install/top> | ||
|
||
# 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 = </IOC's/absolute/path/to/install/top> | ||
|
||
# For application debugging purposes, override the HOST_OPT and/ | ||
# or CROSS_OPT settings from base/configure/CONFIG_SITE | ||
#HOST_OPT = NO | ||
#CROSS_OPT = NO | ||
|
||
# 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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
TOP=.. | ||
|
||
include $(TOP)/configure/CONFIG | ||
|
||
TARGETS = $(CONFIG_TARGETS) | ||
CONFIGS += $(subst ../,,$(wildcard $(CONFIG_INSTALLS))) | ||
|
||
include $(TOP)/configure/RULES |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# RELEASE - Location of external support modules | ||
# | ||
# IF YOU MAKE ANY CHANGES to this file you must subsequently | ||
# do a "gnumake rebuild" in this application's top level | ||
# directory. | ||
# | ||
# The build process does not check dependencies against files | ||
# that are outside this application, thus you should do a | ||
# "gnumake rebuild" in the top level directory after EPICS_BASE | ||
# or any other external module pointed to below is rebuilt. | ||
# | ||
# Host- or target-specific settings can be given in files named | ||
# RELEASE.$(EPICS_HOST_ARCH).Common | ||
# RELEASE.Common.$(T_A) | ||
# RELEASE.$(EPICS_HOST_ARCH).$(T_A) | ||
# | ||
# This file is parsed by both GNUmake and an EPICS Perl script, | ||
# so it can ONLY contain definititions of paths to other support | ||
# modules, variable definitions that are used in module paths, | ||
# and include statements that pull in other RELEASE files. | ||
# Variables may be used before their values have been set. | ||
# Build variables that are NOT used in paths should be set in | ||
# the CONFIG_SITE file. | ||
|
||
# Variables and paths to dependent modules: | ||
#MODULES = /path/to/modules | ||
#MYMODULE = $(MODULES)/my-module | ||
|
||
# If using the sequencer, point SNCSEQ at its top directory: | ||
#SNCSEQ = $(MODULES)/seq-ver | ||
|
||
# EPICS_BASE should appear last so earlier modules can override stuff: | ||
EPICS_BASE = /home/ralph/work/EPICS/V3/base-3.15.6 | ||
|
||
# Set RULES here if you want to use build rules from somewhere | ||
# other than EPICS_BASE: | ||
#RULES = $(MODULES)/build-rules | ||
|
||
# These allow developers to override the RELEASE variable settings | ||
# without having to modify the configure/RELEASE file itself. | ||
-include $(TOP)/../RELEASE.local | ||
-include $(TOP)/configure/RELEASE.local | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# RULES | ||
|
||
include $(CONFIG)/RULES | ||
|
||
# Library should be rebuilt because LIBOBJS may have changed. | ||
$(LIBNAME): ../Makefile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#RULES.ioc | ||
include $(CONFIG)/RULES.ioc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#RULES_DIRS | ||
include $(CONFIG)/RULES_DIRS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#RULES_TOP | ||
include $(CONFIG)/RULES_TOP | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
TOP=../.. | ||
include $(TOP)/configure/CONFIG | ||
#---------------------------------------- | ||
# ADD MACRO DEFINITIONS BELOW HERE | ||
|
||
# Install databases, templates & substitutions like this | ||
DB += dbExample1.db | ||
DB += dbExample2.db | ||
DB += dbSubExample.db | ||
DB += user.substitutions | ||
|
||
# If <anyname>.db template is not named <anyname>*.template add | ||
# <anyname>_TEMPLATE = <templatename> | ||
|
||
include $(TOP)/configure/RULES | ||
#---------------------------------------- | ||
# ADD EXTRA GNUMAKE RULES BELOW HERE | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
record(ai, "$(user):aiExample") | ||
{ | ||
field(DESC, "Analog input") | ||
field(INP, "$(user):calcExample.VAL NPP NMS") | ||
field(EGUF, "10") | ||
field(EGU, "Counts") | ||
field(HOPR, "10") | ||
field(LOPR, "0") | ||
field(HIHI, "8") | ||
field(HIGH, "6") | ||
field(LOW, "4") | ||
field(LOLO, "2") | ||
field(HHSV, "MAJOR") | ||
field(HSV, "MINOR") | ||
field(LSV, "MINOR") | ||
field(LLSV, "MAJOR") | ||
} | ||
record(calc, "$(user):calcExample") | ||
{ | ||
field(DESC, "Counter") | ||
field(SCAN,"1 second") | ||
field(FLNK, "$(user):aiExample") | ||
field(CALC, "(A<B)?(A+C):D") | ||
field(INPA, "$(user):calcExample.VAL NPP NMS") | ||
field(INPB, "9") | ||
field(INPC, "1") | ||
field(INPD, "0") | ||
field(EGU, "Counts") | ||
field(HOPR, "10") | ||
field(HIHI, "8") | ||
field(HIGH, "6") | ||
field(LOW, "4") | ||
field(LOLO, "2") | ||
field(HHSV, "MAJOR") | ||
field(HSV, "MINOR") | ||
field(LSV, "MINOR") | ||
field(LLSV, "MAJOR") | ||
} | ||
record(xxx, "$(user):xxxExample") | ||
{ | ||
field(DESC, "xxx record") | ||
field(EGU, "Counts") | ||
field(HOPR, "10") | ||
field(HIHI, "8") | ||
field(HIGH, "6") | ||
field(LOW, "4") | ||
field(LOLO, "2") | ||
field(HHSV, "MAJOR") | ||
field(HSV, "MINOR") | ||
field(LSV, "MINOR") | ||
field(LLSV, "MAJOR") | ||
} | ||
record(compress,"$(user):compressExample") | ||
{ | ||
field(DESC, "Circular buffer") | ||
field(INP,"$(user):aiExample.VAL CP NMS") | ||
field(ALG,"Circular Buffer") | ||
field(NSAM,"10") | ||
field(HOPR,"10") | ||
field(EGU,"Counts") | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
record(calc, "$(user):calcExample$(no)") | ||
{ | ||
alias("$(user):calc$(no)") | ||
field(DESC, "Counter No. $(no)") | ||
field(SCAN,"$(scan)") | ||
field(FLNK, "$(user):aiExample$(no)") | ||
field(CALC, "(A<B)?(A+C):D") | ||
field(INPA, "$(user):calcExample$(no).VAL NPP NMS") | ||
field(INPB, "9") | ||
field(INPC, "1") | ||
field(INPD, "0") | ||
field(EGU, "Counts") | ||
field(HOPR, "10") | ||
field(HIHI, "8") | ||
field(HIGH, "6") | ||
field(LOW, "4") | ||
field(LOLO, "2") | ||
field(HHSV, "MAJOR") | ||
field(HSV, "MINOR") | ||
field(LSV, "MINOR") | ||
field(LLSV, "MAJOR") | ||
} | ||
record(ai, "$(user):aiExample$(no)") | ||
{ | ||
field(DESC, "Analog input No. $(no)") | ||
field(INP, "$(user):calcExample$(no).VAL NPP NMS") | ||
field(EGUF, "10") | ||
field(EGU, "Counts") | ||
field(HOPR, "10") | ||
field(LOPR, "0") | ||
field(HIHI, "8") | ||
field(HIGH, "6") | ||
field(LOW, "4") | ||
field(LOLO, "2") | ||
field(HHSV, "MAJOR") | ||
field(HSV, "MINOR") | ||
field(LSV, "MINOR") | ||
field(LLSV, "MAJOR") | ||
} | ||
alias("$(user):aiExample$(no)","$(user):ai$(no)") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
record(sub,"$(user):subExample") | ||
{ | ||
field(INAM,"mySubInit") | ||
field(SNAM,"mySubProcess") | ||
} | ||
record(aSub,"$(user):aSubExample") | ||
{ | ||
field(INAM,"myAsubInit") | ||
field(SNAM,"myAsubProcess") | ||
field(FTA,"DOUBLE") | ||
field(NOA,"10") | ||
field(INPA,"$(user):compressExample CPP") | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Example substitutions file | ||
|
||
file "db/dbExample1.db" { | ||
{ user = "ralph" } | ||
} | ||
|
||
file db/dbExample2.db { | ||
pattern { user, no, scan } | ||
{ "ralph", 1, "1 second" } | ||
{ "ralph", 2, "2 second" } | ||
{ "ralph", 3, "5 second" } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
TOP = .. | ||
include $(TOP)/configure/CONFIG | ||
DIRS := $(DIRS) $(filter-out $(DIRS), $(wildcard *src*)) | ||
DIRS := $(DIRS) $(filter-out $(DIRS), $(wildcard *Src*)) | ||
DIRS := $(DIRS) $(filter-out $(DIRS), $(wildcard *db*)) | ||
DIRS := $(DIRS) $(filter-out $(DIRS), $(wildcard *Db*)) | ||
include $(TOP)/configure/RULES_DIRS | ||
|
Oops, something went wrong.