Makefile 693 Bytes
Newer Older
1 2 3
UNAME := $(shell uname)

CXXFLAGS = -g -Wall -fmessage-length=0 -I../boost/
kruger's avatar
kruger committed
4 5 6

OBJS = CRandomGenerator.o CSelectionOperator.o CEvolutionaryAlgorithm.o\
	   CStoppingCriterion.o COptionParser.o CPopulation.o CIndividual.o\
kruger's avatar
kruger committed
7
	CGnuplot.o CCmaes.o CCmaesCuda.o Parameters.o CGPNode.o\
Ogier Maitre's avatar
Ogier Maitre committed
8
	CComUDPLayer.o CCuda.o
kruger's avatar
kruger committed
9

kruger's avatar
kruger committed
10 11 12 13
ifeq ($(EZ_CUDA),1)
OBJS += CCuda.o
endif

14
#ifeq ($(UNAME),Darwin)
15
LIBS = 
16 17 18
#else ifeq ($(UNAME),Linux)
#LIBS = -lboost_program_options 
#endif #OS
kruger's avatar
kruger committed
19 20

TARGET =	libeasea.a
Ogier Maitre's avatar
Ogier Maitre committed
21
CPPFLAGS=-I/usr/local/cuda/include/ -I../boost/ -pg
kruger's avatar
kruger committed
22 23

$(TARGET): $(OBJS)
24
	ar rcs $@ $^ #../boost/program_options.a 
kruger's avatar
kruger committed
25 26

%.o:%.cpp
27
	$(CXX)  -c $(CXXFLAGS) $(CPPFLAGS) $^
kruger's avatar
kruger committed
28 29 30

all:	$(TARGET)
clean:
kruger's avatar
kruger committed
31
	rm -f $(OBJS) $(TARGET)  CCuda.o