diff --git a/config/CONFIG b/config/CONFIG deleted file mode 100644 index 56e8f1224dc5a5aa2459841bac290ff0a1eec206..0000000000000000000000000000000000000000 --- a/config/CONFIG +++ /dev/null @@ -1,3 +0,0 @@ -#CONFIG -# Add any changes to make rules here -#CROSS_COMPILER_TARGET_ARCHS = mv167 diff --git a/config/CONFIG_APP b/config/CONFIG_APP deleted file mode 100644 index a4fb30530dacbbc37d5f54a7ea80be44757c06da..0000000000000000000000000000000000000000 --- a/config/CONFIG_APP +++ /dev/null @@ -1,20 +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 - -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 diff --git a/config/Makefile b/config/Makefile deleted file mode 100644 index 67946acba038e7e7569f909285a1e2fad657bbc7..0000000000000000000000000000000000000000 --- a/config/Makefile +++ /dev/null @@ -1,9 +0,0 @@ -# -# Makefile,v 1.1.2.1 1999/07/15 19:55:30 jba Exp -# - -TOP=.. -include $(TOP)/config/CONFIG_APP - -include $(TOP)/config/RULES_ARCHS - diff --git a/config/Makefile.Host b/config/Makefile.Host deleted file mode 100644 index eff30a28764eb8ad26f2505ac5a6c3d7148f9522..0000000000000000000000000000000000000000 --- a/config/Makefile.Host +++ /dev/null @@ -1,20 +0,0 @@ -# -# Makefile.Host,v 1.1.2.2 1999/07/30 21:16:06 lange Exp -# - -TOP=../.. -include $(TOP)/config/CONFIG_APP - -TARGETS = CONFIG_APP_INCLUDE - -include $(TOP)/config/RULES.Host - -inc:: $(TARGETS) - -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) diff --git a/config/Makefile.Vx b/config/Makefile.Vx deleted file mode 100644 index fe7b9f6efb30f9fe2a061ed6cb830fd607ab4f3e..0000000000000000000000000000000000000000 --- a/config/Makefile.Vx +++ /dev/null @@ -1,20 +0,0 @@ -# -# Makefile.Vx,v 1.1.2.2 1999/07/30 21:16:06 lange Exp -# - -TOP=../.. -include $(TOP)/config/CONFIG_APP - -TARGETS = CONFIG_APP_INCLUDE - -include $(TOP)/config/RULES.Vx - -inc:: $(TARGETS) - -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) diff --git a/config/RELEASE b/config/RELEASE deleted file mode 100644 index adc16c0e918b5033c2439c136a5b06e0b6929121..0000000000000000000000000000000000000000 --- a/config/RELEASE +++ /dev/null @@ -1,29 +0,0 @@ -# RELEASE - Location of external products -# -# (Architecture dependent declarations should go into RELEASE.<arch>) -# -# Note: This file will be scanned to automatically generate -# include path definitions etc. -# The order of the following declarations will be retained -# within those definitions. -# -# Add your declarations here - -SUPPORT=!!Set to <supporttop> complete pathname!! - -include $(SUPPORT)/config/IP_RELEASE -include $(SUPPORT)/config/IP330_RELEASE -include $(SUPPORT)/config/CAMAC_RELEASE -include $(SUPPORT)/config/MCA_RELEASE -include $(SUPPORT)/config/LOVE_RELEASE -include $(SUPPORT)/config/IPUNIDIG_RELEASE -include $(SUPPORT)/config/DAC128V_RELEASE -include $(SUPPORT)/config/MOTOR_RELEASE -include $(SUPPORT)/config/STD_RELEASE -include $(SUPPORT)/config/BITBUS_RELEASE -include $(SUPPORT)/config/MPFGPIB_RELEASE -include $(SUPPORT)/config/MPFSERIAL_RELEASE -include $(SUPPORT)/config/MPF_RELEASE -include $(SUPPORT)/config/RELEASE - -TEMPLATE_TOP=$(EPICS_BASE)/templates/makeBaseApp/top diff --git a/config/RULES.Db b/config/RULES.Db deleted file mode 100644 index 2b1d383289cb983be113dc56197ee851375c986a..0000000000000000000000000000000000000000 --- a/config/RULES.Db +++ /dev/null @@ -1,202 +0,0 @@ -# RULES.Db,v 1.9.6.4 2001/08/20 16:36:50 jba Exp -# -# Rules for making things related to databases -# -MAKEBPT = $(EPICS_BASE_HOST_BIN)/makeBpt$(EXE) -DBLOADTEMPLATE = $(EPICS_BASE_HOST_BIN)/dbLoadTemplate$(EXE) -DBEXPAND = $(EPICS_BASE_HOST_BIN)/dbExpand$(EXE) -DBST = dbst -MAKEDBDEPENDS = $(PERL) $(TOP)/config/makeDbDepends.pl -REPLACEVAR = $(PERL) $(TOP)/config/replaceVAR.pl -ifndef WIN32 -TOUCH = touch -else -TOUCH = type NUL >> -endif - -#----------------------------------------------------------------- -# if we are not building base add base dbd dirs - -ifneq ($(EPICS_BASE),$(TOP)) -ifneq ($(EPICS_BASE),$(INSTALL_LOCATION)) -EPICS_DBDFLAGS += -I $(EPICS_BASE)/dbd -endif -endif - -#--------------------------------------------------------------- -# ---------------------------------------------------- -# create names (lists) for installed things -# ---------------------------------------------------- - -INSTALL_BPTS = $(BPTS:%= $(INSTALL_DBD)/%) -INSTALL_DBDS = $(DBDINSTALL:%= $(INSTALL_DBD)/%) -INSTALL_DBDNAME = $(DBDNAME:%= $(INSTALL_DBD)/%) -INSTALL_DATA = $(INSTALLDB:%=$(INSTALL_DB)/%) -INSTALL_TEMPLATES = $(filter %.template,$(INSTALL_DATA)) - -#--------------------------------------------------------------- -# Main targets - -all:: install - -inc:: $(INSTALL_DBDS) $(INSTALL_BPTS) $(INSTALL_TEMPLATES) - -rebuild:: clean install - -install:: inc buildInstall - -buildInstall:: build $(INSTALL_DATA) - -depends:: - -clean:: - @echo "Cleaning" - @$(RM) $(DB) $(DBDNAME) *.template *.substitutions *.db.raw \ - *.db-stamp *.edf esiread.cnf - -##################################################### "Foreign" templates - -TEMPLATE_LINKS = $(filter-out $(notdir $(USES_TEMPLATE)), $(USES_TEMPLATE)) -TEMPLATE_FILES = $(filter $(notdir $(USES_TEMPLATE)), $(USES_TEMPLATE)) -DB_STAMP = $(patsubst %.db, %.db-stamp, $(DB)) -DB_REALTARGET = $(patsubst %.db-stamp, %.db, $@) - -ifneq '$(TEMPLATE_LINKS)' '' -build:: $(notdir $(TEMPLATE_LINKS)) -endif -build:: $(INSTALL_DBDNAME) $(TEMPLATE_FILES) $(DB_STAMP) - -$(notdir $(TEMPLATE_LINKS)): %.template: -ifndef WIN32 - @$(RM) $(notdir $(TEMPLATE_LINKS)) - ln -s $(TEMPLATE_LINKS) . -# Workaround for dbLoadTemplate bug: terminate here if link target doesn't exist - @cat $(TEMPLATE_LINKS) > /dev/null -else - @$(RM) $(notdir $(TEMPLATE_LINKS)) - $(CP) $(TEMPLATE_LINKS) . -endif - -##################################################### Inflated or plain databases - -$(INSTALL_DB)/%.db: %.db-stamp - @echo "Installing database $@" - @$(INSTALL) -d -m 644 $(patsubst %.db-stamp, %.db, $<) $(@D) - -# Must have DBDNAME defined to use dbst optimization -ifndef DBDNAME -DB_OPT = NO -endif - -# dbst based database optimization -ifeq '$(DB_OPT)' 'YES' -.PRECIOUS: %.db.raw -%.db-stamp: %.db.raw $(INSTALL_DBD)/$(DBDNAME) - @echo "Optimizing database $@" - $(DBST) $(INSTALL_DBD)/$(DBDNAME) $< -d > $(DB_REALTARGET) - @$(TOUCH) $@ -%.db-stamp: %.t.db.raw $(INSTALL_DBD)/$(DBDNAME) - @echo "Optimizing database $@" - $(DBST) $(INSTALL_DBD)/$(DBDNAME) $< -d > $(DB_REALTARGET) - @$(TOUCH) $@ -else -# NO optimization => move it and keep a stamp -%.db-stamp: %.db.raw - @$(MV) $< $(DB_REALTARGET) - @$(TOUCH) $@ - @$(TOUCH) $< -%.db-stamp: %.t.db.raw - @$(MV) $< $(DB_REALTARGET) - @$(TOUCH) $@ - @$(TOUCH) $< -endif - -%.t.db.raw: %.substitutions - @echo "Inflating database from $<" - @$(RM) $@ - @$(DBLOADTEMPLATE) $< > $@ - -##################################################### CapFast filter - -%.edf:: ../%.sch $(DEPSCHS) - @if [ ! -f cad.rc -a -r ../cad.rc ] ; then ln -s ../cad.rc ; fi - $(SCH2EDIF) $(SCH2EDIF_SYSFLAGS) $(SCH2EDIF_FLAGS) $< - -##################################################### Substitution files - -$(INSTALL_DB)/%.substitutions: %.substitutions - @echo "Installing $@" - @$(INSTALL) -d -m 644 $(@F) $(@D) - -%.substitutions:: ../%.substitutions - @$(CP) $< $@ - -ifdef CREATESUBSTITUTIONS -%.substitutions:: $(word $(words $(CREATESUBSTITUTIONS)),$(CREATESUBSTITUTIONS)) - @$(CREATESUBSTITUTIONS) $* -endif - -# Better make it PRECIOUS (to get around make bug) -.PRECIOUS: %.substitutions - -##################################################### Template databases - -# Installed template files (dbLoadTemplate() on IOC side) -$(INSTALL_DB)/%.template: %.template - @echo "Installing $@" - @$(INSTALL) -d -m 644 $(@F) $(@D) - -%.template:: ../%.template - @$(CP) $< $@ - -%.template: %.edf - $(E2DB) $(E2DB_SYSFLAGS) $(E2DB_FLAGS) -n $@.VAR $< - @$(REPLACEVAR) < $@.VAR > $@ - @$(RM) $@.VAR - -##################################################### Flat databases - -%.db.raw:: ../%.db - $(CP) $< $@ - -%.db.raw: %.edf - $(E2DB) $(E2DB_SYSFLAGS) $(E2DB_FLAGS) -n $@.VAR $< - @$(REPLACEVAR) < $@.VAR > $@ - @$(RM) $@.VAR - -##################################################### DBD stuff - -$(INSTALL_DBD)/%: % - @echo "Installing $@" - @$(INSTALL) -d -m 644 $< $(@D) - -$(INSTALL_DBD)/%:: ../% - @echo "Installing $@" - @$(INSTALL) -d -m 644 $< $(@D) - -bpt%.dbd: bpt%.data - $(RM) $@ - $(MAKEBPT) $< - -bpt%.dbd:: ../bpt%.data - $(RM) $@ - $(MAKEBPT) $< - -# Patch for old applications -ifdef USER_DBDFLAGS -DBDFLAGS = $(USER_DBDFLAGS) -endif - -ifdef DBDEXPAND -$(DBDNAME): ../$(DBDEXPAND) - @echo "Expanding dbd" - @$(RM) $@ - $(DBEXPAND) $(DBDFLAGS) $< > $@ -endif - -##################################################### Dependencies - -DEPENDS: $(filter $(patsubst %.db, %.substitutions, $(DB)), $(wildcard *.substitutions)) - @$(MAKEDBDEPENDS) $^ - --include DEPENDS diff --git a/config/RULES.Host b/config/RULES.Host deleted file mode 100644 index ffbb575f1cef12558c0fb0131371c10e45487682..0000000000000000000000000000000000000000 --- a/config/RULES.Host +++ /dev/null @@ -1,3 +0,0 @@ -#RULES.Host - -include $(EPICS_BASE)/config/RULES.Host diff --git a/config/RULES.Vx b/config/RULES.Vx deleted file mode 100644 index fb9761cec3e5211d8885e4fc0f04e19f4fec1d1a..0000000000000000000000000000000000000000 --- a/config/RULES.Vx +++ /dev/null @@ -1,14 +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)/* : ; - - -# Library should be rebuilt because LIBOBJS may have changed. -$(LIBNAME): ../Makefile.Vx - diff --git a/config/RULES.ioc b/config/RULES.ioc deleted file mode 100644 index c8a3c0a8a14787ec1c498a385a94f985c63b89b3..0000000000000000000000000000000000000000 --- a/config/RULES.ioc +++ /dev/null @@ -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 diff --git a/config/RULES.iocBoot b/config/RULES.iocBoot deleted file mode 100644 index 60988fd05f9bfba36fea71648b06e81d7e91231a..0000000000000000000000000000000000000000 --- a/config/RULES.iocBoot +++ /dev/null @@ -1,4 +0,0 @@ -#RULES.iocBoot -DIRS += $(wildcard ioc*) -DIRS += $(wildcard as*) -include $(EPICS_BASE)/config/RULES_DIRS diff --git a/config/RULES_ARCHS b/config/RULES_ARCHS deleted file mode 100644 index 812c5c2ee4d2983be3cb5c5ed803b5c522b75b84..0000000000000000000000000000000000000000 --- a/config/RULES_ARCHS +++ /dev/null @@ -1,2 +0,0 @@ -#RULES_ARCHS -include $(EPICS_BASE)/config/RULES_ARCHS diff --git a/config/RULES_DIRS b/config/RULES_DIRS deleted file mode 100644 index 1e1c54edeb7e817982dbbabbe8a9a7a41cb037ac..0000000000000000000000000000000000000000 --- a/config/RULES_DIRS +++ /dev/null @@ -1,2 +0,0 @@ -#RULES_DIRS -include $(EPICS_BASE)/config/RULES_DIRS diff --git a/config/RULES_TOP b/config/RULES_TOP deleted file mode 100644 index d23bc9ca674cf04840e55863ff0e78589370f557..0000000000000000000000000000000000000000 --- a/config/RULES_TOP +++ /dev/null @@ -1,5 +0,0 @@ -#RULES_TOP -include $(EPICS_BASE)/config/RULES_TOP - -uninstall:: - @$(RMDIR) $(INSTALL_DB) diff --git a/config/makeConfigAppInclude.pl b/config/makeConfigAppInclude.pl deleted file mode 100644 index f1f947e083c3fda8e10486fff2202dbe2471752a..0000000000000000000000000000000000000000 --- a/config/makeConfigAppInclude.pl +++ /dev/null @@ -1,96 +0,0 @@ -# makeConfigAppInclude.pl,v 1.1.2.3 1999/07/30 21:14:18 lange Exp - -eval 'exec perl -S $0 ${1+"$@"}' # -*- Mode: perl -*- - if $running_under_some_shell; # makeConfigAppInclude.pl - -use Cwd; - -$arch = $ARGV[0]; -$outfile = $ARGV[1]; -$top = $ARGV[2]; -# Get the absolute path name of $(TOP) -$savedir = Cwd::getcwd(); -Cwd::chdir($top); -$top_abs = Cwd::getcwd(); -Cwd::chdir($savedir); -# Add TOP to macro list. -$applications{TOP} = $top_abs; - -unlink("${outfile}"); -open(OUT,">${outfile}") or die "$! opening ${outfile}"; -print OUT "#Do not modify this file.\n"; -print OUT "#This file is created during the build.\n"; - -@files =(); -push(@files,"$top/config/RELEASE"); -push(@files,"$top/config/RELEASE.${arch}"); -foreach $file (@files) { - if (-r "$file") { - open(IN, "$file") or die "Cannot open $file\n"; - while ($line = <IN>) { - next if ( $line =~ /\s*#/ ); - chomp($line); - $_ = $line; - ($prefix,$macro,$post) = /(.*)\s* \s*\$\((.*)\)(.*)/; - #test for "include" command - if ($prefix eq "include") { - if ($macro eq "") { - # true if no macro is present - #the following looks for - #prefix = post - ($prefix,$post) = /(.*)\s* \s*(.*)/; - } - else - { - $base = $applications{$macro}; - if ($base eq "") - { - #print "error: $macro was not previously defined\n"; - } - else - { - $post = $base . $post; - } - } - push(@files,"$post") - } - else { - #the following looks for - # prefix = $(macro)post - ($prefix,$macro,$post) = /(.*)\s*=\s*\$\((.*)\)(.*)/; - if ($macro eq "") { # true if no macro is present - # the following looks for - # prefix = post - ($prefix,$post) = /(.*)\s*=\s*(.*)/; - } else { - $base = $applications{$macro}; - if ($base eq "") { - #print "error: $macro was not previously defined\n"; - } else { - $post = $base . $post; - } - } - - $prefix =~ s/^\s+|\s+$//g; # strip leading and trailing whitespace. - $applications{$prefix} = $post; - if ( -d "$post") { #check that directory exists - print OUT "\n"; - if ( -d "$post/bin/$arch") { #check that directory exists - print OUT "${prefix}_BIN = $post/bin/${arch}\n"; - } - if ( -d "$post/lib/$arch") { #check that directory exists - print OUT "${prefix}_LIB = $post/lib/${arch}\n"; - } - if ( -d "$post/include") { #check that directory exists - print OUT "EPICS_INCLUDES += -I$post/include\n"; - } - if ( -d "$post/dbd") { #check that directory exists - print OUT "EPICS_DBDFLAGS += -I $post/dbd\n"; - } - } - } - } - close IN; - } -} -close OUT; diff --git a/config/makeDbDepends.pl b/config/makeDbDepends.pl deleted file mode 100644 index 3069fb3e243af87f7426f081fb20e91575239294..0000000000000000000000000000000000000000 --- a/config/makeDbDepends.pl +++ /dev/null @@ -1,23 +0,0 @@ -eval 'exec perl -S $0 ${1+"$@"}' # -*- Mode: perl -*- - if $running_under_some_shell; # makeDbDepends.pl - -# Called from within the object directory. -# Searches the .substitutions files (from the command line) for -# "file xxx {" entries to create a .DEPENDS file - -open(OUT, ">.DEPENDS") or die "Cannot open .DEPENDS: $!"; - -foreach $file (@ARGV) { - open(IN, "<$file") or die "Cannot open $file: $!"; - @substfile = <IN>; - close IN or die "Cannot close $file: $!"; - - @depends = grep { s/^\s*file\s*(.*)\s*\{.*$/\1/ } @substfile; - chomp @depends; - - if (@depends) { - $file =~ s/\.substitutions/\.t.db.raw/; - print OUT "${file}:: @depends\n"; - } -} -close OUT or die "Cannot close $file: $!"; diff --git a/config/makeIocCdCommands.pl b/config/makeIocCdCommands.pl deleted file mode 100644 index 8637e4786e9127391772083aebc830aa9d6394c8..0000000000000000000000000000000000000000 --- a/config/makeIocCdCommands.pl +++ /dev/null @@ -1,90 +0,0 @@ -eval 'exec perl -S $0 ${1+"$@"}' # -*- Mode: perl -*- - if $running_under_some_shell; # makeIocCdCommands.pl - -use Cwd; - -$cwd = cwd(); -#hack for sun4 -$cwd =~ s|/tmp_mnt||; -$arch = $ARGV[0]; - -unlink("cdCommands"); -open(OUT,">cdCommands") or die "$! opening cdCommands"; -print OUT "startup = \"$cwd\"\n"; - -#appbin is kept for compatibility with 3.13.1 -$appbin = $cwd; -$appbin =~ s/iocBoot.*//; -$appbin = $appbin . "/bin/${arch}"; -print OUT "appbin = \"$appbin\"\n"; - -$top = $cwd; -$top =~ s/\/iocBoot.*//; -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"; -# Add TOP to macro list. -$applications{TOP} = $top; - -@files =(); -push(@files,"$top/config/RELEASE"); -foreach $file (@files) { - if (-r "$file") { - open(IN, "$file") or die "Cannot open $file\n"; - while ($line = <IN>) { - next if ( $line =~ /\s*#/ ); - chomp($line); - $_ = $line; - ($prefix,$macro,$post) = /(.*)\s* \s*\$\((.*)\)(.*)/; - #test for "include" command - if ($prefix eq "include") { - if ($macro eq "") { - # true if no macro is present - #the following looks for - #prefix = post - ($prefix,$post) = /(.*)\s* \s*(.*)/; - } - else { - $base = $applications{$macro}; - if ($base eq "") { - #print "error: $macro was not previously defined\n"; - } - else { - $post = $base . $post; - } - } - push(@files,"$post") - } - else { - #the following looks for - # prefix = $(macro)post - ($prefix,$macro,$post) = /(.*)\s*=\s*\$\((.*)\)(.*)/; - if ($macro eq "") { # true if no macro is present - # the following looks for - # prefix = post - ($prefix,$post) = /(.*)\s*=\s*(.*)/; - } else { - $base = $applications{$macro}; - if ($base eq "") { - #print "error: $macro was not previously defined\n"; - } else { - $post = $base . $post; - } - } - - $prefix =~ s/^\s+|\s+$//g; # strip leading and trailing whitespace. - $applications{$prefix} = $post; - $app = lc($prefix); - if ( -d "$post") { #check that directory exists - print OUT "$app = \"$post\"\n"; - } - if ( -d "$post/bin/$arch") { #check that directory exists - print OUT "${app}bin = \"$post/bin/$arch\"\n"; - } - } - } - close IN; - } -} -close OUT; diff --git a/config/replaceVAR.pl b/config/replaceVAR.pl deleted file mode 100644 index e874740078c2c8452c491d2e671a5ac50b45c29b..0000000000000000000000000000000000000000 --- a/config/replaceVAR.pl +++ /dev/null @@ -1,12 +0,0 @@ -eval 'exec perl -S $0 ${1+"$@"}' # -*- Mode: perl -*- - if $running_under_some_shell; # replaceVAR.pl - -# Called from within the object directory -# Replaces VAR(xxx) with $(xxx) -# and VAR_xxx_ with $(xxx) - -while (<STDIN>) { - s/VAR\(/\$\(/g; - s/VAR_([^_]*)_/\$\($1\)/g; - print; -}