small bugfix, to make this example run under Solaris/g++ 2.95.3
This commit is contained in:
parent
27d7739aa9
commit
5054418a66
1 changed files with 4 additions and 8 deletions
|
|
@ -14,9 +14,9 @@ DIR_EO = ../../src
|
||||||
# and have problems with the interpretation of the output (and its colors)
|
# and have problems with the interpretation of the output (and its colors)
|
||||||
# then you should use c++ instead (make CXX=c++ will do)
|
# then you should use c++ instead (make CXX=c++ will do)
|
||||||
|
|
||||||
.cpp: ; $(CXX) -DPACKAGE=\"eo\" -DVERSION=\"0.9.3\" -I. -I../../src -Wall -g -pg -o $@ $*.cpp ../../src/libeo.a ../../src/utils/libeoutils.a
|
.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../../src -Wall -g -c -pg $*.cpp
|
.cpp.o: ; $(CXX) -DPACKAGE=\"eo\" -DVERSION=\"0.9.3\" -I. -I$(DIR_EO) -Wall -g -c $*.cpp
|
||||||
|
|
||||||
# local sources
|
# local sources
|
||||||
COMMON_SOURCES = eoOneMax.h \
|
COMMON_SOURCES = eoOneMax.h \
|
||||||
|
|
@ -34,19 +34,15 @@ LIB_SOURCES = OneMaxLibEA.cpp make_OneMax.cpp
|
||||||
|
|
||||||
SOURCES = $(COMMON_SOURCES) OneMaxEA.cpp OneMaxLibEA.cpp make_OneMax.cpp
|
SOURCES = $(COMMON_SOURCES) OneMaxEA.cpp OneMaxLibEA.cpp make_OneMax.cpp
|
||||||
|
|
||||||
# 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
|
LIB_EO = $(DIR_EO)/utils/libeoutils.a $(DIR_EO)/libeo.a
|
||||||
|
|
||||||
ALL = OneMaxEA OneMaxLibEA
|
ALL = OneMaxEA OneMaxLibEA
|
||||||
|
|
||||||
OneMaxEA : OneMaxEA.o
|
OneMaxEA : OneMaxEA.o
|
||||||
c++ -g -o $@ OneMaxEA.o ../../src/utils/libeoutils.a ../../src/libeo.a -lm
|
$(CXX) -g -o $@ OneMaxEA.o $(DIR_EO)/utils/libeoutils.a $(DIR_EO)/libeo.a -lm
|
||||||
|
|
||||||
OneMaxLibEA : OneMaxLibEA.o make_OneMax.o
|
OneMaxLibEA : OneMaxLibEA.o make_OneMax.o
|
||||||
c++ -g -o $@ OneMaxLibEA.o make_OneMax.o ../../src/utils/libeoutils.a ../../src/libeo.a -lm
|
$(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
|
tar : ; tar czvf OneMax.tgz *.h *.cpp Makefile
|
||||||
|
|
||||||
|
|
|
||||||
Reference in a new issue