Makefile 828 Bytes
Newer Older
1 2 3 4
UNAME = $(shell uname)
ifeq ($(shell uname -o 2>/dev/null),Msys)
	OS := MINGW
endif
5

Joseph Pallamidessi's avatar
Joseph Pallamidessi committed
6
CXXFLAGS = -g -O1 -fopenmp -Wall -fmessage-length=0 -I/usr/local/cuda/include -I../boost/
kruger's avatar
kruger committed
7 8 9

OBJS = CRandomGenerator.o CSelectionOperator.o CEvolutionaryAlgorithm.o\
	   CStoppingCriterion.o COptionParser.o CPopulation.o CIndividual.o\
Frédéric Krüger's avatar
Frédéric Krüger committed
10
	CGrapher.o CCmaes.o CCmaesCuda.o Parameters.o CGPNode.o\
Ogier Maitre's avatar
Ogier Maitre committed
11
	CComUDPLayer.o CStats.o CGPNode.o
12 13

ifneq ("$(OS)","")
14
OBJS += win32/inet_pton.o
15
endif
kruger's avatar
kruger committed
16

Ogier Maitre's avatar
Ogier Maitre committed
17 18 19
#ifeq ($(EZ_CUDA),1)
#OBJS += CCuda.o
#endif
kruger's avatar
kruger committed
20

21 22 23
ifneq ("$(OS)","")
LIBS = -L"C:\MinGW\lib" -lws2_32 -lwinmm
endif
kruger's avatar
kruger committed
24

25
TARGET = libeasea.a
26 27 28 29 30
#ifneq ("$(OS)","")
#	CPPFLAGS=-I..\boost\ #-pg
#else
#	CPPFLAGS=-I../boost/ #-pg
#endif
kruger's avatar
kruger committed
31 32

$(TARGET): $(OBJS)
33
	ar rcs $@ $^ 
kruger's avatar
kruger committed
34 35

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

all:	$(TARGET)
clean:
Ogier Maitre's avatar
Ogier Maitre committed
40
	rm -f $(OBJS) $(TARGET)