Save copies of old simple Makefiles
This commit is contained in:
parent
dbd0a46d75
commit
32cf83cfee
9 changed files with 278 additions and 0 deletions
25
eo/tutorial/Lesson1/Makefile.simple
Normal file
25
eo/tutorial/Lesson1/Makefile.simple
Normal file
|
|
@ -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 *~
|
||||||
34
eo/tutorial/Lesson2/Makefile.simple
Normal file
34
eo/tutorial/Lesson2/Makefile.simple
Normal file
|
|
@ -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
|
||||||
33
eo/tutorial/Lesson3/Makefile.simple
Normal file
33
eo/tutorial/Lesson3/Makefile.simple
Normal file
|
|
@ -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 *~
|
||||||
33
eo/tutorial/Lesson4/Makefile.simple
Normal file
33
eo/tutorial/Lesson4/Makefile.simple
Normal file
|
|
@ -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 *~
|
||||||
56
eo/tutorial/Lesson5/Makefile.simple
Normal file
56
eo/tutorial/Lesson5/Makefile.simple
Normal file
|
|
@ -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
|
||||||
29
eo/tutorial/Makefile.simple
Normal file
29
eo/tutorial/Makefile.simple
Normal file
|
|
@ -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
|
||||||
29
eo/tutorial/ParadisEO/Lesson1/Makefile.simple
Normal file
29
eo/tutorial/ParadisEO/Lesson1/Makefile.simple
Normal file
|
|
@ -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
|
||||||
|
|
||||||
23
eo/tutorial/ParadisEO/Lesson2/Makefile.simple
Normal file
23
eo/tutorial/ParadisEO/Lesson2/Makefile.simple
Normal file
|
|
@ -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
|
||||||
|
|
||||||
16
eo/tutorial/ParadisEO/Lesson3/Makefile.simple
Normal file
16
eo/tutorial/ParadisEO/Lesson3/Makefile.simple
Normal file
|
|
@ -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
|
||||||
|
|
||||||
Reference in a new issue