changes for 3.14
This commit is contained in:
@@ -5,96 +5,52 @@ include $(TOP)/configure/CONFIG
|
||||
TEMPLATES_DIR = makeBaseApp
|
||||
|
||||
TEMPLATES += top/Makefile
|
||||
TEMPLATES += top/configure/CONFIG
|
||||
TEMPLATES += top/configure/CONFIG_APP
|
||||
TEMPLATES += top/configure/RELEASE
|
||||
TEMPLATES += top/configure/RULES.Db
|
||||
TEMPLATES += top/configure/RULES_BUILD
|
||||
TEMPLATES += top/configure/RULES_DIRS
|
||||
TEMPLATES += top/configure/RULES_TOP
|
||||
TEMPLATES += top/configure/RULES.ioc
|
||||
TEMPLATES += top/configure/RULES.iocBoot
|
||||
TEMPLATES += top/configure/RULES.registerRecordDeviceDriver
|
||||
|
||||
TEMPLATES += top/configure/Makefile
|
||||
TEMPLATES += top/configure/makeConfigAppInclude.pl
|
||||
TEMPLATES += top/configure/makeDbDepends.pl
|
||||
TEMPLATES += top/configure/makeIocCdCommands.pl
|
||||
TEMPLATES += top/configure/replaceVAR.pl
|
||||
|
||||
TEMPLATES += $(TOP)/configure/CONFIG
|
||||
TEMPLATES += $(TOP)/configure/CONFIG.CrossCommon
|
||||
TEMPLATES += $(TOP)/configure/CONFIG.Host.WIN32
|
||||
TEMPLATES += $(TOP)/configure/CONFIG.Host.linux
|
||||
TEMPLATES += $(TOP)/configure/CONFIG.Host.linux-x86
|
||||
TEMPLATES += $(TOP)/configure/CONFIG.Host.solaris
|
||||
TEMPLATES += $(TOP)/configure/CONFIG.Host.solaris-sparc
|
||||
TEMPLATES += $(TOP)/configure/CONFIG.Host.sun4-68k
|
||||
TEMPLATES += $(TOP)/configure/CONFIG.Host.win32-x86
|
||||
TEMPLATES += $(TOP)/configure/CONFIG.Target.UnixCommon
|
||||
TEMPLATES += $(TOP)/configure/CONFIG.Target.linux-x86
|
||||
TEMPLATES += $(TOP)/configure/CONFIG.Target.mv162
|
||||
TEMPLATES += $(TOP)/configure/CONFIG.Target.mv162lc
|
||||
TEMPLATES += $(TOP)/configure/CONFIG.Target.mv167
|
||||
TEMPLATES += $(TOP)/configure/CONFIG.Target.mv177
|
||||
TEMPLATES += $(TOP)/configure/CONFIG.Target.solaris
|
||||
TEMPLATES += $(TOP)/configure/CONFIG.Target.solaris-sparc
|
||||
TEMPLATES += $(TOP)/configure/CONFIG.Target.sun4-68k
|
||||
TEMPLATES += $(TOP)/configure/CONFIG.Target.vxWorks-486
|
||||
TEMPLATES += $(TOP)/configure/CONFIG.Target.vxWorks-68040
|
||||
TEMPLATES += $(TOP)/configure/CONFIG.Target.vxWorks-68040lc
|
||||
TEMPLATES += $(TOP)/configure/CONFIG.Target.vxWorks-68060
|
||||
TEMPLATES += $(TOP)/configure/CONFIG.Target.vxWorks-ppc604
|
||||
TEMPLATES += $(TOP)/configure/CONFIG.Target.vxWorksCommon
|
||||
TEMPLATES += $(TOP)/configure/CONFIG.Target.win32-x86
|
||||
TEMPLATES += $(TOP)/configure/CONFIG_BASE_VERSION
|
||||
TEMPLATES += $(TOP)/configure/CONFIG_COMMON
|
||||
TEMPLATES += $(TOP)/configure/CONFIG_ENV
|
||||
TEMPLATES += $(TOP)/configure/CONFIG_EPICS_BASE
|
||||
TEMPLATES += $(TOP)/configure/CONFIG_SITE
|
||||
TEMPLATES += $(TOP)/configure/CONFIG_SITE.Host.WIN32-x86
|
||||
TEMPLATES += $(TOP)/configure/CONFIG_SITE_ENV
|
||||
TEMPLATES += $(TOP)/configure/RULES_ARCHS
|
||||
TEMPLATES += $(TOP)/configure/RULES_BUILD
|
||||
TEMPLATES += $(TOP)/configure/RULES_DIRS
|
||||
TEMPLATES += $(TOP)/configure/RULES_TOP
|
||||
TEMPLATES += $(TOP)/configure/tools/cp.pl
|
||||
TEMPLATES += $(TOP)/configure/tools/findbase.pl
|
||||
TEMPLATES += $(TOP)/configure/tools/getrel
|
||||
TEMPLATES += $(TOP)/configure/tools/installEpics
|
||||
TEMPLATES += $(TOP)/configure/tools/installEpics.pl
|
||||
TEMPLATES += $(TOP)/configure/tools/makeMakefile.pl
|
||||
TEMPLATES += $(TOP)/configure/tools/mkdir.pl
|
||||
TEMPLATES += $(TOP)/configure/tools/mv.pl
|
||||
TEMPLATES += $(TOP)/configure/tools/rm.pl
|
||||
TEMPLATES += $(TOP)/configure/tools/testmkdir
|
||||
|
||||
TEMPLATES += top/exampleApp/Makefile
|
||||
TEMPLATES += top/exampleApp/Db/Makefile
|
||||
TEMPLATES += top/exampleApp/Db/Makefile.Host
|
||||
TEMPLATES += top/exampleApp/Db/dbExample1.db
|
||||
TEMPLATES += top/exampleApp/Db/dbExample2.substitutions
|
||||
TEMPLATES += top/exampleApp/Db/dbExample2.template
|
||||
TEMPLATES += top/exampleApp/src/Makefile
|
||||
TEMPLATES += top/exampleApp/src/Makefile.Host
|
||||
TEMPLATES += top/exampleApp/src/Makefile.Vx
|
||||
TEMPLATES += top/exampleApp/src/base.dbd
|
||||
TEMPLATES += top/exampleApp/src/baseLIBOBJS
|
||||
TEMPLATES += top/exampleApp/src/caExample.c
|
||||
TEMPLATES += top/exampleApp/src/devXxxSoft.c
|
||||
TEMPLATES += top/exampleApp/src/exampleInclude.dbd
|
||||
TEMPLATES += top/exampleApp/src/sncExample.st
|
||||
TEMPLATES += top/exampleApp/src/xxxRecord.c
|
||||
TEMPLATES += top/exampleApp/src/xxxRecord.dbd
|
||||
TEMPLATES += top/exampleApp/src/base.dbd
|
||||
TEMPLATES += top/exampleApp/src/baseLIBOBJS
|
||||
|
||||
TEMPLATES += top/simpleApp/Makefile
|
||||
TEMPLATES += top/simpleApp/Db/Makefile
|
||||
TEMPLATES += top/simpleApp/Db/Makefile.Host
|
||||
TEMPLATES += top/simpleApp/src/Makefile
|
||||
TEMPLATES += top/simpleApp/src/Makefile.Host
|
||||
TEMPLATES += top/simpleApp/src/Makefile.Vx
|
||||
|
||||
TEMPLATES += top/simpleBoot/Makefile
|
||||
TEMPLATES += top/simpleBoot/nfsCommands
|
||||
TEMPLATES += top/simpleBoot/ioc/Makefile
|
||||
TEMPLATES += top/simpleBoot/ioc/st.cmd
|
||||
|
||||
TEMPLATES += top/exampleBoot/Makefile
|
||||
TEMPLATES += top/exampleBoot/nfsCommands
|
||||
TEMPLATES += top/exampleBoot/ioc/Makefile
|
||||
TEMPLATES += top/exampleBoot/ioc/st.cmd
|
||||
|
||||
TEMPLATES += top/simpleApp/Makefile
|
||||
TEMPLATES += top/simpleApp/Db/Makefile
|
||||
TEMPLATES += top/simpleApp/src/Makefile
|
||||
|
||||
TEMPLATES += top/simpleBoot/Makefile
|
||||
TEMPLATES += top/simpleBoot/nfsCommands
|
||||
TEMPLATES += top/simpleBoot/ioc/Makefile
|
||||
TEMPLATES += top/simpleBoot/ioc/st.cmd
|
||||
|
||||
SCRIPTS += makeBaseApp.pl
|
||||
|
||||
include $(TOP)/configure/RULES_BUILD
|
||||
|
||||
@@ -44,7 +44,7 @@ sub ReplaceFilename { # (filename)
|
||||
}
|
||||
if ($app) { # apptypenameApp itself is dynamic, too
|
||||
$file =~ s|/$apptypename|/$appdir|;
|
||||
$file =~ s|/$appdir/config|/config/$apptype|;
|
||||
$file =~ s|/$appdir/configure|/configure/$apptype|;
|
||||
}
|
||||
$file =~ s|_APPNAME_|$appname|;
|
||||
$file =~ s|_APPTYPE_|$apptype|;
|
||||
@@ -78,10 +78,10 @@ if (-r "$top/$apptypename/Replace.pl") {
|
||||
}
|
||||
|
||||
#
|
||||
# Copy <top>/Makefile and config files if not present
|
||||
# Copy <top>/Makefile and configure files if not present
|
||||
#
|
||||
CopyFile("$top/Makefile") unless (-f 'Makefile');
|
||||
find(\&FCopyTree, "$top/config") unless (-d 'config');
|
||||
find(\&FCopyTree, "$top/configure") unless (-d 'configure');
|
||||
|
||||
#
|
||||
# Create ioc directories
|
||||
@@ -130,8 +130,8 @@ sub get_commandline_opts { #no args
|
||||
my ($command) = UnixPath($0);
|
||||
if ($opt_b) { # first choice is -b base
|
||||
$epics_base = UnixPath($opt_b);
|
||||
} elsif (-r "config/RELEASE") { # second choice is config/RELEASE
|
||||
open(IN, "config/RELEASE") or die "Cannot open config/RELEASE";
|
||||
} elsif (-r "configure/RELEASE") { # second choice is configure/RELEASE
|
||||
open(IN, "configure/RELEASE") or die "Cannot open configure/RELEASE";
|
||||
while (<IN>) {
|
||||
chomp;
|
||||
s/EPICS_BASE\s*=\s*// and $epics_base = UnixPath($_), break;
|
||||
@@ -146,8 +146,8 @@ sub get_commandline_opts { #no args
|
||||
# Locate template top directory
|
||||
if ($opt_T) { # first choice is -T templ-top
|
||||
$top = UnixPath($opt_T);
|
||||
} elsif (-r "config/RELEASE") { # second choice is config/RELEASE
|
||||
open(IN, "config/RELEASE") or die "Cannot open config/RELEASE";
|
||||
} elsif (-r "configure/RELEASE") { # second choice is configure/RELEASE
|
||||
open(IN, "configure/RELEASE") or die "Cannot open configure/RELEASE";
|
||||
while (<IN>) {
|
||||
chomp;
|
||||
s/TEMPLATE_TOP\s*=\s*// and $top = UnixPath($_), break;
|
||||
@@ -299,16 +299,16 @@ where
|
||||
If not specified, type is taken from environment
|
||||
If not found in environment, \"default\" is used
|
||||
-T top Set the template top directory (where the application templates are)
|
||||
If not specified, top path is taken from config/RELEASE
|
||||
If config does not exist, top path is taken from environment
|
||||
If not specified, top path is taken from configure/RELEASE
|
||||
If configure does not exist, top path is taken from environment
|
||||
If not found in environment, the templates from EPICS base are used
|
||||
-l List valid application types for this installation
|
||||
If this is specified the other options are not used
|
||||
-a arch Set the IOC architecture (e.g. mv167)
|
||||
If not specified, you will be prompted
|
||||
-b base Set the location of EPICS base (full path)
|
||||
If not specified, base path is taken from config/RELEASE
|
||||
If config does not exist, base path is taken from command
|
||||
If not specified, base path is taken from configure/RELEASE
|
||||
If configure does not exist, base path is taken from command
|
||||
-d Verbose output (useful for debugging)
|
||||
|
||||
Environment:
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#Makefile at top of application tree
|
||||
TOP = .
|
||||
include $(TOP)/configure/CONFIG
|
||||
DIRS += config
|
||||
DIRS += configure
|
||||
DIRS += $(wildcard *App)
|
||||
DIRS += $(wildcard *app)
|
||||
DIRS += $(wildcard iocBoot)
|
||||
|
||||
@@ -1,22 +0,0 @@
|
||||
#CONFIG_APP
|
||||
include $(TOP)/config/RELEASE
|
||||
-include $(TOP)/config/RELEASE.$(HOST_ARCH)
|
||||
include $(EPICS_BASE)/config/CONFIG
|
||||
INSTALL_LOCATION = $(TOP)
|
||||
ifdef INSTALL_LOCATION_APP
|
||||
INSTALL_LOCATION = $(INSTALL_LOCATION_APP)
|
||||
endif
|
||||
|
||||
USER_DBDFLAGS += -I. -I.. -I$(EPICS_BASE)/dbd
|
||||
|
||||
ifdef T_A
|
||||
-include $(TOP)/config/O.$(T_A)/CONFIG_APP_INCLUDE
|
||||
endif
|
||||
|
||||
# Where to install databases
|
||||
INSTALL_DB = $(INSTALL_LOCATION)/db
|
||||
# dbst based database optimization (default: NO)
|
||||
DB_OPT = NO
|
||||
# May be overridden if not all databases should be installed
|
||||
INSTALLDB = $(DB)
|
||||
include $(TOP)/config/CONFIG
|
||||
@@ -1,9 +0,0 @@
|
||||
#
|
||||
# $Id$
|
||||
#
|
||||
|
||||
TOP=..
|
||||
include $(TOP)/config/CONFIG_APP
|
||||
|
||||
include $(TOP)/config/RULES_ARCHS
|
||||
|
||||
@@ -1,19 +0,0 @@
|
||||
#
|
||||
# $Id$
|
||||
#
|
||||
|
||||
TOP=../..
|
||||
include $(TOP)/config/CONFIG_APP
|
||||
|
||||
TARGETS = CONFIG_APP_INCLUDE
|
||||
|
||||
include $(TOP)/config/RULES.Host
|
||||
|
||||
ifeq ($(wildcard $(TOP)/config/RELEASE.$(HOST_ARCH)),$(TOP)/config/RELEASE.$(HOST_ARCH))
|
||||
CONFIG_APP_INCLUDE: $(TOP)/config/RELEASE.$(HOST_ARCH)
|
||||
endif
|
||||
|
||||
CONFIG_APP_INCLUDE: $(TOP)/config/RELEASE $(TOP)/config/CONFIG_APP
|
||||
$(RM) $@
|
||||
@$(PERL) $(TOP)/config/makeConfigAppInclude.pl $(T_A) $@ $(TOP)
|
||||
|
||||
@@ -1,19 +0,0 @@
|
||||
#
|
||||
# $Id$
|
||||
#
|
||||
|
||||
TOP=../..
|
||||
include $(TOP)/config/CONFIG_APP
|
||||
|
||||
TARGETS = CONFIG_APP_INCLUDE
|
||||
|
||||
include $(TOP)/config/RULES.Vx
|
||||
|
||||
ifeq ($(wildcard $(TOP)/config/RELEASE.$(HOST_ARCH)),$(TOP)/config/RELEASE.$(HOST_ARCH))
|
||||
CONFIG_APP_INCLUDE: $(TOP)/config/RELEASE.$(HOST_ARCH)
|
||||
endif
|
||||
|
||||
CONFIG_APP_INCLUDE: $(TOP)/config/RELEASE $(TOP)/config/CONFIG_APP
|
||||
$(RM) $@
|
||||
@$(PERL) $(TOP)/config/makeConfigAppInclude.pl $(T_A) $@ $(TOP)
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
#RULES.Host
|
||||
|
||||
include $(EPICS_BASE)/config/RULES.Host
|
||||
@@ -1,9 +0,0 @@
|
||||
#RULES.Vx
|
||||
include $(EPICS_BASE)/config/RULES.Vx
|
||||
inc:: $(INSTALL_INCREC)
|
||||
#
|
||||
# turn off implicit rules search for all binaries in base
|
||||
#
|
||||
#Jeff says this turned off all dependency checking
|
||||
#????? What to do????
|
||||
#$(EPICS_BASE_BIN)/* : ;
|
||||
@@ -1,9 +0,0 @@
|
||||
#RULES.ioc
|
||||
include $(EPICS_BASE)/config/RULES_DIRS
|
||||
buildInstall:: cdCommands
|
||||
|
||||
cdCommands: Makefile
|
||||
$(PERL) $(TOP)/config/makeIocCdCommands.pl $(ARCH)
|
||||
|
||||
clean::
|
||||
@$(RM) cdCommands
|
||||
@@ -1,2 +0,0 @@
|
||||
#RULES_ARCHS
|
||||
include $(EPICS_BASE)/config/RULES_ARCHS
|
||||
@@ -1,2 +0,0 @@
|
||||
#RULES_DIRS
|
||||
include $(EPICS_BASE)/config/RULES_DIRS
|
||||
@@ -1,3 +1,4 @@
|
||||
#CONFIG
|
||||
include $(TOP)/configure/CONFIG_APP
|
||||
# Add any changes to make rules here
|
||||
#CROSS_COMPILER_TARGET_ARCHS = mv167
|
||||
35
src/makeBaseApp/top/configure/CONFIG_APP
Normal file
35
src/makeBaseApp/top/configure/CONFIG_APP
Normal file
@@ -0,0 +1,35 @@
|
||||
#CONFIG_APP
|
||||
include $(TOP)/configure/RELEASE
|
||||
-include $(TOP)/configure/RELEASE.$(HOST_ARCH)
|
||||
CONFIG=$(EPICS_BASE)/configure
|
||||
include $(EPICS_BASE)/configure/CONFIG
|
||||
INSTALL_LOCATION = $(TOP)
|
||||
ifdef INSTALL_LOCATION_APP
|
||||
INSTALL_LOCATION = $(INSTALL_LOCATION_APP)
|
||||
endif
|
||||
|
||||
#Other share areas can be added similar to following
|
||||
#ifdef <share_top>
|
||||
#USR_INCLUDES += -I$(<share_top>)/include
|
||||
#<share_top>BIN = $(<share_top>)/bin/$(T_A)
|
||||
#endif
|
||||
|
||||
ifdef SHARE
|
||||
USR_INCLUDES += -I$(SHARE)/include
|
||||
SHARE_BIN = $(SHARE)/bin/$(T_A)
|
||||
USER_DBDFLAGS += -I .. -I $(SHARE)/dbd -I $(EPICS_BASE)/dbd
|
||||
endif
|
||||
|
||||
#Following only works if host provides soft links
|
||||
ifdef MASTER_IOCAPPS
|
||||
USR_INCLUDES += -I$(MASTER_IOCAPPS)/include
|
||||
MASTER_IOCAPPS_BIN = $(MASTER_IOCAPPS)/bin/$(T_A)
|
||||
endif
|
||||
|
||||
# Where to install databases
|
||||
INSTALL_DB = $(INSTALL_LOCATION)/db
|
||||
# dbst based database optimization (default: NO)
|
||||
DB_OPT = NO
|
||||
# May be overridden if not all databases should be installed
|
||||
INSTALLDB = $(DB)
|
||||
#######include $(TOP)/configure/CONFIG
|
||||
19
src/makeBaseApp/top/configure/Makefile
Normal file
19
src/makeBaseApp/top/configure/Makefile
Normal file
@@ -0,0 +1,19 @@
|
||||
#
|
||||
# $Id$
|
||||
#
|
||||
|
||||
TOP=..
|
||||
include $(TOP)/configure/CONFIG
|
||||
|
||||
TARGETS = CONFIG_APP_INCLUDE
|
||||
|
||||
include $(TOP)/configure/RULES_BUILD
|
||||
|
||||
ifeq ($(wildcard $(TOP)/configure/RELEASE.$(HOST_ARCH)),$(TOP)/configure/RELEASE.$(HOST_ARCH))
|
||||
CONFIG_APP_INCLUDE: $(TOP)/configure/RELEASE.$(HOST_ARCH)
|
||||
endif
|
||||
|
||||
CONFIG_APP_INCLUDE: $(TOP)/configure/RELEASE $(TOP)/configure/CONFIG_APP
|
||||
$(RM) $@
|
||||
@$(PERL) $(TOP)/configure/makeConfigAppInclude.pl $(T_A) $@ $(TOP)
|
||||
|
||||
@@ -1,9 +1,13 @@
|
||||
#RULES.Db
|
||||
|
||||
include $(CONFIG)/RULES_ARCHS
|
||||
ifdef T_A
|
||||
|
||||
MAKEBPT = $(EPICS_BASE_HOST_BIN)/makeBpt$(EXE)
|
||||
DBEXPAND = $(EPICS_BASE_HOST_BIN)/dbExpand$(EXE)
|
||||
DBST = dbst
|
||||
MAKEDBDEPENDS = $(PERL) $(TOP)/config/makeDbDepends.pl
|
||||
REPLACEVAR = $(PERL) $(TOP)/config/replaceVAR.pl
|
||||
MAKEDBDEPENDS = $(PERL) $(TOP)/configure/makeDbDepends.pl
|
||||
REPLACEVAR = $(PERL) $(TOP)/configure/replaceVAR.pl
|
||||
ifndef WIN32
|
||||
TOUCH = touch
|
||||
else
|
||||
@@ -166,3 +170,5 @@ DEPENDS: $(filter $(patsubst %.db, %.substitutions, $(DB)), $(wildcard *.substit
|
||||
@$(MAKEDBDEPENDS) $^
|
||||
|
||||
-include DEPENDS
|
||||
|
||||
endif
|
||||
9
src/makeBaseApp/top/configure/RULES.ioc
Normal file
9
src/makeBaseApp/top/configure/RULES.ioc
Normal file
@@ -0,0 +1,9 @@
|
||||
#RULES.ioc
|
||||
include $(EPICS_BASE)/configure/RULES_DIRS
|
||||
buildInstall:: cdCommands
|
||||
|
||||
cdCommands: Makefile
|
||||
$(PERL) $(TOP)/configure/makeIocCdCommands.pl $(ARCH)
|
||||
|
||||
clean::
|
||||
@$(RM) cdCommands
|
||||
@@ -1,4 +1,4 @@
|
||||
#RULES.iocBoot
|
||||
DIRS += $(wildcard ioc*)
|
||||
DIRS += $(wildcard as*)
|
||||
include $(EPICS_BASE)/config/RULES_DIRS
|
||||
include $(EPICS_BASE)/configure/RULES_DIRS
|
||||
2
src/makeBaseApp/top/configure/RULES_BUILD
Normal file
2
src/makeBaseApp/top/configure/RULES_BUILD
Normal file
@@ -0,0 +1,2 @@
|
||||
#RULES_BUILD
|
||||
include $(EPICS_BASE)/configure/RULES_BUILD
|
||||
2
src/makeBaseApp/top/configure/RULES_DIRS
Normal file
2
src/makeBaseApp/top/configure/RULES_DIRS
Normal file
@@ -0,0 +1,2 @@
|
||||
#RULES_DIRS
|
||||
include $(EPICS_BASE)/configure/RULES_DIRS
|
||||
@@ -1,5 +1,5 @@
|
||||
#RULES_TOP
|
||||
include $(EPICS_BASE)/config/RULES_TOP
|
||||
include $(EPICS_BASE)/configure/RULES_TOP
|
||||
|
||||
uninstall::
|
||||
@$(RMDIR) $(INSTALL_DB)
|
||||
@@ -15,8 +15,8 @@ print OUT "#Do not modify thie file.\n";
|
||||
print OUT "#This file is created during the build.\n";
|
||||
|
||||
@files =();
|
||||
push(@files,"$top/config/RELEASE");
|
||||
push(@files,"$top/config/RELEASE.${arch}");
|
||||
push(@files,"$top/configure/RELEASE");
|
||||
push(@files,"$top/configure/RELEASE.${arch}");
|
||||
foreach $file (@files) {
|
||||
if (-r "$file") {
|
||||
open(IN, "$file") or die "Cannot open $file\n";
|
||||
@@ -24,7 +24,7 @@ print OUT "top = \"$top\"\n";
|
||||
$topbin = "${top}/bin/${arch}";
|
||||
#skip check that top/bin/${arch} exists; src may not have been builT
|
||||
print OUT "topbin = \"$topbin\"\n";
|
||||
$release = "$top/config/RELEASE";
|
||||
$release = "$top/configure/RELEASE";
|
||||
if (-r "$release") {
|
||||
open(IN, "$release") or die "Cannot open $release\n";
|
||||
while ($line = <IN>) {
|
||||
@@ -3,8 +3,7 @@ include $(TOP)/configure/CONFIG
|
||||
#----------------------------------------
|
||||
# ADD MACRO DEFINITIONS AFTER THIS LINE
|
||||
|
||||
#USER_DBDFLAGS +=
|
||||
|
||||
USER_DBDFLAGS += -I .. -I $(EPICS_BASE)/dbd
|
||||
RECTYPES += xxxRecord.h
|
||||
DBDEXPAND = exampleInclude.dbd
|
||||
DBDNAME = exampleApp.dbd
|
||||
@@ -17,12 +16,15 @@ PROD_LIBS += Osi
|
||||
ca_DIR = $(EPICS_BASE_LIB)
|
||||
Db_DIR = $(EPICS_BASE_LIB)
|
||||
Com_DIR = $(EPICS_BASE_LIB)
|
||||
Osi_DIR = $(EPICS_BASE_LIB)
|
||||
|
||||
PROD += caExample
|
||||
|
||||
LIBOBJS += xxxRecord.o
|
||||
LIBOBJS += devXxxSoft.o
|
||||
LIBOBJS += sncExample.o
|
||||
IOC_LIBRARY = exampleLib
|
||||
|
||||
exampleLib_SRCS += xxxRecord.c
|
||||
exampleLib_SRCS += devXxxSoft.c
|
||||
exampleLib_SRCS += sncExample.c
|
||||
|
||||
LIBOBJS += $(EPICS_BASE_BIN)/iocCore
|
||||
LIBOBJS += $(EPICS_BASE_BIN)/seq
|
||||
@@ -33,23 +35,17 @@ LIBOBJS += $(EPICS_BASE_BIN)/seq
|
||||
|
||||
# or
|
||||
EXPANDED_DBD = exampleApp.dbd
|
||||
LIBOBJS += registerRecordDeviceDriver.o
|
||||
exampleLib_SRCS += registerRecordDeviceDriver.c
|
||||
#end choices
|
||||
|
||||
|
||||
DBD = exampleApp.dbd
|
||||
|
||||
include ../baseLIBOBJS
|
||||
|
||||
LIBOBJS += $(EPICS_BASE_BIN)/iocCore
|
||||
LIBOBJS += $(EPICS_BASE_BIN)/seq
|
||||
|
||||
IOC_LIBRARY = exampleLib
|
||||
-include ../baseLIBOBJS
|
||||
|
||||
#Note that the command line that builds the
|
||||
#library $(LIBNAME) may be HUGE (>3kB)
|
||||
#
|
||||
include $(TOP)/configure/RULES_BUILD
|
||||
include $(TOP)/config/RULES.registerRecordDeviceDriver
|
||||
include $(TOP)/configure/RULES.registerRecordDeviceDriver
|
||||
#----------------------------------------
|
||||
# ADD RULES AFTER THIS LINE
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
TOP = ..
|
||||
include $(TOP)/config/CONFIG_APP
|
||||
include $(TOP)/configure/CONFIG
|
||||
DIRS += $(wildcard *ioc*)
|
||||
include $(TOP)/config/RULES.iocBoot
|
||||
include $(TOP)/configure/RULES.iocBoot
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
TOP = ../..
|
||||
include $(TOP)/config/CONFIG_APP
|
||||
include $(TOP)/configure/CONFIG
|
||||
ARCH = _ARCH_
|
||||
include $(TOP)/config/RULES.ioc
|
||||
include $(TOP)/configure/RULES.ioc
|
||||
|
||||
@@ -1,3 +1,30 @@
|
||||
TOP=../..
|
||||
include $(TOP)/config/CONFIG_APP
|
||||
include $(TOP)/config/RULES_ARCHS
|
||||
include $(TOP)/configure/CONFIG
|
||||
|
||||
#----------------------------------------
|
||||
# ADD MACRO DEFINITIONS AFTER THIS LINE
|
||||
|
||||
#----------------------------------------------------
|
||||
# Optimization of DB files using dbst (default: NO)
|
||||
#DB_OPT = YES
|
||||
|
||||
#----------------------------------------------------
|
||||
# Optimization needs the name of the appropriate
|
||||
# dbd file (compare with ../src/Makefile.Vx)
|
||||
#DBDNAME = _APPNAME_.dbd
|
||||
|
||||
#----------------------------------------------------
|
||||
# Add databases, templates, substitutions like this
|
||||
#DB += _APPNAME_.db
|
||||
|
||||
#----------------------------------------------------
|
||||
# Declare template files which do not show up in DB
|
||||
#USES_TEMPLATE += _APPNAME_.template
|
||||
|
||||
#----------------------------------------------------
|
||||
# The following lines are for local dbd expansion
|
||||
#DBDEXPAND = _APPNAME_Include.dbd
|
||||
|
||||
include $(TOP)/configure/RULES.Db
|
||||
#----------------------------------------
|
||||
# ADD RULES AFTER THIS LINE
|
||||
|
||||
@@ -1,30 +0,0 @@
|
||||
# Makefile.Host
|
||||
TOP = ../../..
|
||||
include $(TOP)/config/CONFIG_APP
|
||||
#----------------------------------------
|
||||
# ADD MACRO DEFINITIONS AFTER THIS LINE
|
||||
|
||||
#----------------------------------------------------
|
||||
# Optimization of DB files using dbst (default: NO)
|
||||
#DB_OPT = YES
|
||||
|
||||
#----------------------------------------------------
|
||||
# Optimization needs the name of the appropriate
|
||||
# dbd file (compare with ../src/Makefile.Vx)
|
||||
#DBDNAME = _APPNAME_.dbd
|
||||
|
||||
#----------------------------------------------------
|
||||
# Add databases, templates, substitutions like this
|
||||
#DB += _APPNAME_.db
|
||||
|
||||
#----------------------------------------------------
|
||||
# Declare template files which do not show up in DB
|
||||
#USES_TEMPLATE += _APPNAME_.template
|
||||
|
||||
#----------------------------------------------------
|
||||
# The following lines are for local dbd expansion
|
||||
#DBDEXPAND = _APPNAME_Include.dbd
|
||||
|
||||
include $(TOP)/config/RULES.Db
|
||||
#----------------------------------------
|
||||
# ADD RULES AFTER THIS LINE
|
||||
@@ -1,7 +1,7 @@
|
||||
TOP = ..
|
||||
include $(TOP)/config/CONFIG_APP
|
||||
include $(TOP)/configure/CONFIG
|
||||
DIRS += $(wildcard *src*)
|
||||
DIRS += $(wildcard *Src*)
|
||||
DIRS += $(wildcard *db*)
|
||||
DIRS += $(wildcard *Db*)
|
||||
include $(TOP)/config/RULES_DIRS
|
||||
include $(TOP)/configure/RULES_DIRS
|
||||
|
||||
@@ -28,9 +28,8 @@ Osi_DIR = $(EPICS_BASE_LIB)
|
||||
#LIBOBJS += registerRecordDeviceDriver.o
|
||||
#end choices
|
||||
|
||||
|
||||
include $(TOP)/configure/RULES_BUILD
|
||||
include $(TOP)/config/RULES.registerRecordDeviceDriver
|
||||
include $(TOP)/configure/RULES.registerRecordDeviceDriver
|
||||
#----------------------------------------
|
||||
# ADD RULES AFTER THIS LINE
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
TOP = ..
|
||||
include $(TOP)/config/CONFIG_APP
|
||||
include $(TOP)/configure/CONFIG
|
||||
DIRS += $(wildcard *ioc*)
|
||||
include $(TOP)/config/RULES.iocBoot
|
||||
include $(TOP)/configure/RULES.iocBoot
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
TOP = ../..
|
||||
include $(TOP)/config/CONFIG_APP
|
||||
include $(TOP)/configure/CONFIG
|
||||
ARCH = _ARCH_
|
||||
include $(TOP)/config/RULES.ioc
|
||||
include $(TOP)/configure/RULES.ioc
|
||||
|
||||
Reference in New Issue
Block a user