diff --git a/KNRK6/KNRK6-IOC-03App/Db/Makefile b/KNRK6/KNRK6-IOC-03App/Db/Makefile new file mode 100644 index 000000000..983981d40 --- /dev/null +++ b/KNRK6/KNRK6-IOC-03App/Db/Makefile @@ -0,0 +1,22 @@ +TOP=../.. +include $(TOP)/configure/CONFIG +#---------------------------------------- +# ADD MACRO DEFINITIONS AFTER THIS LINE + +#---------------------------------------------------- +# Optimization of db files using dbst (DEFAULT: NO) +#DB_OPT = YES + +#---------------------------------------------------- +# Create and install (or just install) into /db +# databases, templates, substitutions like this +#DB += xxx.db + +#---------------------------------------------------- +# If .db template is not named *.template add +# _template = + +include $(TOP)/configure/RULES +#---------------------------------------- +# ADD RULES AFTER THIS LINE + diff --git a/KNRK6/KNRK6-IOC-03App/Makefile b/KNRK6/KNRK6-IOC-03App/Makefile new file mode 100644 index 000000000..373b86bfc --- /dev/null +++ b/KNRK6/KNRK6-IOC-03App/Makefile @@ -0,0 +1,9 @@ +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*)) +DIRS := $(DIRS) $(filter-out $(DIRS), $(wildcard *protocol*)) +include $(TOP)/configure/RULES_DIRS + diff --git a/KNRK6/KNRK6-IOC-03App/src/KNRK6-IOC-03Main.cpp b/KNRK6/KNRK6-IOC-03App/src/KNRK6-IOC-03Main.cpp new file mode 100644 index 000000000..17cd3c4eb --- /dev/null +++ b/KNRK6/KNRK6-IOC-03App/src/KNRK6-IOC-03Main.cpp @@ -0,0 +1,23 @@ +/* KNRK6-IOC-02Main.cpp */ +/* Author: Marty Kraimer Date: 17MAR2000 */ + +#include +#include +#include +#include +#include + +#include "epicsExit.h" +#include "epicsThread.h" +#include "iocsh.h" + +int main(int argc,char *argv[]) +{ + if(argc>=2) { + iocsh(argv[1]); + epicsThreadSleep(.2); + } + iocsh(NULL); + epicsExit(0); + return(0); +} diff --git a/KNRK6/KNRK6-IOC-03App/src/Makefile b/KNRK6/KNRK6-IOC-03App/src/Makefile new file mode 100644 index 000000000..eeb05aea2 --- /dev/null +++ b/KNRK6/KNRK6-IOC-03App/src/Makefile @@ -0,0 +1,9 @@ +TOP=../.. +# This file should do very little - it's purpose is to set the APPNAME and then load build.mak + +# this definition is used in build.mak +APPNAME=KNRK6-IOC-03 + +# If we are ###-IOC-01 leave this as is, if we are ###-IOC-02 or higher change to ###-IOC-01 and delete build.mak from this directory +# there should only be a single build.mak for all IOCs of a given family and it is located in the ###-IOC-01 directory +include $(TOP)/KNRK6-IOC-01App/src/build.mak diff --git a/KNRK6/KNRK6-IOC-04App/Db/Makefile b/KNRK6/KNRK6-IOC-04App/Db/Makefile new file mode 100644 index 000000000..983981d40 --- /dev/null +++ b/KNRK6/KNRK6-IOC-04App/Db/Makefile @@ -0,0 +1,22 @@ +TOP=../.. +include $(TOP)/configure/CONFIG +#---------------------------------------- +# ADD MACRO DEFINITIONS AFTER THIS LINE + +#---------------------------------------------------- +# Optimization of db files using dbst (DEFAULT: NO) +#DB_OPT = YES + +#---------------------------------------------------- +# Create and install (or just install) into /db +# databases, templates, substitutions like this +#DB += xxx.db + +#---------------------------------------------------- +# If .db template is not named *.template add +# _template = + +include $(TOP)/configure/RULES +#---------------------------------------- +# ADD RULES AFTER THIS LINE + diff --git a/KNRK6/KNRK6-IOC-04App/Makefile b/KNRK6/KNRK6-IOC-04App/Makefile new file mode 100644 index 000000000..373b86bfc --- /dev/null +++ b/KNRK6/KNRK6-IOC-04App/Makefile @@ -0,0 +1,9 @@ +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*)) +DIRS := $(DIRS) $(filter-out $(DIRS), $(wildcard *protocol*)) +include $(TOP)/configure/RULES_DIRS + diff --git a/KNRK6/KNRK6-IOC-04App/src/KNRK6-IOC-04Main.cpp b/KNRK6/KNRK6-IOC-04App/src/KNRK6-IOC-04Main.cpp new file mode 100644 index 000000000..17cd3c4eb --- /dev/null +++ b/KNRK6/KNRK6-IOC-04App/src/KNRK6-IOC-04Main.cpp @@ -0,0 +1,23 @@ +/* KNRK6-IOC-02Main.cpp */ +/* Author: Marty Kraimer Date: 17MAR2000 */ + +#include +#include +#include +#include +#include + +#include "epicsExit.h" +#include "epicsThread.h" +#include "iocsh.h" + +int main(int argc,char *argv[]) +{ + if(argc>=2) { + iocsh(argv[1]); + epicsThreadSleep(.2); + } + iocsh(NULL); + epicsExit(0); + return(0); +} diff --git a/KNRK6/KNRK6-IOC-04App/src/Makefile b/KNRK6/KNRK6-IOC-04App/src/Makefile new file mode 100644 index 000000000..f343e9f90 --- /dev/null +++ b/KNRK6/KNRK6-IOC-04App/src/Makefile @@ -0,0 +1,9 @@ +TOP=../.. +# This file should do very little - it's purpose is to set the APPNAME and then load build.mak + +# this definition is used in build.mak +APPNAME=KNRK6-IOC-04 + +# If we are ###-IOC-01 leave this as is, if we are ###-IOC-02 or higher change to ###-IOC-01 and delete build.mak from this directory +# there should only be a single build.mak for all IOCs of a given family and it is located in the ###-IOC-01 directory +include $(TOP)/KNRK6-IOC-01App/src/build.mak diff --git a/KNRK6/iocBoot/iocKNRK6-IOC-03/Makefile b/KNRK6/iocBoot/iocKNRK6-IOC-03/Makefile new file mode 100644 index 000000000..09b391227 --- /dev/null +++ b/KNRK6/iocBoot/iocKNRK6-IOC-03/Makefile @@ -0,0 +1,6 @@ +TOP = ../.. +include $(TOP)/configure/CONFIG +#ARCH = windows-x64 +ARCH = $(EPICS_HOST_ARCH) +TARGETS = envPaths dllPath.bat relPaths.sh runIOC.bat runIOC.sh +include $(TOP)/configure/RULES.ioc diff --git a/KNRK6/iocBoot/iocKNRK6-IOC-03/config.xml b/KNRK6/iocBoot/iocKNRK6-IOC-03/config.xml new file mode 100644 index 000000000..fa5e51102 --- /dev/null +++ b/KNRK6/iocBoot/iocKNRK6-IOC-03/config.xml @@ -0,0 +1,4 @@ + + + + diff --git a/KNRK6/iocBoot/iocKNRK6-IOC-03/st.cmd b/KNRK6/iocBoot/iocKNRK6-IOC-03/st.cmd new file mode 100644 index 000000000..5eaecac3b --- /dev/null +++ b/KNRK6/iocBoot/iocKNRK6-IOC-03/st.cmd @@ -0,0 +1,18 @@ +#!../../bin/windows-x64/KNRK6-IOC-03 + +## You may have to change KNRK6-IOC-03 to something else +## everywhere it appears in this file + +# Increase this if you get <> or discarded messages warnings in your errlog output +errlogInit2(65536, 256) + +< envPaths + +cd "${TOP}" + +## Register all support components +dbLoadDatabase "dbd/KNRK6-IOC-03.dbd" +KNRK6_IOC_03_registerRecordDeviceDriver pdbbase + +## calling common command file in ioc 01 boot dir +< ${TOP}/iocBoot/iocKNRK6-IOC-01/st-common.cmd diff --git a/KNRK6/iocBoot/iocKNRK6-IOC-04/Makefile b/KNRK6/iocBoot/iocKNRK6-IOC-04/Makefile new file mode 100644 index 000000000..09b391227 --- /dev/null +++ b/KNRK6/iocBoot/iocKNRK6-IOC-04/Makefile @@ -0,0 +1,6 @@ +TOP = ../.. +include $(TOP)/configure/CONFIG +#ARCH = windows-x64 +ARCH = $(EPICS_HOST_ARCH) +TARGETS = envPaths dllPath.bat relPaths.sh runIOC.bat runIOC.sh +include $(TOP)/configure/RULES.ioc diff --git a/KNRK6/iocBoot/iocKNRK6-IOC-04/config.xml b/KNRK6/iocBoot/iocKNRK6-IOC-04/config.xml new file mode 100644 index 000000000..fa5e51102 --- /dev/null +++ b/KNRK6/iocBoot/iocKNRK6-IOC-04/config.xml @@ -0,0 +1,4 @@ + + + + diff --git a/KNRK6/iocBoot/iocKNRK6-IOC-04/st.cmd b/KNRK6/iocBoot/iocKNRK6-IOC-04/st.cmd new file mode 100644 index 000000000..9be7e5823 --- /dev/null +++ b/KNRK6/iocBoot/iocKNRK6-IOC-04/st.cmd @@ -0,0 +1,18 @@ +#!../../bin/windows-x64/KNRK6-IOC-04 + +## You may have to change KNRK6-IOC-02 to something else +## everywhere it appears in this file + +# Increase this if you get <> or discarded messages warnings in your errlog output +errlogInit2(65536, 256) + +< envPaths + +cd "${TOP}" + +## Register all support components +dbLoadDatabase "dbd/KNRK6-IOC-04.dbd" +KNRK6_IOC_04_registerRecordDeviceDriver pdbbase + +## calling common command file in ioc 01 boot dir +< ${TOP}/iocBoot/iocKNRK6-IOC-01/st-common.cmd