Commit c756a18e authored by Joseph Pallamidessi's avatar Joseph Pallamidessi

Merge remote-tracking branch 'origin/windows' into osx

parents a29bb010 0d2086a4
......@@ -12,16 +12,16 @@ OBJ= build/EaseaSym.o build/EaseaParse.o build/EaseaLex.o alexyacc/libalex.a bui
$(EXEC):build bin $(OBJ)
$(CXX) $(CPPFLAGS) $(LDFLAGS) $(OBJ) -o $@
ifneq ("$(OS)","")
@echo #
@echo # Congratulations ! It looks like you compiled EASEA successfully.
@echo #
@echo # You can use easea from this directory by typing :
@echo # For example :
@echo # easea.exe examples\weierstrass_std\weierstrass.ez
@echo # Go to the target directory and type make -f weierstrass.mak
@echo #
@echo # Thanks for using EASEA.
@echo #
#
# Congratulations ! It looks like you compiled EASEA successfully.
#
# You can use easea from this directory by typing :
# For example :
# easea.exe examples\weierstrass_std\weierstrass.ez
# Go to the target directory and type make -f weierstrass.mak
#
# Thanks for using EASEA.
#
else
#
# Congratulations ! It looks like you compiled EASEA successfully.
......@@ -136,17 +136,10 @@ libeasea/libeasea.a:libeasea/*.cpp
cd libeasea && make libeasea.a
clean:
ifneq ("$(OS)","")
-del *.o $(EXEC).exe $(EXEC)_bin
cd alexyacc && make clean
cd libeasea && make clean
cd boost && make clean
else
rm -f build/*.o $(EXEC) $(EXEC)_bin
cd alexyacc && make clean
cd libeasea && make clean
cd boost && make clean
endif
#ifeq ($(UNAME),Darwin)
cd boost && make clean
#endif
......
......@@ -24,8 +24,4 @@ $(TARGET): $(OBJS)
all: $(TARGET)
clean:
ifneq ("$(OS)","")
-del $(OBJS) $(TARGET)
else
rm -f $(OBJS) $(TARGET)
endif
......@@ -13,7 +13,9 @@
#include <sys/time.h>
#endif
#ifdef WIN32
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#include <mmsystem.h>
#endif
#include <stdio.h>
......@@ -126,7 +128,7 @@ CEvolutionaryAlgorithm::CEvolutionaryAlgorithm(Parameters* params){
fichier.append(".r");
remove(fichier.c_str());
}
#ifndef WIN32
//#ifndef WIN32
if(params->plotStats){
string str = "Plotting of the evolution of ";;
string str2 = this->params->outputFilename;
......@@ -134,7 +136,7 @@ CEvolutionaryAlgorithm::CEvolutionaryAlgorithm(Parameters* params){
//this->grapher = new CGrapher((this->params->offspringPopulationSize*this->params->nbGen)+this->params->parentPopulationSize, (char*)str.c_str());
this->grapher = new CGrapher(this->params, (char*)str.c_str());
}
#endif
//#endif
// INITIALIZE SERVER OBJECT ISLAND MODEL
......
......@@ -4,6 +4,12 @@
#include <string.h>
CGrapher::CGrapher(Parameters* param, char* title){
this->valid=0;
#ifdef WIN32
//TODO: Create a child process and and pipe some line from the father to the child
//(http://msdn.microsoft.com/en-us/library/windows/desktop/ms682499%28v=vs.85%29.aspx)
#endif
#ifndef WIN32
int toFils[2];
int toPere[2];
......
......@@ -3,7 +3,7 @@ ifeq ($(shell uname -o 2>/dev/null),Msys)
OS := MINGW
endif
CXXFLAGS = -g -Wall -fmessage-length=0 -I/usr/local/cuda/include #-I../boost/
CXXFLAGS = -g -O1 -Wall -fmessage-length=0 -I/usr/local/cuda/include -I../boost/
OBJS = CRandomGenerator.o CSelectionOperator.o CEvolutionaryAlgorithm.o\
CStoppingCriterion.o COptionParser.o CPopulation.o CIndividual.o\
......@@ -23,11 +23,11 @@ LIBS = -L"C:\MinGW\lib" -lws2_32 -lwinmm
endif
TARGET = libeasea.a
ifneq ("$(OS)","")
CPPFLAGS=-I..\boost\ #-pg
else
CPPFLAGS=-I../boost/ #-pg
endif
#ifneq ("$(OS)","")
# CPPFLAGS=-I..\boost\ #-pg
#else
# CPPFLAGS=-I../boost/ #-pg
#endif
$(TARGET): $(OBJS)
ar rcs $@ $^
......@@ -37,8 +37,4 @@ $(TARGET): $(OBJS)
all: $(TARGET)
clean:
ifneq ("$(OS)","")
-del $(OBJS) $(TARGET)
else
rm -f $(OBJS) $(TARGET)
endif
......@@ -17,6 +17,7 @@
#include "CComUDPLayer.h"
#include "CStats.h"
#ifdef WIN32
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#endif
......
......@@ -14,6 +14,7 @@
#include <sys/time.h>
#endif
#ifdef WIN32
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#endif
#include <time.h>
......
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