[Mapserver-users] MapServer Win32 Compilation and Installation HOWTO

Richard Greenwood Rich at GreenwoodMap.com
Mon Dec 23 15:55:41 EST 2002


--=======460B525D=======
Content-Type: multipart/alternative; x-avg-checked=avg-ok-3BBB6D72; boundary="=====================_7886031==.ALT"


--=====================_7886031==.ALT
Content-Type: text/plain; x-avg-checked=avg-ok-3BBB6D72; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 8bit

At 10:13 PM 12/23/2002 +0800, you wrote:

>Getting Started -
>
>I'm sure there has been many newcomers that ask the same question, and 
>here it goes again. I've downloaded the version 3.6.3 and also have 
>donwloaded all of the required libraries from the page "MapServer Win32 
>Compilation and Installation HOWTO" and followed the instructions on 
>editing the makefile.vc. However, I received a bunch of errors. I am using 
>VC++ 6.0 on Windows 2000. I figure rather than spending time trouble 
>shotting my makefile.vc I was hoping someone would post their working 
>version and then I can get past the first step. It would be a great help.

Below I have pasted in my makefile.vc which supports proj4, gdal (including 
ecw), ttf, wms. This is just for the MapServer CGI, not PHP. Most of my 
edits are indicated with "#RWG". Also note the edits in the "clean:" section.

Rich

# 3.6.3
# RWG 11/12/02
# makefile.vc - Main MapServer makefile for MSVC++
#
# This VC++ makefile will build MAPSERVER.LIB, MAPSERV.EXE,
# and the other MapServer command-line programs. (RWG - not building 
utilities in this makefile)
#
# To use the makefile:
#  - Open a DOS prompt window
#  - Run the VCVARS32.BAT script to initialize the VC++ environment variables
#  - Start the build with:  nmake /f makefile.vc
#
# $Id: Makefile.vc,v 1.21 2002/02/15 16:39:46 assefa Exp $
#

#OPTFLAGS =     /nologo /Zi /W3 /DDEBUG
OPTFLAGS =      /nologo /Zi
BASE_CFLAGS =   $(OPTFLAGS)
LDFLAGS =       /NODEFAULTLIB:libcd

CC=     cl
LINK=   link

#
# If you want to ignore missing datafile errors uncomment the following
# line. This is especially useful with large tiled datasets that may not
# have complete data for each tile.
#
#IGNORE_MISSING_DATA=-DIGNORE_MISSING_DATA

#
# Apparently these aren't as commonplace as I'd hoped. Edit the
# following line to reflect the missing functions on your platform.
#
#STRINGS=-DNEED_STRCASECMP -DNEED_STRNCASECMP -DNEED_STRDUP
STRINGS=-DNEED_STRCASECMP -DNEED_STRNCASECMP

# Proj.4 distribution (cartographic projection routines). Not required for 
normal use. (EXPERIMENTAL)
PROJ_DIR = \Inetpub\wwwroot\mapserver\download\etc\proj-4.4.5
PROJ_LIB=$(PROJ_DIR)/src/proj.lib
PROJ_INC=-I$(PROJ_DIR)/src
PROJ=-DUSE_PROJ -DUSE_PROJ_API_H

#Use this flag to compile with WMS support
WMS=-DUSE_WMS

#Use this flag to compile with WMS Client support
#you need the libwww from http://www.w3.org/Library/.
#WMSCLIENT= -DUSE_WMS_LYR

#WWWLIB_INC=-I../Libwww/library/src -I../libwww/modules/expat/xmlparse
#WWWLIB_LIB=../Libwww/bin/wwwcore.lib ../Libwww/bin/wwwapp.lib 
../Libwww/bin/wwwinit.lib ../Libwww/bin/wwwutils.lib

# A patched version of GD that supports GIF, JPEG, PNG and WBMP can be
# downloaded from http://www.rime.com.au/gd/.
# RWG
GDFONT_OBJ=
GD_INC= -I../gd-1.8.4
GD_LIB= ../gd-1.8.4/gd.lib  ../lpng120/libpng.lib \
         ../zlib/zlib.lib ../freetype/lib/freetype.lib
GD= -DUSE_GD_GIF -DUSE_GD_PNG  -DUSE_GD_TTF \
         -DUSE_GD_TTF -DGD_HAS_GDIMAGEGIFPTR

# TIFF distribution (raster support for TIFF and GEOTIFF imagery).(RECOMMENDED)
# RWG - use GDAL instead
#TIFF_INC=-I../tiff-v3.5.4/libtiff
#TIFF_LIB=../tiff-v3.5.4/libtiff/libtiff.lib
#TIFF=-DUSE_TIFF

# OGR Support OGC Simple Feature inspired interface for vector
# formats.  See http://gdal.velocet.ca/projects/opengis/
#GDAL_DIR= \Inetpub\wwwroot\mapserver\download\etc\gdal-1.1.5
#OGR=-DUSE_OGR
#OGR_LIB = $(GDAL_DIR)/ogr/ogrsf_frmts/ogrsf_frmts.lib 
$(GDAL_DIR)/ogr/ogrsf_frmts/ogrsf_frmts_sup.lib $(GDAL_DIR)/ogr/ogr.lib 
$(GDAL_DIR)/ogr/../port/cpl.lib
#OGR_INC = -I$(GDAL_DIR)/ogr/ogrsf_frmts -I$(GDAL_DIR)/ogr 
-I$(GDAL_DIR)/ogr/../port



#RWG Jan 21, 2002
GDAL=-DUSE_GDAL
GDAL_DIR= \Inetpub\wwwroot\mapserver\download\etc\gdal-1.1.5
ECW_DIR = \Inetpub\wwwroot\mapserver\download\etc\ecw_sdk\lib
GDAL_LIB=  $(GDAL_DIR)/gdal.lib $(ECW_DIR)\NCSEcwC.lib 
$(ECW_DIR)\NCSEcw.lib $(ECW_DIR)\NCSUtil.lib
GDAL_INC= -I$(GDAL_DIR)/core -I$(GDAL_DIR)/port -I$(GDAL_DIR)/ogr

#
# VC++ does not include the REGEX library... so we must provide our one.
# The following definitions will try to build GNU regex-0.12 located in the
# regex-0.12 sub-directory.
# If it was not included in the source distribution, then you can get it from:
#    ftp://ftp.gnu.org/pub/gnu/regex/regex-0.12.tar.gz
#
REGEX_OBJ=..\regex-0.12\regex.obj
REGEX_INC=-I../regex-0.12

#
# IMPORTANT NOTE ABOUT REGEX FOR PHP_MAPSCRIPT USERS:
#
# If you want to compile the PHP_MAPSCRIPT module, then you have to make
# MapServer uses the same version of the REGEX library that PHP was
# compiled with:
#
#PHP_REGEX=..\php-3.0.14\regex
#PHP_REGEX=..\php-4.0.6\regex
#REGEX_OBJ=$(PHP_REGEX)\regcomp.obj $(PHP_REGEX)\regerror.obj \
#          $(PHP_REGEX)\regexec.obj $(PHP_REGEX)\regfree.obj
#REGEX_INC=-I$(PHP_REGEX) -DPHP_NO_ALIASES

#
# REGEX needs some special flags... here they are for VC++ 6.0
#
REGEX_OPT=-DHAVE_STRING_H -DREGEX_MALLOC

#
# --- You shouldn't have to edit anything else. ---
#

#
# Main MapServer library.
#
MS_LIB  =       mapserver.lib
MS_OBJS =       mapbits.obj maphash.obj mapshape.obj mapxbase.obj \
                 mapparser.obj maplexer.obj mapindex.obj maptree.obj \
                 mapsearch.obj mapstring.obj mapsymbol.obj mapfile.obj \
                 maplegend.obj maputil.obj mapscale.obj mapquery.obj \
                 maplabel.obj maperror.obj mapprimitive.obj mapproject.obj\
                 mapraster.obj cgiutil.obj mapsde.obj mapogr.obj \
         maptemplate.obj mappostgis.obj maplayer.obj mapresample.obj \
         mapwms.obj mapwmslayer.obj mapgml.obj maporaclespatial.obj \
         mapprojhack.obj \
                 $(EPPL_OBJ) $(REGEX_OBJ)

MS_HDRS =       map.h mapfile.h

MS_EXE =        mapserv.exe shp2img.exe legend.exe  \
                 shptree.exe scalebar.exe sortshp.exe tile4ms.exe

#
#
#
LIBS    =       $(MS_LIB) $(GD_LIB) $(TIFF_LIB) $(JPEG_LIB) \
                 $(PROJ_LIB) $(ERR_LIB) $(IMGGEN_LIB) $(OGR_LIB) \
                 $(WWWLIB_LIB) $(GDAL_LIB)

INCLUDES =      $(GD_INC) $(TIFF_INC) $(JPEG_INC) \
                 $(PROJ_INC) $(ERR_INC) $(IMGGEN_INC) $(REGEX_INC) $(OGR_INC) \
                 $(WWWLIB_INC) $(GDAL_INC)

CFLAGS =        $(BASE_CFLAGS) $(INCLUDES) $(REGEX_OPT) $(STRINGS)  \
                 $(EPPL) $(PROJ) $(TIFF) $(JPEG) $(GD) $(OGR) $(WMS) 
$(WMSCLIENT) \
                 $(PRIOLIST) $(GDAL)

default:        all

all:            $(MS_LIB) $(MS_EXE)

$(MS_OBJS):     $(MS_HDRS)

$(MS_LIB):      $(MS_OBJS)
         copy $(GDAL_DIR)\gdal.pdb .
         lib /out:$(MS_LIB) $(MS_OBJS)

$(MS_EXE):      $(LIBS)

gd::
         cd gd-1.2
         nmake /f makefile.nt OPTFLAGS="$(OPTFLAGS)"
         cd ..

.c.obj:
         $(CC) $(CFLAGS) /c $*.c /Fo$*.obj

.cpp.obj:
         $(CC) $(CFLAGS) /c $*.cpp /Fo$*.obj

.c.exe:
         $(CC) $(CFLAGS) /c $*.c /Fo$*.obj
         $(LINK) $(LDFLAGS) $*.obj $(LIBS)

.cpp.exe:
         $(CC) $(CFLAGS) /c $*.cpp /Fo$*.obj
         $(LINK) $(LDFLAGS) $*.obj $(LIBS)


clean:
         - at del *.obj
         - at del $(REGEX_OBJ)
         - at del $(MS_LIB)
         - at del $(MS_EXE)
         - at del *.pdb
         - at del *.exp
         - at del *.ilk


Richard W. Greenwood, PLS
Greenwood Mapping, Inc.
Rich at GreenwoodMap.com
(307) 733-0203
http://www.GreenwoodMap.com 

--=====================_7886031==.ALT
Content-Type: text/html; x-avg-checked=avg-ok-3BBB6D72; charset=us-ascii
Content-Transfer-Encoding: 8bit

