big bang on windows makefiles

This commit is contained in:
laurent.perron@gmail.com
2012-01-02 21:17:26 +00:00
parent c6dd3a820f
commit 3844e661f7
6 changed files with 176 additions and 91 deletions

View File

@@ -32,6 +32,9 @@ include makefiles/Makefile.third_party.$(SYSTEM)
include makefiles/Makefile.cpp.mk
include makefiles/Makefile.python.mk
include makefiles/Makefile.java.mk
ifeq ("$(SYSTEM)","win")
include makefiles/Makefile.csharp.mk
endif
# Include test
include makefiles/Makefile.test.$(SYSTEM)

View File

@@ -84,6 +84,11 @@ clean:
$(DEL) *.$(SHAREDLIBEXT)
$(DEL) *.$(JNILIBEXT)
$(DEL) *.jar
$(DEL) *.pdb
$(DEL) *.exp
$(DEL) cs*.exe
$(DEL) Google.*.netmodule
$(DEL) Google.*.lib
# Constraint Solver Lib.
@@ -259,10 +264,10 @@ LINEAR_SOLVER_LIB_OS = \
objs/scip_interface.$O
objs/cbc_interface.$O:linear_solver/cbc_interface.cc
$(CCC) $(CFLAGS) $(CBC_STRING) -c linear_solver/cbc_interface.cc $(OBJOUT)objs/cbc_interface.$O
$(CCC) $(CFLAGS) -c linear_solver/cbc_interface.cc $(OBJOUT)objs/cbc_interface.$O
objs/clp_interface.$O:linear_solver/clp_interface.cc
$(CCC) $(CFLAGS) $(CLP_STRING) -c linear_solver/clp_interface.cc $(OBJOUT)objs/clp_interface.$O
$(CCC) $(CFLAGS) -c linear_solver/clp_interface.cc $(OBJOUT)objs/clp_interface.$O
objs/glpk_interface.$O:linear_solver/glpk_interface.cc
$(CCC) $(CFLAGS) -c linear_solver/glpk_interface.cc $(OBJOUT)objs/glpk_interface.$O

View File

@@ -51,20 +51,19 @@ endif
# Windows specific part.
ifeq ("$(SYSTEM)","win")
SCIP_MAKEFILE = \# SCIP not compiled
SELECTED_JDK_DEF = \# Define JDK
PLATFORM = WINDOWS
SELECTED_JDK_DEF = WINDOWS_JDK_DIR = \# Please define JDK root.
ifeq ("$(Platform)", "X64")
PLATFORM = x64
PTRLENGTH = 64
NETPLATFORM = x64
else
PTRLENGTH = 32
PLATFORM = Win32
NETPLATFORM = x86
endif
OS = Windows
TOP_AUX = $(shell cd)
TOP = $(shell echo $(TOP_AUX) | tools\\sed.exe -e "s/\\/\\\\/g")
ifneq ($(wildcard c:/python27/python.exe),)
WINDOWS_PYTHON_PATH = c:\\python27
PYTHONVERSION = 27
endif
TOP = $(shell echo $(TOP_AUX) | tools\\sed.exe -e "s/\\/\\\\/g" | tools\\sed.exe -e "s/ //g")
endif

View File

@@ -0,0 +1,29 @@
test: test_cc test_python test_java test_csharp
test_cc: cc
golomb --size=5
cvrptw
flow_api
linear_programming
integer_programming
test_python: python
set PYTHONPATH=$(TOP) && $(WINDOWS_PYTHON_PATH)\\python python/hidato_table.py
set PYTHONPATH=$(TOP) && $(WINDOWS_PYTHON_PATH)\\python python/tsp.py
set PYTHONPATH=$(TOP) && $(WINDOWS_PYTHON_PATH)\\python python/pyflow_example.py
set PYTHONPATH=$(TOP) && $(WINDOWS_PYTHON_PATH)\\python python/knapsack.py
set PYTHONPATH=$(TOP) && $(WINDOWS_PYTHON_PATH)\\python python/linear_programming.py
set PYTHONPATH=$(TOP) && $(WINDOWS_PYTHON_PATH)\\python python/integer_programming.py
test_java: java run_RabbitsPheasants run_FlowExample run_LinearProgramming run_IntegerProgramming run_Knapsack
# csharp test
test_csharp: $(CSHARPEXE)
cslinearprogramming
csintegerprogramming
csrabbitspheasants
csflow
csknapsack

