## 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, , . ##---------------------------------------------------------------------- # # 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 ##