Dears,
I'm trying to develop yet another JNI interface to the GLPK library, but under
W32 I found that would be better to have a couple of compile and link switches
added during build, ie.: /D_GLPLIB_HUGEMEM, with respect to the ones you
specify in your w32vc6.mak.
I attempted devising a more general approach to the matter, with the intention
not to modify anything to common users, while adding flexibility to 'weird'
ones.
Of course, it is a new version of w32vc6.mak. I attach a copy in the hope you
could blend it in your glpk distribution.
Regards,
Giampaolo Tomassoni
-----------------------------------
Giampaolo Tomassoni - IT Consultant
Piazza VIII Aprile 1948, 4
I-53044 Chiusi (SI) - Italy
Ph: +39-0578-21100
## w32vc6.mak (W32 single-threaded static library, VC++ 6.0) ##
##----------------------------------------------------------------------
## To build W32 single-threaded static library for GLPK with VC++ 6.0
## enter the subdirectory where the file you are reading is placed and
## type the command:
##
## nmake.exe /f w32vc6.mak
##
## The following two files will be created in the same subdirectory:
##
## glpk.lib, GLPK static library, and
##
## glpsol.exe, stand-alone LP/MIP solver.
##
## To check if GLPK has been successfully compiled type the command:
##
## nmake.exe /f w32vc6.mak check
##
## Header files needed to use the GLPK static library are contained in
## the subdirectory 'include'.
##
## Written by Andrew Makhorin, <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]>.
##----------------------------------------------------------------------
#
# External makefiles/scripts may set CCEXTRA and/or LDEXTRA in their
# nmake invocation to add extra switches.
#
# In examples, the following invokation of nmake:
#
# nmake /f w32vc6.mak "CCEXTRA=/Ox /GF6 /MT /D_GLPLIB_HUGEMEM" \
# "LDEXTRA=/SUBSYSTEM:CONSOLE /WS:AGGRESSIVE /NODEFAULTLIB:LIBC"
#
# would produce a highly Pentium Pro/II/III-optimized static library
# and related executables, suitable for a multithread environment with
# MT-compliant malloc/calloc/free routines (i.e.: when you need to use
# glpk.lib to build a jni dll for the Sun JVM).
CFLAGS =/nologo /W3 $(CCEXTRA)
LDFLAGS =$(LDEXTRA)
GLPSOL =glpsol
TSPSOL =tspsol
LIBS =glpk.lib
LIBOBJS =\
src\glpavl.obj src\glpdmp.obj src\glpiet.obj src\glpinv.obj \
src\glpios1.obj src\glpios2.obj src\glpios3.obj src\glpipm.obj \
src\glplib1a.obj sysdep\w32\glplib1b.obj src\glplib2.obj \
src\glplib3.obj src\glplpp1.obj src\glplpp2.obj src\glplpx1.obj \
src\glplpx2.obj src\glplpx3.obj src\glplpx4.obj src\glplpx5.obj \
src\glplpx6a.obj src\glplpx6b.obj src\glplpx6c.obj src\glplpx6d.obj \
src\glplpx7.obj src\glplpx8a.obj src\glplpx8b.obj src\glplpx8c.obj \
src\glplpx8d.obj src\glplpx8e.obj src\glpluf.obj src\glpmat.obj \
src\glpmip1.obj src\glpmip2.obj src\glpmpl1.obj src\glpmpl2.obj \
src\glpmpl3.obj src\glpmpl4.obj src\glpqmd.obj src\glprng.obj \
src\glpspx1.obj src\glpspx2.obj src\glpstr.obj src\glptsp.obj
.c.obj:
cl.exe $(CFLAGS) /Iinclude /Fo$*.obj /c $*.c
all: glpk.lib glpsol.exe tspsol.exe
check: $(GLPSOL).exe
$(GLPSOL).exe examples\plan.mps
$(LIBS): $(LIBOBJS)
lib.exe /out:$@ $?
$(GLPSOL).exe: examples\$(GLPSOL).obj $(LIBS)
cl.exe $(CFLAGS) /Fe$@ examples\$(GLPSOL).obj /link $(LDFLAGS) $(LIBS)
$(TSPSOL).exe: examples\$(TSPSOL).obj $(LIBS)
cl.exe $(CFLAGS) /Fe$@ examples\$(TSPSOL).obj /link $(LDFLAGS) $(LIBS)
clean:
-for %%f in (*.exe,*.lib,*.obj,src\*.obj,sysdep\w32\*.obj) do del /q %%f
## eof ##
_______________________________________________
Help-glpk mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-glpk