forked from OSGeo/gdal
-
Notifications
You must be signed in to change notification settings - Fork 1
/
makefile.vc
58 lines (40 loc) · 1.11 KB
/
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
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 -DFRMT_bsb \
$(JPEG2000DEF) $(ECWDEF) $(OGDIDEF) $(HDFDEF) $(ZLIBDEF)
MOREEXTRA = $(KAKDEF)
DIRLIST = $(EXTRAFLAGS:-DFRMT_=) $(KAK_RECURSE)
!INCLUDE $(GDAL_ROOT)/nmake.opt
!IFDEF OGDIDIR
OGDIDEF = -DFRMT_ogdi
!ELSE
ZLIBDEF = -DFRMT_zlib
!ENDIF
!IFDEF JASPER_DIR
JPEG2000DEF = -DFRMT_jpeg2000
!ENDIF
!IFDEF ECWDIR
ECWDEF = -DFRMT_ecw
!ENDIF
!IFDEF HDF4_DIR
HDFDEF = -DFRMT_hdf4
!ENDIF
!IFDEF KAKDIR
KAK_RECURSE = jpeg2000
MOREEXTRA = -DFRMT_jp2kak
!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) $(MOREEXTRA) /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