[mapserver-users] Is it possilbe to compile mapserver sources by mingw?

woodbri at swoodbridge.com woodbri at swoodbridge.com
Mon Sep 30 17:08:54 EDT 2002


The the Borland make utility is very close to the Linux make utility.
here is a sample Makefile from a Linux project that I ported over to 
Borland Free C/C++ compiler.  It is pretty basic but it might be a 
good starting place from the borland compiler. The compiler comes 
with a predefined include that called BUILTINS.MAK that is in the 
Borland install tree and get loaded when make starts up.

Hope this helps,
  -Steve


INCLUDE = -I.;"../include"
CFLAGS = -v -DWIN32 $(INCLUDE)

OBJS = main.obj geo.obj placezip2.obj

LIBDIRS = /L.;"../lib"
LFLAGS = -lap -lc -M -ls $(LIBDIRS)
LIBS = stand.lib strtools.lib cgi-util.lib libshp.lib getopt.lib

all :    geo.exe mkgeodbf.exe

geo.exe :    $(OBJS)
    $(CC) $(CFLAGS) $(LFLAGS) -egeo.exe $(OBJS) $(LIBS)

mkgeodbf.exe :  mkgeodbf.obj
        $(CC) $(CFLAGS) $(LIBDIRS) mkgeodbf.obj $(LIBS)

clean:
        rm -f *.obj *.exe



On 30 Sep 2002 at 14:52, Pericles S. Nacionales wrote:

> MSVC++ isn't required to compile MapServer on Win32 platform.  You can
> use Mingw or Borland C/C++ (or whatever) if you want, provided you
> know how to make a Makefile script for their particular make program. 
> I was actually going to start using Borland's free (not Free Software)
> C/C++ compiler but couldn't find enough time...  If I ever do, I'll
> provide a HOW-TO.
> 
> -Perry N.
> 
> 
> On Mon, 2002-09-30 at 14:39, Hisaji ONO wrote:
> > Hello.
> > 
> >  Compiling  mapserver sources for native win32 binaries seems to
> >  require
> > VC++.
> > 
> >  Mingw can't build Win32 binaries?
> > 
> >  Can someone tell me?
> > 
> >  Best Regards.
> > 
> > 
> 
> 
> 





More information about the mapserver-users mailing list