Makefile 831 Bytes
Newer Older
1 2 3 4 5
UNAME := $(shell uname)

ifeq ($(UNAME),Darwin)
CXXFLAGS = -g -Wall -fmessage-length=0 -I../boost/
else ifeq ($(UNAME),Linux)
Ogier Maitre's avatar
Ogier Maitre committed
6
CXXFLAGS = -g -Wall -fmessage-length=0 
7
endif #OS
kruger's avatar
kruger committed
8 9 10

OBJS = CRandomGenerator.o CSelectionOperator.o CEvolutionaryAlgorithm.o\
	   CStoppingCriterion.o COptionParser.o CPopulation.o CIndividual.o\
kruger's avatar
kruger committed
11 12
	CGnuplot.o CCmaes.o CCuda.o CCmaesCuda.o Parameters.o CGPNode.o\
	CComUDPLayer.o
kruger's avatar
kruger committed
13

14 15 16
ifeq ($(UNAME),Darwin)
LIBS = 
else ifeq ($(UNAME),Linux)
kruger's avatar
kruger committed
17
LIBS = -lboost_program_options 
18
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/ 
kruger's avatar
kruger committed
22 23

$(TARGET): $(OBJS)
24
ifeq ($(UNAME),Darwin)
Ogier Maitre's avatar
Ogier Maitre committed
25
	ar rcs $@ $^ ../boost/program_options.a 
26
else ifeq ($(UNAME),Linux)
kruger's avatar
kruger committed
27
	ar rcs $@ $^
28 29 30
endif #OS
#$(TARGET): $(OBJS)
#	ar rcs $@ $^
kruger's avatar
kruger committed
31 32

%.o:%.cpp
33
	$(CXX)  -c $(CXXFLAGS) $(CPPFLAGS) $^
kruger's avatar
kruger committed
34 35 36 37 38


all:	$(TARGET)
clean:
	rm -f $(OBJS) $(TARGET)