File: makefile.vc

package info (click to toggle)
gdal 1.10.1%2Bdfsg-8
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 84,320 kB
  • ctags: 74,726
  • sloc: cpp: 677,199; ansic: 162,820; python: 13,816; cs: 11,163; sh: 10,446; java: 5,279; perl: 4,429; php: 2,971; xml: 1,500; yacc: 934; makefile: 494; sql: 112
file content (89 lines) | stat: -rw-r--r-- 2,184 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
GDAL_ROOT	=	..\..

!INCLUDE $(GDAL_ROOT)\nmake.opt

!IFDEF DLLBUILD
GDALLIB	=    $(GDAL_ROOT)\gdal_i.lib
!ELSE
GDALLIB	=    $(GDAL_ROOT)\gdal.lib
!ENDIF

JAVA_RUN = $(JAVA) -Djava.library.path=. -cp gdal.jar;build\apps

OBJ	=	gdal_wrap.obj gdalconst_wrap.obj ogr_wrap.obj osr_wrap.obj

all:  ogr_dir gdal_dir const_dir osr_dir
	set JAVA_HOME="$(JAVA_HOME)"
	$(ANT_HOME)\bin\ant

    
ogr_dir:
	cd ogr
	$(MAKE) /f makefile.vc
	cd ..
	link ogr_wrap.obj $(GDALLIB) /out:ogrjni.dll /DLL
	if exist ogrjni.dll.manifest mt -manifest ogrjni.dll.manifest -outputresource:ogrjni.dll;2

gdal_dir:
	cd gdal
	$(MAKE) /f makefile.vc
	cd ..
	link gdal_wrap.obj $(GDALLIB) /out:gdaljni.dll /DLL
	if exist gdaljni.dll.manifest mt -manifest gdaljni.dll.manifest -outputresource:gdaljni.dll;2

const_dir:
	cd const
	$(MAKE) /f makefile.vc
	cd ..
	link gdalconst_wrap.obj $(GDALLIB) /out:gdalconstjni.dll /DLL
	if exist gdalconstjni.dll.manifest mt -manifest gdalconstjni.dll.manifest -outputresource:gdalconstjni.dll;2

osr_dir:
	cd osr
	$(MAKE) /f makefile.vc
	cd ..
	link osr_wrap.obj $(GDALLIB) /out:osrjni.dll /DLL
	if exist osrjni.dll.manifest mt -manifest osrjni.dll.manifest -outputresource:osrjni.dll;2

test:
	if exist tmp_test rmdir /s /q tmp_test
	mkdir tmp_test
	copy  test_data\byte.tif tmp_test
	$(JAVA_RUN) GDALOverviews tmp_test/byte.tif "NEAREST" 2 4
	$(JAVA_RUN) gdalinfo -checksum tmp_test/byte.tif
	$(JAVA_RUN) ogr2ogr tmp_test/out.shp test_data/poly.shp -progress -overwrite
	$(JAVA_RUN) ogrinfo -ro -al tmp_test/out.shp
	$(JAVA_RUN) OSRTransform
	$(JAVA_RUN) gdalmajorobject
	$(JAVA_RUN) GDALTestIO
	$(JAVA_RUN) GDALContour -i 1 tmp_test/byte.tif tmp_test/contour.shp
	$(JAVA_RUN) testgetpoints
	$(JAVA_RUN) ogrtindex tmp_test/contour_index.shp tmp_test/contour.shp

clean:
	if exist org\nul rmdir /s /q org
	if exist build rmdir /s /q build
	cd gdal
	$(MAKE) /f makefile.vc clean
	cd ..
	cd ogr
	$(MAKE) /f makefile.vc clean
	cd ..
	cd const
	$(MAKE) /f makefile.vc clean
	cd ..
	cd osr
	$(MAKE) /f makefile.vc clean
	cd ..	
	-del gdal.jar
	-del *.dll
	-del *.obj
	-del *.exp
	-del *.ilk
	-del *.pdb
	-del *.tlb
	-del *.snk
	-del *.cs
	-del *.cpp
	-del *.lib
	-del *.dll.manifest