Commit 60287618 authored by pallamidessi's avatar pallamidessi

Quick-fix compilation problem under windows (minGW)

FIXME:Automate the compilation process for windows
parent 7e323c61
...@@ -3,6 +3,10 @@ ifeq ($(shell uname -o 2>/dev/null),Msys) ...@@ -3,6 +3,10 @@ ifeq ($(shell uname -o 2>/dev/null),Msys)
OS := MINGW OS := MINGW
endif endif
ifeq ($(shell uname -o 2>/dev/null),Cygwin)
OS := CYGWIN
endif
CXXFLAGS = -g -O1 -fopenmp -Wall -fmessage-length=0 -I/usr/local/cuda/include -I../boost/ CXXFLAGS = -g -O1 -fopenmp -Wall -fmessage-length=0 -I/usr/local/cuda/include -I../boost/
OBJS = CRandomGenerator.o CSelectionOperator.o CEvolutionaryAlgorithm.o\ OBJS = CRandomGenerator.o CSelectionOperator.o CEvolutionaryAlgorithm.o\
...@@ -11,7 +15,7 @@ OBJS = CRandomGenerator.o CSelectionOperator.o CEvolutionaryAlgorithm.o\ ...@@ -11,7 +15,7 @@ OBJS = CRandomGenerator.o CSelectionOperator.o CEvolutionaryAlgorithm.o\
CComUDPLayer.o CStats.o CGPNode.o CComUDPLayer.o CStats.o CGPNode.o
ifneq ("$(OS)","") ifneq ("$(OS)","")
OBJS += win32/inet_pton.o OBJS += inet_pton.o
endif endif
#ifeq ($(EZ_CUDA),1) #ifeq ($(EZ_CUDA),1)
...@@ -20,6 +24,7 @@ endif ...@@ -20,6 +24,7 @@ endif
ifneq ("$(OS)","") ifneq ("$(OS)","")
LIBS = -L"C:\MinGW\lib" -lws2_32 -lwinmm LIBS = -L"C:\MinGW\lib" -lws2_32 -lwinmm
CXXFLAGS += -I"C:\MinGW\include"
endif endif
TARGET = libeasea.a TARGET = libeasea.a
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment