forked from OSGeo/gdal
-
Notifications
You must be signed in to change notification settings - Fork 1
/
makefile.vc
41 lines (29 loc) · 875 Bytes
/
makefile.vc
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
GDAL_ROOT = ..
EXTRAFLAGS = -DFRMT_ceos -DFRMT_aigrid -DFRMT_elas -DFRMT_hfa -DFRMT_gtiff\
-DFRMT_sdts -DFRMT_raw -DFRMT_gxf -DFRMT_ceos2 -DFRMT_png \
-DFRMT_jpeg -DFRMT_dted -DFRMT_mem -DFRMT_jdem -DFRMT_gif \
-DFRMT_envisat -DFRMT_aaigrid -DFRMT_usgsdem -DFRMT_l1b \
-DFRMT_fit -DFRMT_vrt -DFRMT_xpm \
$(ECWDEF) $(OGDIDEF) $(ZLIBDEF)
DIRLIST = $(EXTRAFLAGS:-DFRMT_=)
!INCLUDE $(GDAL_ROOT)/nmake.opt
!IFDEF OGDIDIR
OGDIDEF = -DFRMT_ogdi
!ELSE
ZLIBDEF = -DFRMT_zlib
!ENDIF
!IFDEF ECWDIR
ECWDEF = -DFRMT_ecw
!ENDIF
default: o\gdalallregister.obj subdirs
list:
echo $(DIRLIST)
subdirs:
for %d in ( $(DIRLIST) ) do ..\submake.bat %d
o\gdalallregister.obj: gdalallregister.cpp
$(CC) $(CFLAGS) /c gdalallregister.cpp
copy gdalallregister.obj o
clean:
-del o\*.obj *.obj
for %d in ( $(DIRLIST) ) do ..\submake.bat %d clean
..\submake.bat iso8211 clean