This repository has been archived on 2026-03-28. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
eodev/eo/src/pyeo/Makefile.rpm
2011-05-05 16:54:00 +02:00

29 lines
886 B
Text

# Makefile for people that build boost using the rpm-recipe
CXX = g++ #-3.2
CXXFLAGS = #-g #-DNDEBUG
CPPFLAGS = -Wall -O2
LDFLAGS = -L/usr/lib/python2.2/config/
COMPILE = $(CXX) $(CXXFLAGS) $(CPPFLAGS) -c
LINK = $(CXX) $(CXXFLAGS) $(CPPFLAGS) $(LDFLAGS)
INC=-I/usr/include/python2.2 -I/usr/include/stlport -I.. -ftemplate-depth-50
OBJECTS=eoFunctorStore.o PyEO.o abstract1.o algos.o \
random_numbers.o geneticOps.o selectOne.o continuators.o\
reduce.o replacement.o selectors.o breeders.o\
mergers.o valueParam.o perf2worth.o monitors.o\
statistics.o
all: PyEO.so
clean:
rm *.so *.o test/*.pyc
PyEO.so: $(OBJECTS)
$(LINK) -o PyEO.so $(OBJECTS) -lboost_python -lpython2.2 -shared #-lstlport
eoFunctorStore.o: ../eoFunctorStore.h ../eoFunctorStore.cpp
$(COMPILE) -o eoFunctorStore.o ../eoFunctorStore.cpp $(INC)
%.o:%.cpp PyEO.h def_abstract_functor.h
$(COMPILE) $< $(INC)