diff --git a/eo/tutorial/Templates/MakeSimple.tmpl b/eo/tutorial/Templates/MakeSimple.tmpl deleted file mode 100644 index 85ddd69d..00000000 --- a/eo/tutorial/Templates/MakeSimple.tmpl +++ /dev/null @@ -1,28 +0,0 @@ -# sample makefile for building an EA evolving a new genotype - -# START eventually modify the name of EO dir -DIR_EO = ../../src -# END eventually modify the name of EO dir -LIB_EO = $(DIR_EO)/utils/libeoutils.a $(DIR_EO)/libeo.a - -.cpp: ; c++ -DPACKAGE=\"eo\" -DVERSION=\"0.9.3\" -I. -I$(DIR_EO) -Wall -Wno-deprecated -g -o $@ $*.cpp $(LIB_EO) - -.cpp.o: ; c++ -DPACKAGE=\"eo\" -DVERSION=\"0.9.3\" -I. -I$(DIR_EO) -Wall -Wno-deprecated -g -c $*.cpp - -# local sources -SOURCES = MyStructEA.cpp \ - eoMyStruct.h \ - eoMyStructEvalFunc.h \ - eoMyStructInit.h \ - eoMyStructMutation.h \ - eoMyStructQuadCrossover.h - -MyStructEA : MyStructEA.cpp - c++ -I. -I$(DIR_EO) -Wno-deprecated -g -o $@ MyStructEA.cpp $(LIB_EO) -lm - -tar : ; tar czvf MyStruct.tgz *.h *.cpp Makefile - -clean : ; /bin/rm *.o MyStructEA - -########## local dependencies -MyStructEA : $(SOURCES) diff --git a/eo/tutorial/Templates/Makefile.tmpl b/eo/tutorial/Templates/Makefile.tmpl deleted file mode 100644 index 722a78dc..00000000 --- a/eo/tutorial/Templates/Makefile.tmpl +++ /dev/null @@ -1,48 +0,0 @@ -# sample makefile for building an EA evolving a new genotype - -# START eventually modify the name of EO dir -DIR_EO = ../../src -# END eventually modify the name of EO dir - -# eo libs -LIB_EO = $(DIR_EO)/utils/libeoutils.a $(DIR_EO)/libeo.a - -# implicit compile rules -.SUFFIXES: .cpp -.cpp: ; $(CXX) -DPACKAGE=\"eo\" -DVERSION=\"0.9.3\" -I. -I$(DIR_EO) -Wall -g -o $@ $*.cpp $(LIB_EO) - -.cpp.o: ; $(CXX) -DPACKAGE=\"eo\" -DVERSION=\"0.9.3\" -I. -I$(DIR_EO) -Wall -g -c $*.cpp - -# local sources -COMMON_SOURCES = eoMyStruct.h \ - eoMyStructEvalFunc.h \ - eoMyStructInit.h \ - eoMyStructMutation.h \ - eoMyStructQuadCrossover.h \ - make_genotype_MyStruct.h \ - make_op_MyStruct.h - -NO_LIB_SOURCES = MyStructEA.cpp - -LIB_SOURCES = MyStructLibEA.cpp make_MyStruct.cpp - -SOURCES = $(COMMON_SOURCES) MyStructEA.cpp MyStructLibEA.cpp make_MyStruct.cpp - -ALL = MyStructEA MyStructLibEA - -MyStructEA : MyStructEA.cpp - $(CXX) -I. -I$(DIR_EO) -g -o $@ MyStructEA.cpp $(LIB_EO) -lm - -MyStructLibEA : MyStructLibEA.o make_MyStruct.o - $(CXX) -g -o $@ MyStructLibEA.o make_MyStruct.o $(LIB_EO) -lm - -tar : ; tar czvf MyStruct.tgz *.h *.cpp Makefile - -all : $(ALL) - -clean : ; /bin/rm *.o $(ALL) - -########## local dependencies -MyStructEA.cpp : $(COMMON_SOURCES) -MyStructLibEA.o : $(COMMON_SOURCES) MyStructLibEA.cpp -make_MyStruct.o : make_MyStruct.cpp eoMyStruct.h diff --git a/eo/tutorial/Templates/create.sh b/eo/tutorial/Templates/create.sh deleted file mode 100755 index 25aa1bd3..00000000 --- a/eo/tutorial/Templates/create.sh +++ /dev/null @@ -1,62 +0,0 @@ -#! /bin/tcsh -f -if ($PWD:t != Templates) then - echo You must be in the Template dir to run that script - exit -endif - -if ($#argv < 1) then - echo "Usage $0 ApplicationName [TargetDirName]" - echo " will create ../TargetDirName if necessary" - echo " (default dir name = ApplicationName)," - echo " and will put there all files that are strictly necessary" - echo " to compile and run you Application from there" - exit -endif - -echo " " # we're going to do something - -if ($#argv == 1) then - set TargetDir = ../$1 -else - set TargetDir = ../$2 -endif - -if (! -e $TargetDir) then - mkdir $TargetDir -endif - -if ( (-f $TargetDir/eo$1.h) || (-f $TargetDir/eo$1Init.h) || (-f $TargetDir/eo$1EvalFunc.h) || (-f $TargetDir/eo$1Mutation.h) || (-f $TargetDir/eo$1QuadCrossover.h) || (-f $TargetDir/$1EA.cpp) || (-f $TargetDir/make_genotype_$1.h) || (-f $TargetDir/make_op_$1.h) ) then - echo WARNING: some files already exist there. - echo -n "Overwrite ALL (yes/no)? " - set REP = $< - if ($REP != "yes") then - echo Nothing done! - exit - endif -endif - -if (-f $TargetDir/Makefile) then - echo A Makefile already exists there. - echo I'm creating Makefile.$1. You'll have to merge them both, - echo OR to call make -f Makefile.$1 - set MakeName = Makefile.$1 -else - set MakeName = Makefile -endif - -echo Creating source files for application $1 in $TargetDir/ - -sed s/MyStruct/$1/g eoMyStruct.tmpl > $TargetDir/eo$1.h -sed s/MyStruct/$1/g init.tmpl > $TargetDir/eo$1Init.h -sed s/MyStruct/$1/g evalFunc.tmpl > $TargetDir/eo$1EvalFunc.h -sed s/MyStruct/$1/g mutation.tmpl > $TargetDir/eo$1Mutation.h -sed s/MyStruct/$1/g quadCrossover.tmpl > $TargetDir/eo$1QuadCrossover.h -sed s/MyStruct/$1/g MyStructEA.cpp > $TargetDir/$1EA.cpp -sed s/MyStruct/$1/g make_genotype_MyStruct.h > $TargetDir/make_genotype_$1.h -sed s/MyStruct/$1/g make_op_MyStruct.h > $TargetDir/make_op_$1.h -sed s/MyStruct/$1/g make_MyStruct.cpp > $TargetDir/make_$1.cpp -sed s/MyStruct/$1/g MyStructLibEA.cpp > $TargetDir/$1LibEA.cpp -sed s/MyStruct/$1/g Makefile.tmpl > $TargetDir/$MakeName - -echo Done! - diff --git a/eo/tutorial/Templates/createSimple b/eo/tutorial/Templates/createSimple deleted file mode 100755 index 9d718475..00000000 --- a/eo/tutorial/Templates/createSimple +++ /dev/null @@ -1,59 +0,0 @@ -#! /bin/tcsh -f -if ($PWD:t != Templates) then - echo You must be in the Template dir to run that script - exit -endif - -if ($#argv < 1) then - echo "Usage $0 ApplicationName [TargetDirName]" - echo " will create ../TargetDirName if necessary" - echo " (default dir name = ApplicationName)," - echo " and will put there all files that are strictly necessary" - echo " to compile and run you Application from there" - exit -endif - -echo " " # we're going to do something - -if ($#argv == 1) then - set TargetDir = ../$1 -else - set TargetDir = ../$2 -endif - -if (! -e $TargetDir) then - mkdir $TargetDir -endif - -if ( (-f $TargetDir/eo$1.h) || (-f $TargetDir/eo$1Init.h) || (-f $TargetDir/eo$1EvalFunc.h) || (-f $TargetDir/eo$1Mutation.h) || (-f $TargetDir/eo$1QuadCrossover.h) || (-f $TargetDir/$1EA.cpp) || (-f $TargetDir/make_genotype_$1.h) || (-f $TargetDir/make_op_$1.h) ) then - echo WARNING: some files already exist there. - echo -n "Overwrite ALL (yes/no)? " - set REP = $< - if ($REP != "yes") then - echo Nothing done! - exit - endif -endif - -if (-f $TargetDir/Makefile) then - echo A Makefile already exists there. - echo "I'm creating Makefile.$1. You'll have to merge them both," - echo OR to call make -f Makefile.$1 - set MakeName = Makefile.$1 -else - set MakeName = Makefile -endif - -echo Creating source files for application $1 in $TargetDir/ - -sed s/MyStruct/$1/g eoMyStruct.tmpl > $TargetDir/eo$1.h -sed s/MyStruct/$1/g init.tmpl > $TargetDir/eo$1Init.h -sed s/MyStruct/$1/g stat.tmpl > $TargetDir/eo$1Stat.h -sed s/MyStruct/$1/g evalFunc.tmpl > $TargetDir/eo$1EvalFunc.h -sed s/MyStruct/$1/g mutation.tmpl > $TargetDir/eo$1Mutation.h -sed s/MyStruct/$1/g quadCrossover.tmpl > $TargetDir/eo$1QuadCrossover.h -sed s/MyStruct/$1/g MyStructSEA.cpp > $TargetDir/$1EA.cpp -sed s/MyStruct/$1/g MakeSimple.tmpl > $TargetDir/$MakeName - -echo Done! -