| 1 |
|
|---|
| 2 |
GDAL_ROOT = ../ |
|---|
| 3 |
!INCLUDE $(GDAL_ROOT)\nmake.opt |
|---|
| 4 |
|
|---|
| 5 |
SCRIPT_CONFIG = .\setup.ini |
|---|
| 6 |
|
|---|
| 7 |
gdalvars: |
|---|
| 8 |
-del $(SCRIPT_CONFIG) |
|---|
| 9 |
echo $(GDAL_HOME) > $(SCRIPT_CONFIG) |
|---|
| 10 |
findstr /c:"define GDAL_RELEASE_NAME " ..\gcore\gdal_version.h >> $(SCRIPT_CONFIG) |
|---|
| 11 |
#echo $(EXTERNAL_LIBS) >> $(SCRIPT_CONFIG) |
|---|
| 12 |
|
|---|
| 13 |
python: gdalvars |
|---|
| 14 |
cd python |
|---|
| 15 |
$(SWIG) -python -modern -new_repr -o extensions/gdalconst_wrap.c -outdir osgeo ..\include\gdalconst.i |
|---|
| 16 |
$(SWIG) -c++ -python -modern -new_repr -I../include/python -I../include/python/docs -o extensions/gdal_wrap.cpp -outdir osgeo ..\include\gdal.i |
|---|
| 17 |
$(SWIG) -c++ -python -modern -new_repr -I../include/python -I../include/python/docs -o extensions/osr_wrap.cpp -outdir osgeo ..\include\osr.i |
|---|
| 18 |
$(SWIG) -c++ -python -modern -new_repr -I../include/python -I../include/python/docs -o extensions/ogr_wrap.cpp -outdir osgeo ..\include\ogr.i |
|---|
| 19 |
$(PYDIR)\python.exe setup.py build |
|---|
| 20 |
|
|---|
| 21 |
#d:\Python\debug\Python-2.4\PCbuild\python_d.exe setup.py build --debug |
|---|
| 22 |
|
|---|
| 23 |
csharp: gdalvars |
|---|
| 24 |
cd csharp |
|---|
| 25 |
nmake /f makefile.vc interface |
|---|
| 26 |
nmake /f makefile.vc |
|---|
| 27 |
|
|---|
| 28 |
java: gdalvars |
|---|
| 29 |
cd java |
|---|
| 30 |
if not exist org\gdal\gdal mkdir org\gdal\gdal |
|---|
| 31 |
cd gdal |
|---|
| 32 |
$(SWIG) -java -c++ -package org.gdal.gdal -outdir ../org/gdal/gdal -I../../include/java -o gdal_wrap.cpp ../../../include/gdal.i |
|---|
| 33 |
cd .. |
|---|
| 34 |
cd org\gdal |
|---|
| 35 |
if not exist ogr mkdir ogr |
|---|
| 36 |
cd ../../ |
|---|
| 37 |
cd ogr |
|---|
| 38 |
$(SWIG) -java -c++ -package org.gdal.ogr -outdir ../org/gdal/ogr -I../../include/java -o ogr_wrap.cpp ../../../include/ogr.i |
|---|
| 39 |
cd .. |
|---|
| 40 |
cd org\gdal |
|---|
| 41 |
if not exist osr mkdir osr |
|---|
| 42 |
cd ../../ |
|---|
| 43 |
cd osr |
|---|
| 44 |
$(SWIG) -java -c++ -package org.gdal.osr -outdir ../org/gdal/osr -I../../include/java -o osr_wrap.cpp ../../../include/osr.i |
|---|
| 45 |
cd .. |
|---|
| 46 |
cd org\gdal |
|---|
| 47 |
if not exist gdalconst mkdir gdalconst |
|---|
| 48 |
cd ../../ |
|---|
| 49 |
cd const |
|---|
| 50 |
$(SWIG) -java -c++ -package org.gdal.gdalconst -outdir ../org/gdal/gdalconst -I../../include/java -o gdalconst_wrap.cpp ../../../include/gdalconst.i |
|---|
| 51 |
cd .. |
|---|
| 52 |
nmake /f makefile.vc |
|---|
| 53 |
|
|---|
| 54 |
ruby: gdalvars |
|---|
| 55 |
cd ruby |
|---|
| 56 |
$(SWIG) -ruby -I../include/ruby -o gdalconst_wrap.c -autorename -prefix "gdal::" ../include/gdalconst.i |
|---|
| 57 |
$(SWIG) -c++ -ruby -I../include/ruby -o gdal_wrap.cpp -autorename -prefix "gdal::" ../include/gdal.i |
|---|
| 58 |
$(SWIG) -c++ -ruby -I../include/ruby -o osr_wrap.cpp -autorename -prefix "gdal::" ../include/osr.i |
|---|
| 59 |
$(SWIG) -c++ -ruby -I../include/ruby -o ogr_wrap.cpp -autorename -prefix "gdal::" ../include/ogr.i |
|---|
| 60 |
nmake /f makefile.vc build |
|---|
| 61 |
nmake /f makefile.vc install |
|---|
| 62 |
|
|---|
| 63 |
test: gdalvars |
|---|
| 64 |
cd $(GDAL_HOME)\..\gdalautotest |
|---|
| 65 |
$(PYDIR)/python.exe run_all.py |
|---|
| 66 |
clean: |
|---|
| 67 |
-del setup.ini |
|---|
| 68 |
cd csharp |
|---|
| 69 |
nmake /f makefile.vc clean |
|---|
| 70 |
cd .. |
|---|
| 71 |
cd python |
|---|
| 72 |
if exist build\nul rmdir /S /Q build |
|---|
| 73 |
cd .. |
|---|
| 74 |
cd java |
|---|
| 75 |
nmake /f makefile.vc clean |
|---|
| 76 |
cd .. |
|---|
| 77 |
cd ruby |
|---|
| 78 |
nmake /f makefile.vc clean |
|---|
| 79 |
cd .. |
|---|
| 80 |
|
|---|