View File

@@ -3,6 +3,7 @@ GFLAGS_TAG = 57 # version 1.6
PROTOBUF_TAG = 391 # version 2.4.1
GOOGLE_APPUTILS_TAG = 11 # trunk
GOOGLE_SPARSEHASH_TAG = 103 # trunk
CLP_TAG = 1.14.4
CBC_TAG = 2.7.5
# Build extra dependencies (GLPK, SCIP) from archive only if the archive is present.
@@ -26,23 +27,32 @@ else
endif
endif
# Detect if GLPK archive is there.
ifeq ($(wildcard dependencies/archives/glpk-$(GLPK_TAG).tar.gz),)
GLPK_TARGET =
GLPK_MAKEFILE = \# GLPK support not included.
else
GLPK_TARGET = dependencies\install\bin\glpsol.exe
GLPK_MAKEFILE = WINDOWS_GLPK_DIR = $(TOP)\\dependencies\\install
endif
# Main target.
.PHONY: third_party build_third_party makefile_third_party
third_party: build_third_party makefile_third_party
build_third_party: \
install_directories \
install_zlib \
install_gflags \
install_protobuf \
install_google_apputils \
install_google_sparsehash \
install_protobuf \
install_swig \
install_coin_cbc \
install_glpk \
install_scip
install_glpk
# install_google_sparsehash \
# install_scip
download_third_party: \
dependencies/archives/zlib125-dll.zip \
dependencies/archives/zlib125.zip \
dependencies/sources/gflags/autogen.sh \
dependencies/sources/protobuf/autogen.sh \
dependencies/sources/sparsehash/autogen.sh \
@@ -52,119 +62,160 @@ download_third_party: \
dependencies/archives/glpk-$(GLPK_TAG).tar.gz
# Directories:
.PHONY: install_directories
install_directories: dependencies\install\bin dependencies\install\lib\coin dependencies\install\include\coin
dependencies\install\bin: dependencies\install
md dependencies\install\bin
dependencies\install\lib: dependencies\install
md dependencies\install\lib
dependencies\install\lib\coin: dependencies\install\lib
md dependencies\install\lib\coin
dependencies\install\include: dependencies\install
md dependencies\install\include
dependencies\install\include\coin: dependencies\install\include
md dependencies\install\include\coin
dependencies\install:
md dependencies\install
# Install zlib
install_zlib: dependencies\install\include\zlib.h
install_zlib: dependencies\install\include\zlib.h dependencies\install\include\zconf.h dependencies\install\lib\zlib.lib
dependencies\install\include\zlib.h: dependencies\archives\zlib125-dll.zip
tools\unzip -d dependencies\install dependencies\archives\zlib125-dll.zip
dependencies\install\include\zlib.h: dependencies\sources\zlib-1.2.5\zlib.h
copy dependencies\sources\zlib-1.2.5\zlib.h dependencies\install\include
dependencies\archives\zlib125-dll.zip:
tools\wget -P dependencies\archives http://zlib.net/zlib125-dll.zip
dependencies\install\include\zconf.h: dependencies\sources\zlib-1.2.5\zconf.h
copy dependencies\sources\zlib-1.2.5\zconf.h dependencies\install\include
dependencies\install\lib\zlib.lib: dependencies\sources\zlib-1.2.5\zlib.h
copy dependencies\solutions\Makefile.msc dependencies\sources\zlib-1.2.5
cd dependencies\sources\zlib-1.2.5 && nmake -f Makefile.msc
copy dependencies\sources\zlib-1.2.5\zlib.lib dependencies\install\lib
dependencies\sources\zlib-1.2.5\zlib.h: dependencies\archives\zlib125.zip
cd dependencies\sources && ..\..\tools\unzip ..\archives\zlib125.zip
dependencies\archives\zlib125.zip:
tools\wget -P dependencies\archives http://zlib.net/zlib125.zip
# Install google-gflags.
install_gflags: dependencies/install/bin/gflags_completions.sh
install_gflags: dependencies\install\lib\libgflags.lib dependencies\install\include\gflags\gflags.h
dependencies/install/bin/gflags_completions.sh: dependencies/sources/gflags/Makefile
cd dependencies/sources/gflags && make install
dependencies\install\lib\libgflags.lib: dependencies\sources\gflags\autogen.sh
cd dependencies\solutions && msbuild libgflags.sln /target:Build
dependencies/sources/gflags/Makefile: dependencies/sources/gflags/configure
cd dependencies/sources/gflags && ./configure --prefix=$(TOP)/dependencies/install
dependencies\install\include\gflags\gflags.h: dependencies\install\include\gflags dependencies\sources\gflags\src\windows\gflags\gflags.h
copy dependencies\sources\gflags\src\windows\gflags\*.h dependencies\install\include\gflags
dependencies/sources/gflags/configure: dependencies/sources/gflags/autogen.sh
cd dependencies/sources/gflags && ./autogen.sh
dependencies\install\include\gflags: dependencies\install\include
md dependencies\install\include\gflags
dependencies/sources/gflags/autogen.sh:
dependencies\sources\gflags\src\windows\gflags\gflags.h: dependencies\sources\gflags\autogen.sh
dependencies\sources\gflags\autogen.sh:
svn co http://google-gflags.googlecode.com/svn/trunk/ -r $(GFLAGS_TAG) dependencies/sources/gflags
# Install protocol buffers.
install_protobuf: dependencies/install/bin/protoc.exe
install_protobuf: dependencies\install\bin\protoc.exe dependencies\install\include\google\protobuf\message.h
dependencies/install/bin/protoc.exe: dependencies/sources/protobuf/Makefile
cd dependencies/sources/protobuf && make install
dependencies\install\bin\protoc.exe: dependencies\sources\protobuf\autogen.sh
cd dependencies\solutions && msbuild protobuf.sln /t:build
dependencies/sources/protobuf/Makefile: dependencies/sources/protobuf/configure
cd dependencies/sources/protobuf && ./configure --prefix=$(TOP)/dependencies/install
dependencies\install\include\google\protobuf\message.h: dependencies\sources\protobuf\vsprojects\include.tar
cd dependencies\install && ..\..\tools\tar.exe xvf ..\sources\protobuf\vsprojects\include.tar
dependencies/sources/protobuf/configure: dependencies/sources/protobuf/autogen.sh
cd dependencies/sources/protobuf && ./autogen.sh
dependencies\sources\protobuf\vsprojects\include.tar: dependencies\sources\protobuf\autogen.sh
cd dependencies\sources\protobuf\vsprojects && extract_includes.bat
cd dependencies\sources\protobuf\vsprojects && ..\..\..\..\tools\tar.exe cvf include.tar include
dependencies/sources/protobuf/autogen.sh:
dependencies\sources\protobuf\autogen.sh:
svn co http://protobuf.googlecode.com/svn/trunk/ -r $(PROTOBUF_TAG) dependencies/sources/protobuf
# Intall Google Apputils Python.
install_google_apputils: dependencies/sources/google-apputils/README
install_google_apputils: dependencies\sources\google-apputils\README
dependencies/sources/google-apputils/README:
dependencies\sources\google-apputils\README:
svn co http://google-apputils-python.googlecode.com/svn/trunk/ -r $(GOOGLE_APPUTILS_TAG) dependencies/sources/google-apputils
# Install google-sparsehash.
install_google_sparsehash: dependencies/install/include/google/dense_hash_map
install_google_sparsehash: dependencies\install\include\google\dense_hash_map
dependencies/install/include/google/dense_hash_map: dependencies/sources/sparsehash/Makefile
cd dependencies/sources/sparsehash && make install
dependencies\install\include\google\dense_hash_map: dependencies\sources\sparsehash\Makefile
cd dependencies\sources\sparsehash && make install
dependencies/sources/sparsehash/Makefile: dependencies/sources/sparsehash/configure
cd dependencies/sources/sparsehash && ./configure --prefix=$(TOP)/dependencies/install
dependencies\sources\sparsehash\Makefile: dependencies\sources\sparsehash\configure
cd dependencies\sources\sparsehash && ./configure --prefix=$(TOP)/dependencies/install
dependencies/sources/sparsehash/configure: dependencies/sources/sparsehash/autogen.sh
cd dependencies/sources/sparsehash && ./autogen.sh
dependencies\sources\sparsehash\configure: dependencies\sources\sparsehash\autogen.sh
cd dependencies\sources\sparsehash && ./autogen.sh
dependencies/sources/sparsehash/autogen.sh:
dependencies\sources\sparsehash\autogen.sh:
svn co http://google-sparsehash.googlecode.com/svn/trunk/ -r $(GOOGLE_SPARSEHASH_TAG) dependencies/sources/sparsehash
# Install Coin CBC.
install_coin_cbc: dependencies/install/bin/cbc
install_coin_cbc: dependencies\install\bin\cbc.exe
dependencies/install/bin/cbc: dependencies/sources/coin-cbc/Makefile
cd dependencies/sources/coin-cbc && make install
dependencies\install\bin\cbc.exe: dependencies\sources\coin-cbc\Cbc\MSVisualStudio\v10\$(PLATFORM)\Release\cbc.exe
copy dependencies\sources\coin-cbc\Cbc\MSVisualStudio\v10\$(PLATFORM)\Release\*.lib dependencies\install\lib\coin
copy dependencies\sources\coin-cbc\Cbc\src\*.hpp dependencies\install\include\coin
copy dependencies\sources\coin-cbc\Clp\src\*.hpp dependencies\install\include\coin
copy dependencies\sources\coin-cbc\Clp\src\OsiClp\*.hpp dependencies\install\include\coin
copy dependencies\sources\coin-cbc\CoinUtils\src\*.hpp dependencies\install\include\coin
copy dependencies\sources\coin-cbc\Cgl\src\*.hpp dependencies\install\include\coin
copy dependencies\sources\coin-cbc\Osi\src\Osi\*.hpp dependencies\install\include\coin
copy dependencies\sources\coin-cbc\Cbc\src\*.h dependencies\install\include\coin
copy dependencies\sources\coin-cbc\Clp\src\*.h dependencies\install\include\coin
copy dependencies\sources\coin-cbc\CoinUtils\src\*.h dependencies\install\include\coin
copy dependencies\sources\coin-cbc\Cgl\src\*.h dependencies\install\include\coin
copy dependencies\sources\coin-cbc\Osi\src\Osi\*.h dependencies\install\include\coin
copy dependencies\sources\coin-cbc\Cbc\MSVisualStudio\v10\$(PLATFORM)\Release\cbc.exe dependencies\install\bin
dependencies/sources/coin-cbc/Makefile: dependencies/sources/coin-cbc/configure
cd dependencies/sources/coin-cbc && ./configure --prefix=$(TOP)/dependencies/install --disable-bzlib --without-lapack
dependencies\sources\coin-cbc\Cbc\MSVisualStudio\v10\$(PLATFORM)\Release\cbc.exe: dependencies\sources\coin-cbc\configure
cd dependencies\sources\coin-cbc\Cbc\MSVisualStudio\v10 && msbuild Cbc.sln /t:Build /p:Configuration=Release
dependencies/sources/coin-cbc/configure:
dependencies\sources\coin-cbc\configure:
svn co https://projects.coin-or.org/svn/Cbc/releases/$(CBC_TAG) dependencies/sources/coin-cbc
# Install SWIG.
install_swig: dependencies/install/swigwin-2.0.4/swig.exe
install_swig: dependencies\install\swigwin-2.0.4\swig.exe
dependencies/install/swigwin-2.0.4/swig.exe: dependencies/archives/swigwin-2.0.4.zip
tools/unzip -d dependencies/install dependencies/archives/swigwin-2.0.4.zip
dependencies\install\swigwin-2.0.4\swig.exe: dependencies\archives\swigwin-2.0.4.zip
tools\unzip -d dependencies/install dependencies\archives\swigwin-2.0.4.zip
dependencies/archives/swigwin-2.0.4.zip:
dependencies\archives\swigwin-2.0.4.zip:
tools\wget -P dependencies\archives http://prdownloads.sourceforge.net/swig/swigwin-2.0.4.zip
# Install glpk if needed.
install_glpk: dependencies\install\bin\glpsol.exe
install_glpk: $(GLPK_TARGET)
dependencies/install/bin/glpsol.exe: dependencies/sources/glpk-$(GLPK_TAG)/Makefile
cd dependencies/sources/glpk-$(GLPK_TAG) && make install
dependencies\install\bin\glpsol.exe: dependencies\sources\glpk-$(GLPK_TAG)\glpsol.exe
copy dependencies\sources\glpk-$(GLPK_TAG)\glpk.lib dependencies\install\lib
copy dependencies\sources\glpk-$(GLPK_TAG)\src\glpk.h dependencies\install\include
copy dependencies\sources\glpk-$(GLPK_TAG)\glpsol.exe dependencies\install\bin
dependencies/sources/glpk-$(GLPK_TAG)/Makefile: dependencies/sources/glpk-$(GLPK_TAG)/configure
cd dependencies/sources/glpk-$(GLPK_TAG) && ./configure --prefix=$(TOP)/dependencies/install
dependencies\sources\glpk-$(GLPK_TAG)\glpsol.exe: dependencies\sources\glpk-$(GLPK_TAG)\configure
copy dependencies\sources\glpk-$(GLPK_TAG)\w$(PTRLENGTH)\config_VC dependencies\sources\glpk-$(GLPK_TAG)\w32\config.h
copy dependencies\solutions\glpk.mk dependencies\sources\glpk-$(GLPK_TAG)
cd dependencies\sources\glpk-$(GLPK_TAG) && nmake -f glpk.mk
dependencies/sources/glpk-$(GLPK_TAG)/configure: dependencies/archives/glpk-$(GLPK_TAG).tar.gz
cd dependencies/sources && tar xvzmf ../archives/glpk-$(GLPK_TAG).tar.gz
dependencies/archives/glpk-$(GLPK_TAG).tar.gz:
wget -P dependencies/archives http://ftp.gnu.org/gnu/glpk/glpk-4.47.tar.gz
dependencies\sources\glpk-$(GLPK_TAG)\configure: dependencies\archives\glpk-$(GLPK_TAG).tar.gz
cd dependencies\sources && ..\..\tools\gzip -dc ..\archives\glpk-$(GLPK_TAG).tar.gz | ..\..\tools\tar xvmf -
# Install scip if needed.
install_scip: $(SCIP_TARGET)
dependencies/install/ziboptsuite-$(SCIP_TAG)/scip-$(SCIP_TAG)/bin/scip: dependencies/archives/ziboptsuite-$(SCIP_TAG).tgz
cd dependencies/install && tar xvzmf ../archives/ziboptsuite-$(SCIP_TAG).tgz && cd ziboptsuite-$(SCIP_TAG) && $(BUILD_SCIP)
cd dependencies/install && tar.exe xvzmf ../archives/ziboptsuite-$(SCIP_TAG).tgz && cd ziboptsuite-$(SCIP_TAG) && $(BUILD_SCIP)
# Clean everything.
clean_third_party:
$(DELREC) dependencies/install
$(DELREC) dependencies/sources/*
$(DELREC) dependencies\install
$(DELREC) dependencies\sources\*
$(DEL) Makefile.local
# Create Makefile.local
@@ -172,22 +223,22 @@ makefile_third_party: Makefile.local
# Install python modules
install_python_modules:
cd dependencies/sources/google-apputils && python$(PYTHONVERSION) setup.py install --user
cd dependencies\sources\google-apputils && $(WINDOWS_PYTHON_PATH\\python.exe setup.py install --user
Makefile.local:
@echo Generating Makefile.local
@echo WINDOWS_PYTHON_VER = $(PYTHONVERSION) > Makefile.local
@echo WINDOWS_PYTHON_INC=/I$(WINDOWS_PYTHON_PATH)\\include >> Makefile.local
@echo WINDOWS_PYTHON_LNK=$(WINDOWS_PYTHON_PATH)\\lib\\python$(PYTHONVERSION).lib >> Makefile.local
@echo WINDOWS_GFLAGS_DIR = $(TOP)\\dependencies\\install >> Makefile.local
@echo WINDOWS_PROTOBUF_DIR = $(TOP)\\dependencies\\install >> Makefile.local
@echo WINDOWS_SPARSEHASH_DIR = $(TOP)\\dependencies\\install >> Makefile.local
@echo WINDOWS_SWIG_BINARY = $(TOP)\\dependencies\\install\\swigwin-2.0.4\\swig.exe >> Makefile.local
@echo WINDOWS_CLP_DIR = $(TOP)\\dependencies\\install >> Makefile.local
@echo WINDOWS_CBC_DIR = $(TOP)\\dependencies\\install >> Makefile.local
@echo WINDOWS_GLPK_DIR = $(TOP)\\dependencies\\install >> Makefile.local
@echo $(SCIP_MAKEFILE) >> Makefile.local
@echo $(SELECTED_JDK_DEF) >> Makefile.local
@echo $(SCIP_MAKEFILE) >> Makefile.local
@echo WINDOWS_ZLIB_DIR = $(TOP)\\dependencies\\install> Makefile.local
@echo WINDOWS_ZLIB_NAME=zlib.lib>> Makefile.local
@echo WINDOWS_GFLAGS_DIR = $(TOP)\\dependencies\\install>> Makefile.local
@echo WINDOWS_PROTOBUF_DIR = $(TOP)\\dependencies\\install>> Makefile.local
@echo WINDOWS_SPARSEHASH_DIR = $(TOP)\\dependencies\\install>> Makefile.local
@echo WINDOWS_SWIG_BINARY = $(TOP)\\dependencies\\install\\swigwin-2.0.4\\swig.exe>> Makefile.local
@echo WINDOWS_CLP_DIR = $(TOP)\\dependencies\\install>> Makefile.local
@echo WINDOWS_CBC_DIR = $(TOP)\\dependencies\\install>> Makefile.local
@echo $(GLPK_MAKEFILE)>> Makefile.local
# @echo $(SCIP_MAKEFILE)>> Makefile.local
@echo $(SELECTED_JDK_DEF)>> Makefile.local
@echo WINDOWS_PYTHON_VERSION = \# Please define the python version (27 by default)>> Makefile.local
@echo WINDOWS_PYTHON_PATH = \# Please define WINDOWS_PYTHON_PATH (c:\\python27 by default) >> Makefile.local

View File

@@ -2,12 +2,13 @@ DEBUG=/O2 -DNDEBUG
CCC=cl /EHsc /MD
GFLAGS_INC = /I$(WINDOWS_GFLAGS_DIR)\\src\\windows /I$(WINDOWS_GFLAGS_DIR)\\src /DGFLAGS_DLL_DECL= /DGFLAGS_DLL_DECLARE_FLAG= /DGFLAGS_DLL_DEFINE_FLAG=
ZLIB_INC = /I$(WINDOWS_ZLIB_DIR)
ZLIB_INC = /I$(WINDOWS_ZLIB_DIR)\\include
PROTOBUF_INC = /I$(WINDOWS_PROTOBUF_DIR)\\include
SPARSEHASH_INC = /I$(WINDOWS_SPARSEHASH_DIR)\\include
PYTHON_INC=/I$(WINDOWS_PYTHON_DIR)\\include
PYTHON_LNK=$(WINDOWS_PYTHON_LIB)
PYTHONVERSION = $(WINDOWS_PYTHON_VERSION)
PYTHON_INC=/I$(WINDOWS_PYTHON_PATH)\\include
PYTHON_LNK=$(WINDOWS_PYTHON_PATH)\\libs\\python$(PYTHONVERSION).lib
# Define CLP_DIR if unset and if CBC_DIR is set.
ifdef WINDOWS_CBC_DIR
@@ -20,14 +21,12 @@ ifdef WINDOWS_CLP_DIR
CLP_INC = /I$(WINDOWS_CLP_DIR)\\include /DUSE_CLP
CLP_SWIG = -DUSE_CLP
CLP_LNK = $(WINDOWS_CLP_DIR)\\lib\\coin\\libClp.lib $(WINDOWS_CLP_DIR)\\lib\\coin\\libCoinUtils.lib
CLP_STRING=-DPACKAGE_STRING="\"$(WINDOWS_CLP_PACKAGE)\""
endif
# This is needed to find Coin Branch and Cut include files and libraries.
ifdef WINDOWS_CBC_DIR
CBC_INC = /I$(WINDOWS_CBC_DIR)\\include /DUSE_CBC
CBC_SWIG = -DUSE_CBC
CBC_LNK = $(WINDOWS_CBC_DIR)\\lib\\coin\\libCbcSolver.lib $(WINDOWS_CBC_DIR)\\lib\\coin\\libCbc.lib $(WINDOWS_CBC_DIR)\\lib\\coin\\libCgl.lib $(WINDOWS_CBC_DIR)\\lib\\coin\\libOsi.lib $(WINDOWS_CBC_DIR)\\lib\\coin\\libOsiCbc.lib $(WINDOWS_CBC_DIR)\\lib\\coin\\libOsiClp.lib
CBC_STRING=-DPACKAGE_STRING="\"$(WINDOWS_CBC_PACKAGE)\""
endif
# This is needed to find GLPK include files and libraries.
ifdef WINDOWS_GLPK_DIR
@@ -49,9 +48,8 @@ CFLAGS= -nologo $(SYSCFLAGS) $(DEBUG) /I. /Igen $(GFLAGS_INC) $(ZLIB_INC)\
$(PROTOBUF_INC) $(CBC_INC) $(CLP_INC) $(GLPK_INC) /D__WIN32__ \
$(SPARSEHASH_INC)
JNIFLAGS=$(CFLAGS) $(JAVA_INC)
GFLAGS_LNK = $(WINDOWS_GFLAGS_DIR)\\vsprojects\\libgflags\\Release\\libgflags.lib
ZLIB_LNK = $(WINDOWS_ZLIB_DIR)/$(WINDOWS_ZLIB_NAME)
GFLAGS_LNK = $(WINDOWS_GFLAGS_DIR)\\lib\\libgflags.lib
ZLIB_LNK = $(WINDOWS_ZLIB_DIR)\\lib\\$(WINDOWS_ZLIB_NAME)
PROTOBUF_LNK = $(PROTOBUF_DIR)\\lib\\libprotobuf.lib
LDFLAGS=$(GFLAGS_LNK) $(ZLIB_LNK) $(PROTOBUF_LNK) psapi.lib ws2_32.lib
LDLPDEPS=$(CBC_LNK) $(CLP_LNK) $(GLPK_LNK)