From 32cf83cfee845d72649e170ebe076a0370be63af Mon Sep 17 00:00:00 2001 From: kuepper Date: Fri, 17 Sep 2004 15:20:19 +0000 Subject: [PATCH] Save copies of old simple Makefiles --- eo/tutorial/Lesson1/Makefile.simple | 25 +++++++++ eo/tutorial/Lesson2/Makefile.simple | 34 +++++++++++ eo/tutorial/Lesson3/Makefile.simple | 33 +++++++++++ eo/tutorial/Lesson4/Makefile.simple | 33 +++++++++++ eo/tutorial/Lesson5/Makefile.simple | 56 +++++++++++++++++++ eo/tutorial/Makefile.simple | 29 ++++++++++ eo/tutorial/ParadisEO/Lesson1/Makefile.simple | 29 ++++++++++ eo/tutorial/ParadisEO/Lesson2/Makefile.simple | 23 ++++++++ eo/tutorial/ParadisEO/Lesson3/Makefile.simple | 16 ++++++ 9 files changed, 278 insertions(+) create mode 100644 eo/tutorial/Lesson1/Makefile.simple create mode 100644 eo/tutorial/Lesson2/Makefile.simple create mode 100644 eo/tutorial/Lesson3/Makefile.simple create mode 100644 eo/tutorial/Lesson4/Makefile.simple create mode 100644 eo/tutorial/Lesson5/Makefile.simple create mode 100644 eo/tutorial/Makefile.simple create mode 100644 eo/tutorial/ParadisEO/Lesson1/Makefile.simple create mode 100644 eo/tutorial/ParadisEO/Lesson2/Makefile.simple create mode 100644 eo/tutorial/ParadisEO/Lesson3/Makefile.simple diff --git a/eo/tutorial/Lesson1/Makefile.simple b/eo/tutorial/Lesson1/Makefile.simple new file mode 100644 index 00000000..093ca852 --- /dev/null +++ b/eo/tutorial/Lesson1/Makefile.simple @@ -0,0 +1,25 @@ +# if you use this Makefile as a starting point for another application +# you might need to modify the following +DIR_EO = ../../src + +.SUFFIXES: .cpp + +# Warning: $(CXX) in Linux (RedHat and Mandrake at least) is g++ +# However, if you are using this Makefile within xemacs, +# and have problems with the interpretation of the output (and its colors) +# then you should use c++ instead (make CXX=c++ will do) + +.cpp: ; $(CXX) -DPACKAGE=\"eo\" -DVERSION=\"0.9.3\" -I. -I$(DIR_EO) -Wall -g -pg -o $@ $*.cpp $(DIR_EO)/utils/libeoutils.a $(DIR_EO)/libeo.a + +.cpp.o: ; $(CXX) -DPACKAGE=\"eo\" -DVERSION=\"0.9.3\" -I. -I$(DIR_EO) -Wall -g -c -pg $*.cpp + +firstGA = FirstRealGA FirstBitGA + +ALL = $(firstGA) exercise1.3 + +lesson1 : $(firstGA) + +all : $(ALL) + +clean : + @/bin/rm $(ALL) *.o *~ diff --git a/eo/tutorial/Lesson2/Makefile.simple b/eo/tutorial/Lesson2/Makefile.simple new file mode 100644 index 00000000..1aec1710 --- /dev/null +++ b/eo/tutorial/Lesson2/Makefile.simple @@ -0,0 +1,34 @@ +### This Makefile is part of the tutorial of the EO library +# Unlike other Makefiles in EO, it is not using the automake/autoconf +# so that it stays easy to understant (you are in the tutorial, remember!) +# MS, Oct. 2002 + +# if you use this Makefile as a starting point for another application +# you might need to modify the following +DIR_EO = ../../src + +.SUFFIXES: .cpp + +# Warning: $(CXX) in Linux (RedHat and Mandrake at least) is g++ +# However, if you are using this Makefile within xemacs, +# and have problems with the interpretation of the output (and its colors) +# then you should use c++ instead (make CXX=c++ will do) + +.cpp: ; $(CXX) -DPACKAGE=\"eo\" -DVERSION=\"0.9.3\" -I. -I$(DIR_EO) -Wall -g -pg -o $@ $*.cpp $(DIR_EO)/utils/libeoutils.a $(DIR_EO)/libeo.a + +.cpp.o: ; $(CXX) -DPACKAGE=\"eo\" -DVERSION=\"0.9.3\" -I. -I$(DIR_EO) -Wall -g -c -pg $*.cpp + +firstEA = FirstRealEA FirstBitEA + +ALL = $(firstEA) exercise2.3 + +lesson2 : $(firstEA) + +all : $(ALL) + +clean : + @/bin/rm $(ALL) *.o *~ + +FirstRealEA : real_value.h + +FirstBitEA : binary_value.h diff --git a/eo/tutorial/Lesson3/Makefile.simple b/eo/tutorial/Lesson3/Makefile.simple new file mode 100644 index 00000000..186791f2 --- /dev/null +++ b/eo/tutorial/Lesson3/Makefile.simple @@ -0,0 +1,33 @@ +### This Makefile is part of the tutorial of the EO library +# Unlike other Makefiles in EO, it is not using the automake/autoconf +# so that it stays easy to understant (you are in the tutorial, remember!) +# MS, Oct. 2002 + +# if you use this Makefile as a starting point for another application +# you might need to modify the following +DIR_EO = ../../src + +.SUFFIXES: .cpp + +# Warning: $(CXX) in Linux (RedHat and Mandrake at least) is g++ +# However, if you are using this Makefile within xemacs, +# and have problems with the interpretation of the output (and its colors) +# then you should use c++ instead (make CXX=c++ will do) + +.cpp: ; $(CXX) -DPACKAGE=\"eo\" -DVERSION=\"0.9.3\" -I. -I$(DIR_EO) -Wall -g -pg -o $@ $*.cpp $(DIR_EO)/utils/libeoutils.a $(DIR_EO)/libeo.a + +.cpp.o: ; $(CXX) -DPACKAGE=\"eo\" -DVERSION=\"0.9.3\" -I. -I$(DIR_EO) -Wall -g -c -pg $*.cpp + +secondEA = SecondBitEA SecondRealEA + +ALL = $(secondEA) exercise3.1 + +lesson3 : $(secondEA) + +all : $(ALL) + +SecondBitEA : binary_value.h +SecondRealEA : real_value.h + +clean : + @/bin/rm $(ALL) *.o *.sav *.xg *.status *~ diff --git a/eo/tutorial/Lesson4/Makefile.simple b/eo/tutorial/Lesson4/Makefile.simple new file mode 100644 index 00000000..75bd41dd --- /dev/null +++ b/eo/tutorial/Lesson4/Makefile.simple @@ -0,0 +1,33 @@ +### This Makefile is part of the tutorial of the EO library +# Unlike other Makefiles in EO, it is not using the automake/autoconf +# so that it stays easy to understant (you are in the tutorial, remember!) +# MS, Oct. 2002 + +# if you use this Makefile as a starting point for another application +# you might need to modify the following +DIR_EO = ../../src + +.SUFFIXES: .cpp + +# Warning: $(CXX) in Linux (RedHat and Mandrake at least) is g++ +# However, if you are using this Makefile within xemacs, +# and have problems with the interpretation of the output (and its colors) +# then you should use c++ instead (make CXX=c++ will do) + +.cpp: ; $(CXX) -DPACKAGE=\"eo\" -DVERSION=\"0.9.3\" -I. -I$(DIR_EO) -Wall -g -o $@ $*.cpp $(DIR_EO)/utils/libeoutils.a $(DIR_EO)/libeo.a + +.cpp.o: ; $(CXX) -DPACKAGE=\"eo\" -DVERSION=\"0.9.3\" -I. -I$(DIR_EO) -Wall -g -c $*.cpp + +ALL = BitEA RealEA ESEA + +all : $(ALL) + +BitEA : BitEA.o ; + $(CXX) -DPACKAGE=\"eo\" -DVERSION=\"0.9.2\" -Wall -g -o $@ $< $(DIR_EO)/ga/libga.a $(DIR_EO)/utils/libeoutils.a $(DIR_EO)/libeo.a + +RealEA : RealEA.o ; $(CXX) -DPACKAGE=\"eo\" -DVERSION=\"0.9.2\" -Wall -g -o $@ $< $(DIR_EO)/es/libes.a $(DIR_EO)/utils/libeoutils.a $(DIR_EO)/libeo.a + +ESEA : ESEA.o ; $(CXX) -DPACKAGE=\"eo\" -DVERSION=\"0.9.2\" -Wall -g -o $@ $< $(DIR_EO)/es/libes.a $(DIR_EO)/utils/libeoutils.a $(DIR_EO)/libeo.a + +clean : + @/bin/rm $(ALL) *.o *.sav *.xg *.status *~ diff --git a/eo/tutorial/Lesson5/Makefile.simple b/eo/tutorial/Lesson5/Makefile.simple new file mode 100644 index 00000000..bb865c10 --- /dev/null +++ b/eo/tutorial/Lesson5/Makefile.simple @@ -0,0 +1,56 @@ +### This Makefile is part of the tutorial of the EO library +# Unlike other Makefiles in EO, it is not using the automake/autoconf +# so that it stays easy to understant (you are in the tutorial, remember!) +# MS, Oct. 2002 + +# if you use this Makefile as a starting point for another application +# you might need to modify the following +DIR_EO = ../../src + +.SUFFIXES: .cpp + +# Warning: $(CXX) in Linux (RedHat and Mandrake at least) is g++ +# However, if you are using this Makefile within xemacs, +# and have problems with the interpretation of the output (and its colors) +# then you should use c++ instead (make CXX=c++ will do) + +.cpp: ; $(CXX) -DPACKAGE=\"eo\" -DVERSION=\"0.9.3\" -I. -I$(DIR_EO) -Wall -g -o $@ $*.cpp $(DIR_EO)/utils/libeoutils.a $(DIR_EO)/libeo.a + +.cpp.o: ; $(CXX) -DPACKAGE=\"eo\" -DVERSION=\"0.9.3\" -I. -I$(DIR_EO) -Wall -g -c $*.cpp + +# local sources +COMMON_SOURCES = eoOneMax.h \ + eoOneMaxEvalFunc.h \ + eoOneMaxInit.h \ + eoOneMaxMutation.h \ + eoOneMaxQuadCrossover.h \ + make_genotype_OneMax.h \ + make_op_OneMax.h + +NO_LIB_SOURCES = OneMaxEA.cpp + +LIB_SOURCES = OneMaxLibEA.cpp make_OneMax.cpp + + +SOURCES = $(COMMON_SOURCES) OneMaxEA.cpp OneMaxLibEA.cpp make_OneMax.cpp + +LIB_EO = $(DIR_EO)/utils/libeoutils.a $(DIR_EO)/libeo.a + +ALL = OneMaxEA OneMaxLibEA + +OneMaxEA : OneMaxEA.o + $(CXX) -g -o $@ OneMaxEA.o $(DIR_EO)/utils/libeoutils.a $(DIR_EO)/libeo.a -lm + +OneMaxLibEA : OneMaxLibEA.o make_OneMax.o + $(CXX) -g -o $@ OneMaxLibEA.o make_OneMax.o $(DIR_EO)/utils/libeoutils.a $(DIR_EO)/libeo.a -lm + +tar : ; tar czvf OneMax.tgz *.h *.cpp Makefile + +all : $(ALL) + +clean : ; /bin/rm *.o $(ALL) + +########## local dependencies +OneMaxEA.o : $(COMMON_SOURCES) OneMaxEA.cpp +OneMaxLibEA.o : $(COMMON_SOURCES) OneMaxLibEA.cpp +make_OneMax.o : make_OneMax.cpp eoOneMax.h diff --git a/eo/tutorial/Makefile.simple b/eo/tutorial/Makefile.simple new file mode 100644 index 00000000..61396d3c --- /dev/null +++ b/eo/tutorial/Makefile.simple @@ -0,0 +1,29 @@ +SUBDIRS = Lesson1 Lesson2 Lesson3 Lesson4 Lesson5 + +all: + for i in $(SUBDIRS); do cd $$i && $(MAKE) all; cd ..; done + +lesson1 : + cd Lesson1; make + +lesson2 : + cd Lesson2; make + +lesson3 : + cd Lesson3; make + +lesson4 : + cd Lesson4; make + +lesson5 : + cd Lesson5; make + +#empty dist and distdir to let top-level 'make' do its job +dist : + +distdir : + +check : + +clean: + for i in $(SUBDIRS); do cd $$i && $(MAKE) clean; cd ..; done diff --git a/eo/tutorial/ParadisEO/Lesson1/Makefile.simple b/eo/tutorial/ParadisEO/Lesson1/Makefile.simple new file mode 100644 index 00000000..7bd46d2a --- /dev/null +++ b/eo/tutorial/ParadisEO/Lesson1/Makefile.simple @@ -0,0 +1,29 @@ +MPICC = mpiCC + +ALL = IslandBitEA IslandBitEA2 IslandBitEA1 + +lesson2 : IslandBitEA IslandBitEA2 IslandBitEA1 + +all : $(ALL) + +clean : + @/bin/rm $(ALL) *.o *~ + +IslandBitEA : IslandBitEA.o + $(MPICC) -DPACKAGE=\"eo\" -o IslandBitEA IslandBitEA.o ../../../src/utils/libeoutils.a ../../../src/libeo.a + +IslandBitEA.o : IslandBitEA.cpp binary_value.h + $(MPICC) -DPACKAGE=\"eo\" -I. -I../../../src -c IslandBitEA.cpp + +IslandBitEA1 : IslandBitEA1.o + $(MPICC) -DPACKAGE=\"eo\" -o IslandBitEA1 IslandBitEA1.o ../../../src/utils/libeoutils.a ../../../src/libeo.a + +IslandBitEA1.o : IslandBitEA1.cpp binary_value.h + $(MPICC) -DPACKAGE=\"eo\" -I. -I../../../src -c IslandBitEA1.cpp + +IslandBitEA2 : IslandBitEA2.o + $(MPICC) -DPACKAGE=\"eo\" -o IslandBitEA2 IslandBitEA2.o ../../../src/utils/libeoutils.a ../../../src/libeo.a + +IslandBitEA2.o : IslandBitEA2.cpp binary_value.h + $(MPICC) -DPACKAGE=\"eo\" -I. -I../../../src -c IslandBitEA2.cpp + diff --git a/eo/tutorial/ParadisEO/Lesson2/Makefile.simple b/eo/tutorial/ParadisEO/Lesson2/Makefile.simple new file mode 100644 index 00000000..87ea5380 --- /dev/null +++ b/eo/tutorial/ParadisEO/Lesson2/Makefile.simple @@ -0,0 +1,23 @@ +MPICC = mpiCC + +ALL = MasterDistEvalBitEA SlaveDistEvalBitEA + +lesson2 : MasterDistEvalBitEA SlaveDistEvalBitEA + +all : $(ALL) + +clean : + @/bin/rm $(ALL) *.o *~ + +MasterDistEvalBitEA : MasterDistEvalBitEA.o + $(MPICC) -DPACKAGE=\"eo\" -o MasterDistEvalBitEA MasterDistEvalBitEA.o ../../../src/utils/libeoutils.a ../../../src/libeo.a + +MasterDistEvalBitEA.o : MasterDistEvalBitEA.cpp binary_value.h + $(MPICC) -DPACKAGE=\"eo\" -I. -I../../../src -c MasterDistEvalBitEA.cpp + +SlaveDistEvalBitEA : SlaveDistEvalBitEA.o + $(MPICC) -DPACKAGE=\"eo\" -o SlaveDistEvalBitEA SlaveDistEvalBitEA.o ../../../src/utils/libeoutils.a ../../../src/libeo.a + +SlaveDistEvalBitEA.o : SlaveDistEvalBitEA.cpp binary_value.h + $(MPICC) -DPACKAGE=\"eo\" -I. -I../../../src -c SlaveDistEvalBitEA.cpp + diff --git a/eo/tutorial/ParadisEO/Lesson3/Makefile.simple b/eo/tutorial/ParadisEO/Lesson3/Makefile.simple new file mode 100644 index 00000000..3b255b38 --- /dev/null +++ b/eo/tutorial/ParadisEO/Lesson3/Makefile.simple @@ -0,0 +1,16 @@ +.SUFFIXES: .cpp +.cpp: ; c++ -DPACKAGE=\"eo\" -DVERSION=\"0.9.1\" -I. -I../../../src -Wall -g -o $@ $*.cpp ../../../src/utils/libeoutils.a ../../../src/libeo.a + +.cpp.o: ; c++ -DPACKAGE=\"eo\" -DVERSION=\"0.9.1\" -I. -I../../../src -Wall -g -c $*.cpp + +ALL = CellularBitEA + +lesson3 : $(firstEA) + +all : $(ALL) + +clean : + @/bin/rm $(ALL) *.o *~ + +CellularBitEA : binary_value.h +