Makefile 755 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)
maitre's avatar
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
	CGnuplot.o CCmaes.o CCuda.o CCmaesCuda.o Parameters.o
kruger's avatar
kruger committed
12

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

TARGET =	libeasea.a

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

%.o:%.cpp
	$(CXX)  -c $(CXXFLAGS) $^


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