root/tags/gdal_1_3_2/makefile.evc4

Revision 9224, 1.5 kB (checked in by mloskot, 3 years ago)

[WINCE] Small fixes after wcelibcex has been moved to wince subfolder.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1 # $Id$
2 #
3 # GDAL/OGR main makefile for Windows CE target
4 #
5 # Note: Currently only OGR build is supported. GDAL is not included.
6 #
7
8 GDAL_ROOT = .
9
10 !INCLUDE $(GDAL_ROOT)\nmake-wince.opt
11
12 OGR_OBJ = ogr\ogrsf_frmts\generic\*.obj \
13           ogr\ogrsf_frmts\mitab\*.obj \
14           ogr\ogrsf_frmts\shape\*.obj \
15           ogr\*.obj
16
17 LIBOBJ = $(WCELIBCEX_DIR)\*.obj port\*.obj $(OGR_OBJ)
18
19 DISTDIR = $(GDAL_OUTPUT)_$(VERSION)
20
21 default:        wcelibcex_dir port_dir gcore_dir ogr_dir $(GDAL_DLL)
22
23 lib:
24         if exist $(GDAL_LIB) del $(GDAL_LIB)
25         lib /out:$(GDAL_LIB) $(LIBOBJ)
26
27 clean: 
28         cd $(WCELIBCEX_DIR)
29         $(MAKE) /f makefile.evc4 clean
30         cd ..\..
31         cd port
32         $(MAKE) /f makefile.evc4 clean
33         cd ..
34         cd gcore
35         $(MAKE) /f makefile.evc4 clean
36         cd ..
37         cd ogr
38         $(MAKE) /f makefile.evc4 allclean
39         cd ..
40         if exist $(GDAL_LIB) del $(GDAL_LIB)
41         if exist $(GDAL_DLL) del $(GDAL_DLL)
42         if exist $(GDAL_I_LIB) del $(GDAL_OUTPUT)_i.*
43         -del *.ilk
44         -del *.pdb
45
46 wcelibcex_dir:
47         cd $(WCELIBCEX_DIR)
48         $(MAKE) /f makefile.evc4
49         cd ..\..
50        
51 port_dir:
52         cd port
53         $(MAKE) /f makefile.evc4
54         cd ..
55        
56 gcore_dir:
57         cd gcore
58         $(MAKE) /f makefile.evc4
59         cd ..
60
61 ogr_dir:      wcelibcex_dir port_dir gcore_dir
62         cd ogr
63         $(MAKE) /f makefile.evc4 ogr.lib frmts
64         cd ..
65
66 lib_dist:       default
67         rm -rf $(DISTDIR)
68         mkdir $(DISTDIR)
69         cp $(GDAL_LIB) $(DISTDIR)
70         cp $(GDAL_I_LIB) $(DISTDIR)
71         cp $(WCELIBCEX_DIR)\*.h \
72                 port\*.h ogr\*.h \
73                 ogr\ogrsf_frmts\ogrsf_frmts.h \
74                 $(DISTDIR)
75         zip -r $(DISTDIR).zip $(DISTDIR)
76
77 $(GDAL_DLL):    lib
78         link /dll /debug \
79                 $(LIBOBJ) \
80                 $(LINKER_FLAGS) \
81                 $(EXTERNAL_LIBS) "gcore\Version.res" \
82                 /out:$(GDAL_DLL) /implib:$(GDAL_I_LIB)
83
84
Note: See TracBrowser for help on using the browser.