<html>
<body>
At 10:13 PM 12/23/2002 +0800, you wrote:<br><br>
<blockquote type=cite class=cite cite><font face="arial" size=2>Getting
Started - </font><br>
&nbsp;<br>
<font face="arial" size=2>I'm sure there has been many newcomers that ask
the same question, and here it goes again. I've downloaded the version
3.6.3 and also have donwloaded all of the required libraries from the
page &quot;MapServer Win32 Compilation and Installation HOWTO&quot; and
followed the instructions on editing the makefile.vc. However, I received
a bunch of errors. I am using VC++ 6.0 on Windows 2000. I figure rather
than spending time trouble shotting my makefile.vc I was hoping someone
would post their working version and then I can get past the first step.
It would be a great help.</font></blockquote><br>
Below I have pasted in my makefile.vc which supports proj4, gdal
(including ecw), ttf, wms. This is just for the MapServer CGI, not PHP.
Most of my edits are indicated with &quot;#RWG&quot;. Also note the edits
in the &quot;clean:&quot; section.<br><br>
Rich<br><br>
# 3.6.3<br>
# RWG 11/12/02<br>
# makefile.vc - Main MapServer makefile for MSVC++<br>
#<br>
# This VC++ makefile will build MAPSERVER.LIB, MAPSERV.EXE, <br>
# and the other MapServer command-line programs. (RWG - not building
utilities in this makefile)<br>
#<br>
# To use the makefile:<br>
#&nbsp; - Open a DOS prompt window<br>
#&nbsp; - Run the VCVARS32.BAT script to initialize the VC++ environment
variables<br>
#&nbsp; - Start the build with:&nbsp; nmake /f makefile.vc<br>
#<br>
# $Id: Makefile.vc,v 1.21 2002/02/15 16:39:46 assefa Exp $<br>
#<br><br>
#OPTFLAGS =<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>/nologo /Zi /W3
/DDEBUG<br>
OPTFLAGS =<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>/nologo /Zi
<br>
BASE_CFLAGS = <x-tab>&nbsp;&nbsp;</x-tab>$(OPTFLAGS) <br>
LDFLAGS
=<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>/NODEFAULTLIB:libcd<br><br>
CC=&nbsp;&nbsp;&nbsp;&nbsp; cl<br>
LINK=&nbsp;&nbsp; link<br><br>
#<br>
# If you want to ignore missing datafile errors uncomment the
following<br>
# line. This is especially useful with large tiled datasets that may
not<br>
# have complete data for each tile.<br>
#<br>
#IGNORE_MISSING_DATA=-DIGNORE_MISSING_DATA<br><br>
#<br>
# Apparently these aren't as commonplace as I'd hoped. Edit the<br>
# following line to reflect the missing functions on your platform.<br>
#<br>
#STRINGS=-DNEED_STRCASECMP -DNEED_STRNCASECMP -DNEED_STRDUP<br>
STRINGS=-DNEED_STRCASECMP -DNEED_STRNCASECMP<br><br>
# Proj.4 distribution (cartographic projection routines). Not required
for normal use. (EXPERIMENTAL)<br>
PROJ_DIR = \Inetpub\wwwroot\mapserver\download\etc\proj-4.4.5<br>
PROJ_LIB=$(PROJ_DIR)/src/proj.lib<br>
PROJ_INC=-I$(PROJ_DIR)/src<br>
PROJ=-DUSE_PROJ -DUSE_PROJ_API_H<br><br>
#Use this flag to compile with WMS support<br>
WMS=-DUSE_WMS<br><br>
#Use this flag to compile with WMS Client support<br>
#you need the libwww from
<a href="http://www.w3.org/Library/" eudora="autourl">http://www.w3.org/Library/</a>.<br>
#WMSCLIENT= -DUSE_WMS_LYR<br><br>
#WWWLIB_INC=-I../Libwww/library/src
-I../libwww/modules/expat/xmlparse<br>
#WWWLIB_LIB=../Libwww/bin/wwwcore.lib ../Libwww/bin/wwwapp.lib
../Libwww/bin/wwwinit.lib ../Libwww/bin/wwwutils.lib<br><br>
# A patched version of GD that supports GIF, JPEG, PNG and WBMP can be
<br>
# downloaded from
<a href="http://www.rime.com.au/gd/" eudora="autourl">http://www.rime.com.au/gd/</a>.<br>
# RWG<br>
GDFONT_OBJ=<br>
GD_INC=<x-tab>&nbsp;</x-tab>-I../gd-1.8.4<br>
GD_LIB=<x-tab>&nbsp;</x-tab>../gd-1.8.4/gd.lib&nbsp;
../lpng120/libpng.lib \<br>
<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>../zlib/zlib.lib
../freetype/lib/freetype.lib<br>
GD= -DUSE_GD_GIF -DUSE_GD_PNG&nbsp; -DUSE_GD_TTF \<br>
<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>-DUSE_GD_TTF
-DGD_HAS_GDIMAGEGIFPTR<br><br>
# TIFF distribution (raster support for TIFF and GEOTIFF
imagery).(RECOMMENDED)<br>
# RWG - use GDAL instead<br>
#TIFF_INC=-I../tiff-v3.5.4/libtiff<br>
#TIFF_LIB=../tiff-v3.5.4/libtiff/libtiff.lib<br>
#TIFF=-DUSE_TIFF<br><br>
# OGR Support OGC Simple Feature inspired interface for vector<br>
# formats.&nbsp; See
<a href="http://gdal.velocet.ca/projects/opengis/" eudora="autourl">http://gdal.velocet.ca/projects/opengis/</a><br>
#GDAL_DIR= \Inetpub\wwwroot\mapserver\download\etc\gdal-1.1.5<br>
#OGR=-DUSE_OGR<br>
#OGR_LIB = $(GDAL_DIR)/ogr/ogrsf_frmts/ogrsf_frmts.lib
$(GDAL_DIR)/ogr/ogrsf_frmts/ogrsf_frmts_sup.lib $(GDAL_DIR)/ogr/ogr.lib
$(GDAL_DIR)/ogr/../port/cpl.lib<br>
#OGR_INC = -I$(GDAL_DIR)/ogr/ogrsf_frmts -I$(GDAL_DIR)/ogr
-I$(GDAL_DIR)/ogr/../port<br><br>
<br><br>
#RWG Jan 21, 2002<br>
GDAL=-DUSE_GDAL<br>
GDAL_DIR= \Inetpub\wwwroot\mapserver\download\etc\gdal-1.1.5<br>
ECW_DIR = \Inetpub\wwwroot\mapserver\download\etc\ecw_sdk\lib<br>
GDAL_LIB=&nbsp; $(GDAL_DIR)/gdal.lib $(ECW_DIR)\NCSEcwC.lib
$(ECW_DIR)\NCSEcw.lib $(ECW_DIR)\NCSUtil.lib<br>
GDAL_INC= -I$(GDAL_DIR)/core -I$(GDAL_DIR)/port
-I$(GDAL_DIR)/ogr<br><br>
#<br>
# VC++ does not include the REGEX library... so we must provide our
one.<br>
# The following definitions will try to build GNU regex-0.12 located in
the<br>
# regex-0.12 sub-directory.<br>
# If it was not included in the source distribution, then you can get it
from:<br>
#&nbsp;&nbsp;&nbsp;
<a href="ftp://ftp.gnu.org/pub/gnu/regex/regex-0.12.tar.gz" eudora="autourl">ftp://ftp.gnu.org/pub/gnu/regex/regex-0.12.tar.gz</a><br>
#<br>
REGEX_OBJ=..\regex-0.12\regex.obj<br>
REGEX_INC=-I../regex-0.12<br><br>
#<br>
# IMPORTANT NOTE ABOUT REGEX FOR PHP_MAPSCRIPT USERS:<br>
#<br>
# If you want to compile the PHP_MAPSCRIPT module, then you have to
make<br>
# MapServer uses the same version of the REGEX library that PHP was 
<br>
# compiled with:<br>
#<br>
#PHP_REGEX=..\php-3.0.14\regex<br>
#PHP_REGEX=..\php-4.0.6\regex<br>
#REGEX_OBJ=$(PHP_REGEX)\regcomp.obj $(PHP_REGEX)\regerror.obj \<br>
#&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
$(PHP_REGEX)\regexec.obj $(PHP_REGEX)\regfree.obj<br>
#REGEX_INC=-I$(PHP_REGEX) -DPHP_NO_ALIASES<br><br>
#<br>
# REGEX needs some special flags... here they are for VC++ 6.0<br>
#<br>
REGEX_OPT=-DHAVE_STRING_H -DREGEX_MALLOC<br><br>
#<br>
# --- You shouldn't have to edit anything else. ---<br>
#<br><br>
#<br>
# Main MapServer library.<br>
#<br>
MS_LIB&nbsp;
=<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>mapserver.lib<br>
MS_OBJS = <x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>mapbits.obj
maphash.obj mapshape.obj mapxbase.obj \<br>
<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab><x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>mapparser.obj
maplexer.obj mapindex.obj maptree.obj \<br>
<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab><x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>mapsearch.obj
mapstring.obj mapsymbol.obj mapfile.obj \<br>
<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab><x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>maplegend.obj
maputil.obj mapscale.obj mapquery.obj \<br>
<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab><x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>maplabel.obj
maperror.obj mapprimitive.obj mapproject.obj\<br>
<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab><x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>mapraster.obj
cgiutil.obj mapsde.obj mapogr.obj \<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; maptemplate.obj mappostgis.obj
maplayer.obj mapresample.obj \<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; mapwms.obj mapwmslayer.obj
mapgml.obj maporaclespatial.obj \<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; mapprojhack.obj \<br>
<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab><x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>$(EPPL_OBJ)
$(REGEX_OBJ)<br><br>
MS_HDRS = <x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>map.h
mapfile.h<br><br>
MS_EXE =
<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>mapserv.exe
shp2img.exe legend.exe&nbsp; \<br>
<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab><x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>shptree.exe
scalebar.exe sortshp.exe tile4ms.exe<br><br>
#<br>
#<br>
#<br>
LIBS<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>=<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>$(MS_LIB)
$(GD_LIB) $(TIFF_LIB) $(JPEG_LIB) \<br>
<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab><x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>$(PROJ_LIB)
$(ERR_LIB) $(IMGGEN_LIB) $(OGR_LIB) \<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
$(WWWLIB_LIB) $(GDAL_LIB)<br><br>
INCLUDES =<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>$(GD_INC)
$(TIFF_INC) $(JPEG_INC) \<br>
<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab><x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>$(PROJ_INC)
$(ERR_INC) $(IMGGEN_INC) $(REGEX_INC) $(OGR_INC) \<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
$(WWWLIB_INC) $(GDAL_INC)<br><br>
CFLAGS
=<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>$(BASE_CFLAGS)
$(INCLUDES) $(REGEX_OPT) $(STRINGS)&nbsp; \<br>
<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab><x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>$(EPPL)
$(PROJ) $(TIFF) $(JPEG) $(GD) $(OGR) $(WMS) $(WMSCLIENT) \<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
$(PRIOLIST) $(GDAL)<br><br>
default:
<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>all<br><br>
all:<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;</x-tab><x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>$(MS_LIB)
$(MS_EXE)<br><br>
$(MS_OBJS):<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>$(MS_HDRS)<br><br>
$(MS_LIB):<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>$(MS_OBJS)<br>
<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>copy
$(GDAL_DIR)\gdal.pdb .<br>
<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>lib
/out:$(MS_LIB) $(MS_OBJS)<br><br>
$(MS_EXE):<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>$(LIBS)<br><br>
gd::<br>
<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>cd
gd-1.2<br>
<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>nmake /f
makefile.nt OPTFLAGS=&quot;$(OPTFLAGS)&quot;<br>
<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>cd
..<br><br>
.c.obj:<x-tab>&nbsp;</x-tab><br>
<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>$(CC)
$(CFLAGS) /c $*.c /Fo$*.obj<br><br>
.cpp.obj:<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab><br>
<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>$(CC)
$(CFLAGS) /c $*.cpp /Fo$*.obj<br><br>
.c.exe:<br>
<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>$(CC)
$(CFLAGS) /c $*.c /Fo$*.obj<br>
<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>$(LINK)
$(LDFLAGS) $*.obj $(LIBS)<br><br>
.cpp.exe:<br>
<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>$(CC)
$(CFLAGS) /c $*.cpp /Fo$*.obj<br>
<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>$(LINK)
$(LDFLAGS) $*.obj $(LIBS)<br><br>
<br>
clean:<br>
<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>- at del
*.obj<br>
<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>- at del
$(REGEX_OBJ)<br>
<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>- at del
$(MS_LIB)<br>
<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>- at del
$(MS_EXE)<br>
<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>- at del
*.pdb<br>
<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>- at del
*.exp<br>
<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>- at del
*.ilk<br><br>
<x-sigsep><p></x-sigsep>
Richard W. Greenwood, PLS<br>
Greenwood Mapping, Inc.<br>
Rich at GreenwoodMap.com<br>
(307) 733-0203<br>
<a href="http://www.greenwoodmap.com/" eudora="autourl">http://www.GreenwoodMap.com</a></body>
</html>


--=====================_7886031==.ALT--

--=======460B525D=======
Content-Type: text/plain; charset=us-ascii; x-avg=cert; x-avg-checked=avg-ok-3BBB6D72
Content-Disposition: inline


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.431 / Virus Database: 242 - Release Date: 12/17/2002

--=======460B525D=======--




More information about the mapserver-users mailing list