Replaced ../../src with the DIR_EO macro!
This commit is contained in:
parent
2779191f63
commit
eb6e630a27
1 changed files with 11 additions and 12 deletions
|
|
@ -1,8 +1,13 @@
|
|||
# sample makefile for building an EA evolving a new genotype
|
||||
|
||||
.cpp: ; c++ -DPACKAGE=\"eo\" -DVERSION=\"0.9.3\" -I. -I../../src -Wall -g -o $@ $*.cpp ../../src/libeo.a ../../src/utils/libeoutils.a
|
||||
# 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.o: ; c++ -DPACKAGE=\"eo\" -DVERSION=\"0.9.3\" -I. -I../../src -I./util -Wall -g -c $*.cpp
|
||||
.cpp: ; c++ -DPACKAGE=\"eo\" -DVERSION=\"0.9.3\" -I. -I$(DIR_EO) -Wall -g -o $@ $*.cpp $(LIB_EO)
|
||||
|
||||
.cpp.o: ; c++ -DPACKAGE=\"eo\" -DVERSION=\"0.9.3\" -I. -I$(DIR_EO) -Wall -g -c $*.cpp
|
||||
|
||||
# local sources
|
||||
COMMON_SOURCES = eoMyStruct.h \
|
||||
|
|
@ -20,19 +25,13 @@ LIB_SOURCES = MyStructLibEA.cpp make_MyStruct.cpp
|
|||
|
||||
SOURCES = $(COMMON_SOURCES) MyStructEA.cpp MyStructLibEA.cpp make_MyStruct.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
|
||||
|
||||
ALL = MyStructEA MyStructLibEA
|
||||
|
||||
MyStructEA : MyStructEA.o
|
||||
c++ -g -o $@ MyStructEA.o ../../src/utils/libeoutils.a ../../src/libeo.a -lm
|
||||
MyStructEA : MyStructEA.cpp
|
||||
c++ -I. -I$(DIR_EO) -g -o $@ MyStructEA.cpp $(LIB_EO) -lm
|
||||
|
||||
MyStructLibEA : MyStructLibEA.o make_MyStruct.o
|
||||
c++ -g -o $@ MyStructLibEA.o make_MyStruct.o ../../src/utils/libeoutils.a ../../src/libeo.a -lm
|
||||
c++ -g -o $@ MyStructLibEA.o make_MyStruct.o $(LIB_EO) -lm
|
||||
|
||||
tar : ; tar czvf MyStruct.tgz *.h *.cpp Makefile
|
||||
|
||||
|
|
@ -41,6 +40,6 @@ all : $(ALL)
|
|||
clean : ; /bin/rm *.o $(ALL)
|
||||
|
||||
########## local dependencies
|
||||
MyStructEA.o : $(COMMON_SOURCES) MyStructEA.cpp
|
||||
MyStructEA.cpp : $(COMMON_SOURCES)
|
||||
MyStructLibEA.o : $(COMMON_SOURCES) MyStructLibEA.cpp
|
||||
make_MyStruct.o : make_MyStruct.cpp eoMyStruct.h
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue