forked from OSGeo/gdal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
nmake.opt
1140 lines (964 loc) · 38.7 KB
/
nmake.opt
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
# $Id$
#
# nmake.opt - main configuration file for NMAKE makefiles.
#
# Usage examples (see details below):
# nmake -f makefile.vc
# nmake -f makefile.vc MSVC_VER=1900
# nmake -f makefile.vc MSVC_VER=1900 DEBUG=1
# nmake -f makefile.vc MSVC_VER=1900 DEBUG=1 ANALYZE=1
# nmake -f makefile.vc MSVC_VER=1900 DEBUG=1 ANALYZE=1 WITH_PDB=1
# nmake -f makefile.vc MSVC_VER=1900 WIN64=1
#
# Options:
# DEBUG - set to disable optimizations and link with debug runtimes; also implies WITH_PDB.
# ANALYZE - set to enable code analysis output.
# WITH_PDB - set to enable output of PDB files, supported for both debug and release modes.
# WIN64 - set to target 64-bit architecture.
#
###############################################################################
# For convenience, user may put custom settings in a local settings file
# named nmake.local, or a name defined by the EXT_NMAKE_OPT option.
!IF EXIST("$(GDAL_ROOT)\nmake.local")
!INCLUDE $(GDAL_ROOT)\nmake.local
!ENDIF
# nmake -f makefile.vc EXT_NMAKE_OPT=mynmake.opt
!IFDEF EXT_NMAKE_OPT
!INCLUDE $(EXT_NMAKE_OPT)
!ENDIF
###############################################################################
# Check version of Visual C++ compiler:
# nmake -f makefile.vc MSVC_VER=xxxx
# where xxxx is one of following (older versions no longer supported):
# 1910 = 15.0(2017)
# 1900 = 14.0(2015)
#
!IFNDEF MSVC_VER
#assume msvc VS2015.
MSVC_VER=1900
!ENDIF
###############################################################################
# Allow setting of parallel compilation number of processors with CPU_COUNT
# variable
!IFNDEF CPU_COUNT
CPU_COUNT=%NUMBER_OF_PROCESSORS%
!ENDIF
###############################################################################
# Optional use of Visual Leak Detector (VLD) by Dan Moulding, available at
# http://vld.codeplex.com/
# Uncomment this line to use VLD in debug configuration only:
#MSVC_VLD_DIR="C:\Program Files\Visual Leak Detector"
###############################################################################
# Location to install .exe, .dll and python stuff
# Edit as required. GDAL_HOME is used for convenience here,
# but this particular relative organization is not mandatory.
# But the paths *should* be absolute (relative paths mess up in submakefiles).
!IFNDEF GDAL_HOME
GDAL_HOME = "C:\warmerda\bld"
!ENDIF
!IFNDEF BINDIR
BINDIR = "$(GDAL_HOME)\bin"
!ENDIF
!IFNDEF PLUGINDIR
PLUGINDIR = "$(BINDIR)\gdalplugins"
!ENDIF
!IFNDEF LIBDIR
LIBDIR = "$(GDAL_HOME)\lib"
!ENDIF
!IFNDEF INCDIR
INCDIR = "$(GDAL_HOME)\include"
!ENDIF
!IFNDEF DATADIR
DATADIR = "$(GDAL_HOME)\data"
!ENDIF
!IFNDEF HTMLDIR
# If you want the documentation to be build define a directory
# HTMLDIR = "$(GDAL_HOME)\html"
!ENDIF
# Set this to the installed directory containing python. If you don't
# have python just let it point to a directory that does not exist (as now).
!IFNDEF PYDIR
PYDIR = "C:\Software\Python24"
!ENDIF
# Set this to the name of the python executable in PYDIR. For example "python_d.exe"
# if building python bindings with a debug build.
!IFNDEF PYEXEC
PYEXEC = python.exe
!ENDIF
# Set the location of your SWIG installation
!IFNDEF SWIG
SWIG = swig.exe
!ENDIF
# SWIG Java settings
!IFNDEF JAVA_HOME
JAVA_HOME = c:\j2sdk1.4.2_12
!ENDIF
!IFNDEF ANT_HOME
ANT_HOME=c:\programmi\apache-ant-1.7.0
!ENDIF
JAVADOC=$(JAVA_HOME)\bin\javadoc
JAVAC=$(JAVA_HOME)\bin\javac
JAVA=$(JAVA_HOME)\bin\java
JAR=$(JAVA_HOME)\bin\jar
JAVA_INCLUDE=-I$(JAVA_HOME)\include -I$(JAVA_HOME)\include\win32
# Compilation flags
# Enable code analysis on request
# http://msdn.microsoft.com/en-us/library/ms173498.aspx
!IFDEF ANALYZE
CXX_ANALYZE_FLAGS=/analyze
!ELSE
CXX_ANALYZE_FLAGS=
!ENDIF
# Set DEBUG=1 to create a debug build
!IFNDEF DEBUG
DEBUG=0
!IFNDEF POSTFIX
POSTFIX=
!ENDIF
!ENDIF
# Force PDB output for DEBUG mode
!IF "$(DEBUG)" == "1"
WITH_PDB=1
!IFNDEF POSTFIX
POSTFIX=_d
!ENDIF
!ELSE IF "$(DEBUG)" != "0"
!ERROR DEBUG should be set to 0 or 1
!ENDIF
!IFNDEF GDAL_PDB
GDAL_PDB = $(GDAL_ROOT)\gdal$(VERSION)$(POSTFIX).pdb
!ENDIF
!IFDEF WITH_PDB
CXX_PDB_FLAGS=/Zi /Fd$(GDAL_PDB)
!ELSE
CXX_PDB_FLAGS=
!ENDIF
!IFNDEF OPTFLAGS
!IF "$(DEBUG)" == "0"
OPTFLAGS= $(CXX_ANALYZE_FLAGS) $(CXX_PDB_FLAGS) /nologo /MP$(CPU_COUNT) /MD /EHsc /Ox /FC /D_CRT_SECURE_NO_DEPRECATE /D_CRT_NONSTDC_NO_DEPRECATE /DNDEBUG
!ELSE
OPTFLAGS= $(CXX_ANALYZE_FLAGS) $(CXX_PDB_FLAGS) /nologo /MP$(CPU_COUNT) /MDd /EHsc /FC /D_CRT_SECURE_NO_DEPRECATE /D_CRT_NONSTDC_NO_DEPRECATE /DDEBUG
!ENDIF
!ENDIF # OPTFLAGS
#
# Set flags controlling warnings level, and suppression of some warnings.
#
!IFNDEF WARNFLAGS
# 4127: conditional expression is constant
# 4251: 'identifier' : class 'type' needs to have dll-interface to be used by clients of class 'type2'
# 4275: non DLL-interface classkey 'identifier' used as base for DLL-interface classkey 'identifier'
# 4786: ??????????
# 4100: 'identifier' : unreferenced formal parameter
# 4245: 'conversion' : conversion from 'type1' to 'type2', signed/unsigned mismatch
# 4206: nonstandard extension used : translation unit is empty (only applies to C source code)
# 4351: new behavior: elements of array 'array' will be default initialized (needed for https://trac.osgeo.org/gdal/changeset/35593)
# 4611: interaction between '_setjmp' and C++ object destruction is non-portable
#
WARNFLAGS = /W4 /wd4127 /wd4251 /wd4275 /wd4786 /wd4100 /wd4245 /wd4206 /wd4351 /wd4611
!ENDIF
#
# Set flags controlling availability of SSE
#
!IFNDEF SSEFLAGS
SSEFLAGS = /DHAVE_SSE_AT_COMPILE_TIME
SSSE3FLAGS = /DHAVE_SSSE3_AT_COMPILE_TIME
#SSE_ARCH_FLAGS = /arch:SSE
!ENDIF
!IFNDEF AVXFLAGS
AVXFLAGS = /DHAVE_AVX_AT_COMPILE_TIME
AVX_ARCH_FLAGS = /arch:AVX
!ENDIF
# The following are extra disables that can be applied to external source
# not under our control that we wish to use less stringent warnings with.
!IFNDEF SOFTWARNFLAGS
SOFTWARNFLAGS= /wd4244 /wd4702 /wd4701 /wd4013 /wd4706 /wd4057 /wd4210 /wd4305
!ENDIF
# Linker debug options
!IF "$(DEBUG)" == "1"
LDEBUG= /debug
!ELSEIFDEF WITH_PDB
# Ensures that PDB is included in release DLL if so requested
LDEBUG= /debug /opt:ref /opt:icf
!ENDIF
# Uncomment the following if you are building for 64-bit windows
# (x64). You'll need to have PATH, INCLUDE and LIB set up for 64-bit
# compiles.
#WIN64=YES
# Capture WIN64=1 if specified in NMAKE command line
!IFDEF WIN64
WIN64=YES
!ENDIF
# If you don't want some entry points to have STDCALL conventions,
# comment out the following and add -DCPL_DISABLE_STDCALL in OPTFLAGS.
# This option has no effect on 64-bit windows.
!IFNDEF STDCALL
STDCALL=YES
!ENDIF
# Version number embedded in DLL name.
# If GDAL version is X.Y.Z, VERSION = X * 100 + Y
!IFNDEF VERSION
VERSION = 303
!ENDIF
# Set HAVE_ATLBASE_H=NO if atlbase.h header is not available
!IFNDEF HAVE_ATLBASE_H
HAVE_ATLBASE_H=YES
!ENDIF
# Comment the following out if you want PAM supported disabled
# by default.
!IFNDEF PAM_SETTING
PAM_SETTING=-DPAM_ENABLED
!ENDIF
# Set DLLBUILD=0 to create a static lib instead of a shared lib (.DLL)
!IFNDEF DLLBUILD
DLLBUILD=1
!ENDIF
# Enable all OGR formats, or only raster formats? Comment out to disable
# vector formats.
!IFNDEF INCLUDE_OGR_FRMTS
INCLUDE_OGR_FRMTS = YES
!ENDIF
# Enable all GNM formats? Comment out to disable
# gnm formats.
!IFNDEF INCLUDE_GNM_FRMTS
INCLUDE_GNM_FRMTS = YES
!ENDIF
# To be enabled defined to point to wsetargv.obj from the Visual C++ directory,
# when you want the utility programs to be able to expand wildcards.
#SETARGV = "D:\Software\VStudio\VC98\lib\wsetargv.obj"
# PROJ stuff (required dependency: PROJ >= 6)
#PROJ_INCLUDE = -Id:\install-proj\local\include
# Note: add shell32.lib is needed starting with PROJ 7.0 in some circumstances
# for static linking. See https://github.com/OSGeo/gdal/issues/2488
# And ole32.lib also since PROJ 7.1 (see https://github.com/OSGeo/gdal/issues/2743)
#PROJ_LIBRARY = d:\install-proj\local\lib\proj_6_0.lib shell32.lib ole32.lib
# Uncomment to build with libiconv library to support extended character
# recoding capabilities. GDAL's internal stub implementation supports
# latin1<->utf-8 translations only.
# Depending on your libiconv build you may need to set ICONV_CONST macro to
# const or leave it empty. Take a look on your iconv() declaration in iconv.h.
# If the second parameter declared as const char** then you need to define
# ICONV_CONST=const otherwise leave it empty.
#LIBICONV_DIR = "C:\Program Files\GnuWin32"
#LIBICONV_INCLUDE = -I$(LIBICONV_DIR)\include
#LIBICONV_LIBRARY = $(LIBICONV_DIR)\lib\libiconv.lib
#LIBICONV_CFLAGS = -DICONV_CONST=const
# Comment out the following to disable BSB support.
!IFNDEF BSB_SUPPORTED
BSB_SUPPORTED = 1
!ENDIF
# Comment out the following to disable ODBC support.
!IFNDEF ODBC_SUPPORTED
ODBC_SUPPORTED = 1
!ENDIF
# Uncomment out the following to enable plugin with SQL Native Client support for MSSQL Bulk Copy.
#SQLNCLI_VERSION = 11
#SQLNCLI_DIR = C:\Program Files (x86)\Microsoft SQL Server\$(SQLNCLI_VERSION)0\SDK
#SQLNCLI_LIB = "$(SQLNCLI_DIR)\Lib\x86\sqlncli$(SQLNCLI_VERSION).lib"
#SQLNCLI_INCLUDE = "-I$(SQLNCLI_DIR)\Include" -DSQLNCLI_VERSION=$(SQLNCLI_VERSION) -DMSSQL_BCP_SUPPORTED=1
# Uncomment out the following to enable plugin with Microsoft ODBC Driver 17 for SQL Server support for MSSQL Bulk Copy.
#MSODBCSQL_VERSION = 17
#MSODBCSQL_DIR = C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\$(MSODBCSQL_VERSION)0\SDK
#MSODBCSQL_LIB = "$(MSODBCSQL_DIR)\Lib\x86\msodbcsql$(MSODBCSQL_VERSION).lib"
#MSODBCSQL_INCLUDE = "-I$(MSODBCSQL_DIR)\Include" -DMSODBCSQL_VERSION=$(MSODBCSQL_VERSION) -DMSSQL_BCP_SUPPORTED=1
# Comment out the following to disable JPEG support.
!IFNDEF JPEG_SUPPORTED
JPEG_SUPPORTED = 1
!ENDIF
# This will enable 12bit libjpeg, using internal IJG libjpeg-6b in 12-bit mode
# Note: it is possible to have 12bit JPEG support with this internal IJG libjpeg-6b
# and 8bit JPEG support through an external libjpeg, such as libjpeg-turbo
!IFNDEF JPEG12_SUPPORTED
JPEG12_SUPPORTED = 1
!ENDIF
#if using an external jpeg library uncomment the following lines
# libjpeg-turbo is also supported (and recommended for better performance)
#JPEG_EXTERNAL_LIB = 1
#JPEGDIR = c:/projects/jpeg-6b
#JPEG_LIB = $(JPEGDIR)/libjpeg.lib
#if using an external png library uncomment the following lines
#PNG_EXTERNAL_LIB = 1
#PNGDIR = c:/projects/libpng-1.0.8
#PNG_LIB = $(PNGDIR)/libpng.lib
# if using an external libtiff library. Must be libtiff >= 4.0
#TIFF_INC = -Ic:/warmerda/libtiff/libtiff
#TIFF_LIB = c:/warmerda/libtiff/libtiff/libtiff_i.lib
# if using an external libgeotiff library
#GEOTIFF_INC = -Ic:/warmerda/libgeotiff -Ic:/warmerda/libgeotiff/libxtiff
#GEOTIFF_LIB = C:/warmerda/libgeotiff/geotiff_i.lib
# Uncomment out the following lines to enable LibKML support.
#LIBKML_DIR = C:/Dev/libkml
#LIBKML_INCLUDE = -I$(LIBKML_DIR)/src -I$(LIBKML_DIR)/third_party/boost_1_34_1
#LIBKML_LIBRARY = $(LIBKML_DIR)/msvc/Release
#LIBKML_LIBS = $(LIBKML_LIBRARY)/libkmlbase.lib \
# $(LIBKML_LIBRARY)/libkmlconvenience.lib \
# $(LIBKML_LIBRARY)/libkmldom.lib \
# $(LIBKML_LIBRARY)/libkmlengine.lib \
# $(LIBKML_LIBRARY)/libkmlregionator.lib \
# $(LIBKML_LIBRARY)/libkmlxsd.lib \
# $(LIBKML_LIBRARY)/minizip_static.lib \
# $(LIBKML_DIR)/third_party\expat.win32/libexpat.lib \
# $(LIBKML_DIR)/third_party\uriparser-0.7.5.win32/release/uriparser.lib \
# $(LIBKML_DIR)/third_party\zlib-1.2.3.win32/lib/minizip.lib \
# $(LIBKML_DIR)/third_party\zlib-1.2.3.win32/lib/zlib.lib
# Uncomment the following and update to enable ECW read support with the
# 4.1+ readonly SDK
#ECWDIR = "c:/Program Files/ERDAS/ERDAS ECW JPEG2000 Read SDK"
#ECWFLAGS = -DECWSDK_VERSION=41 \
# -I$(ECWDIR)\include \
# -I$(ECWDIR)\include/NCSECW/api -I$(ECWDIR)\include/NCSECW/jp2 \
# -I$(ECWDIR)\include/NCSECW/ecw
#ECWLIB = $(ECWDIR)\lib\vc90\win32\NCSEcw4_RO.lib \
# $(ECWDIR)\lib\vc90\win32\NCSUtil4.lib \
# $(ECWDIR)\lib\vc90\win32\NCScnet4.lib
# To add Write support, use the write SDK, change NCSEcw4_RO.lib to
# NCSEcw4.lib, and add -DHAVE_COMPRESS to ECWFLAGS. The ECWDIR setting will
# also need some adjustment.
# Uncomment the following and update to enable ECW read support with the 5.0+ SDK
#!IFNDEF MSVC_VER
#ECW_PLATFORM_TOOLSET_DIR = vc140
#!ELSEIF $(MSVC_VER) < 1910
#ECW_PLATFORM_TOOLSET_DIR = vc140
#!ELSEIF $(MSVC_VER) < 1920
#ECW_PLATFORM_TOOLSET_DIR = vc141
#!ELSE
#ECW_PLATFORM_TOOLSET_DIR = vc141
#!ENDIF
#!IF "$(DEBUG)" == "1"
#ECW_LIB_DEBUG_SUFFIX = d
#!ENDIF
#!IF "$(WIN64)" == "1"
#ECW_PLATFORM_DIR = x64
#!ELSE
#ECW_PLATFORM_DIR = Win32
#!ENDIF
#ECWDIR = "C:/Hexagon/ERDAS ECW JPEG 2000 SDK 5.4.0/Desktop Read-Only"
#ECWDIR = "C:/Hexagon/ERDAS ECW JPEG 2000 SDK 5.5.0/Desktop Read-Only"
#ECW_MAJOR_MINOR_VERSION = 55
#ECW_INCLUDES = -I$(ECWDIR)/include \
# -I$(ECWDIR)/include/NCSEcw/API -I$(ECWDIR)/include/NCSEcw/JP2 \
# -I$(ECWDIR)/include/NCSEcw/ECW
#ECW_ENABLE_COMPRESSION = -DHAVE_COMPRESS
#ECWFLAGS = -DECWSDK_VERSION=$(ECW_MAJOR_MINOR_VERSION) $(ECW_ENABLE_COMPRESSION) $(ECW_INCLUDES)
#ECWLIB = $(ECWDIR)\lib\$(ECW_PLATFORM_TOOLSET_DIR)\$(ECW_PLATFORM_DIR)\NCSEcw$(ECW_LIB_LINK_SUFFIX).lib
# To build ECW support as a plugin uncomment the following, and make sure
# to do "nmake /f makefile.vc plugin" in gdal/frmts/ecw and copy the two
# resulting DLLs to an appropriate place.
#ECW_PLUGIN = YES
# Uncomment the following and update to enable JP2Lura driver
#LURATECH_CFLAGS = -Ic:\jp2_csdk_2.16_win64\include
#LURATECH_LIB = c:\jp2_csdk_2.16_win64\library\lwf_jp2.lib
# To build JP2Lura support as a plugin uncomment the following, and make sure
# to do "nmake /f makefile.vc plugin" in gdal/frmts/jp2lura and copy the two
# resulting DLLs to an appropriate place.
#JP2LURA_PLUGIN = YES
# Uncomment the following and update to enable ECW support with the 3.3 SDK.
# Significant adaption may be needed.
#ECWDIR = C:\warmerda\libecwj2-3.3
#ECWLIB = $(ECWDIR)\Source\NCSBuildQmake\Debug\libecwj2.lib
#ECWFLAGS = -DECWSDK_VERSION=33 \
# -I$(ECWDIR)\include -I$(ECWDIR)/Source/include \
# /D_MBCS /D_UNICODE /DUNICODE /D_WINDOWS \
# /DLIBECWJ2 /DWIN32 /D_WINDLL -DNO_X86_MMI
# DWG support using the Open Design Alliance Teigha Libraries
# Two versions are supported:
# - ODA >= 2021 (tested with 2021.2), defined immediately
# - Teigha 4.2, see a bit below
# For ODA >= 2021, you must define appropriately the following variables
# TD_ACTIVATION_FILE_DIRECTORY: path to a directory where the "OdActivationInfo" file is.
# TD_DRAWINGS_BASE: path where the Drawings component is installed (it has among others the Dgn, lib, Kernel and KernelBase subdirectories)
# TD_KERNEL_BASE: path where the Kernel component is installed (it has among others the lib subdirectories)
# TD_PLATFORM: suffix indicating the architecture, compiler version and uild type. For example "vc15dll", "vc15md". This is the suffix found at the end of TD_KERNEL_BASE and TD_DRAWINGS_BASE
# And only when linking against a DLL build of ODA,
# TD_DLL_FLAGS: to uncomment only when linking against a DLL build of ODA.
#
# Example:
# TD_ACTIVATION_FILE_DIRECTORY = C:\dev\oda
# TD_KERNEL_BASE = C:\dev\oda\Kernel_vc15dll
# TD_DRAWINGS_BASE = C:\dev\oda\Drawings_vc15dll
# TD_PLATFORM = vc15dll
# TD_DLL_FLAGS = /D_TOOLKIT_IN_DLL_
# Logic to define TD_INCLUDE and TD_LIBS for ODA >= 2020
!IFDEF TD_PLATFORM
!IFNDEF TD_INCLUDE
TD_INCLUDE = $(TD_DLL_FLAGS)\
-I$(TD_ACTIVATION_FILE_DIRECTORY) \
-I$(TD_DRAWINGS_BASE)\KernelBase\Include \
-I$(TD_DRAWINGS_BASE)\Kernel\Include \
-I$(TD_DRAWINGS_BASE)\Kernel\Extensions\ExServices \
-I$(TD_DRAWINGS_BASE)\Drawing\Include \
-I$(TD_DRAWINGS_BASE)\Drawing\Extensions\ExServices \
-I$(TD_DRAWINGS_BASE)\Dgn\include \
-I$(TD_DRAWINGS_BASE)\Dgn\Extensions\ExServices
!ENDIF
!IFNDEF TD_LIBS
TD_DRAWINGS_LIBDIR = $(TD_DRAWINGS_BASE)\lib\$(TD_PLATFORM)
TD_KERNEL_LIBDIR = $(TD_KERNEL_BASE)\lib\$(TD_PLATFORM)
TD_LIBS = \
$(TD_DRAWINGS_LIBDIR)/TD_Db.lib \
$(TD_DRAWINGS_LIBDIR)/TD_DbCore.lib \
$(TD_DRAWINGS_LIBDIR)/TD_DbEntities.lib \
$(TD_DRAWINGS_LIBDIR)/TD_DrawingsExamplesCommon.lib \
$(TD_DRAWINGS_LIBDIR)/TG_Db.lib \
$(TD_DRAWINGS_LIBDIR)/TG_ExamplesCommon.lib \
$(TD_KERNEL_LIBDIR)/TD_Alloc.lib \
$(TD_KERNEL_LIBDIR)/TD_DbRoot.lib \
$(TD_KERNEL_LIBDIR)/TD_ExamplesCommon.lib \
$(TD_KERNEL_LIBDIR)/TD_Ge.lib \
$(TD_KERNEL_LIBDIR)/TD_Root.lib \
advapi32.lib
!IFDEF TD_DLL_FLAGS
# Additional libs specific to ODA DLL builds
TD_LIBS = $(TD_LIBS) \
$(TD_DRAWINGS_LIBDIR)/TD_Key.lib
!ELSE
# Additional libs specific to ODA static builds
TD_LIBS = $(TD_LIBS) \
$(TD_KERNEL_LIBDIR)/TD_Gi.lib \
$(TD_KERNEL_LIBDIR)/tinyxml.lib \
$(TD_KERNEL_LIBDIR)/TD_Zlib.lib \
$(TD_DRAWINGS_LIBDIR)/TD_DbIO.lib \
$(TD_DRAWINGS_LIBDIR)/ISM.lib \
$(TD_DRAWINGS_LIBDIR)/WipeOut.lib \
$(TD_DRAWINGS_LIBDIR)/RText.lib \
$(TD_DRAWINGS_LIBDIR)/ATEXT.lib \
$(TD_DRAWINGS_LIBDIR)/SCENEOE.lib \
$(TD_DRAWINGS_LIBDIR)/ACCAMERA.lib \
$(TD_DRAWINGS_LIBDIR)/AcMPolygonObj15.lib \
$(TD_KERNEL_LIBDIR)/TD_Gs.lib \
$(TD_KERNEL_LIBDIR)/TD_SpatialIndex.lib \
$(TD_KERNEL_LIBDIR)/oless.lib \
$(TD_KERNEL_LIBDIR)/UTF.lib \
$(TD_KERNEL_LIBDIR)/WinBitmap.lib \
$(TD_KERNEL_LIBDIR)/OdBrepModeler.lib \
$(TD_KERNEL_LIBDIR)/TD_Br.lib \
$(TD_KERNEL_LIBDIR)/TD_AcisBuilder.lib \
$(TD_KERNEL_LIBDIR)/TD_BrepBuilder.lib \
$(TD_KERNEL_LIBDIR)/TD_BrepBuilderFiller.lib \
$(TD_KERNEL_LIBDIR)/TD_BrepRenderer.lib \
$(TD_DRAWINGS_LIBDIR)/ModelerGeometry.lib \
$(TD_DRAWINGS_LIBDIR)/RecomputeDimBlock.lib \
crypt32.lib \
secur32.lib \
user32.lib \
gdi32.lib \
ole32.lib
!ENDIF # TD_DLL_FLAGS
!ENDIF # TD_LIBS
!ENDIF # TD_PLATFORM
# The following works for Teigha 4.2.2
# In TD_INCLUDE, add /D_TOOLKIT_IN_DLL_ if linking against the .dll
#TD_INCLUDE = -I$(TD_BASE)\Core\Include -I$(TD_BASE)\Core\Extensions\ExServices -I$(TD_BASE)\Dgn\include -I$(TD_BASE)\Dgn\Extensions\ExServices
#TD_LIBDIR = $(TD_BASE)\lib\vc14dll
#TD_LIBS = \
# $(TD_LIBDIR)/TD_Key.lib \
# $(TD_LIBDIR)/TD_ExamplesCommon.lib \
# $(TD_LIBDIR)/TD_Db.lib \
# $(TD_LIBDIR)/TD_DbRoot.lib \
# $(TD_LIBDIR)/TD_Root.lib \
# $(TD_LIBDIR)/TD_Ge.lib \
# $(TD_LIBDIR)/TD_Alloc.lib \
# $(TD_LIBDIR)/TG_Db.lib \
# $(TD_LIBDIR)/TG_ExamplesCommon.lib \
# advapi32.lib
# Uncomment to build as a plugin
#TD_PLUGIN = YES
# Uncomment the following and update to enable OGDI support.
#OGDIDIR = D:\warmerda\iii\devdir
#OGDI_INCLUDE = $(OGDIDIR)\include\ogdi
#OGDIVER = 31
#OGDILIB = $(OGDIDIR)\lib\$(TARGET)\ogdi$(OGDIVER).lib \
# $(OGDIDIR)\lib\$(TARGET)\zlib_ogdi$(OGDIVER).lib
# Uncomment for Expat support (required for KML, GPX and GeoRSS read support).
#EXPAT_DIR = "C:\Program Files\Expat 2.0.1"
#EXPAT_INCLUDE = -I$(EXPAT_DIR)/source/lib
#EXPAT_LIB = $(EXPAT_DIR)/bin/libexpat.lib
# Uncomment for Xerces based GML and ILI support.
#XERCES_DIR = c:\warmerda\supportlibs\xerces-c_3_1_3
#XERCES_INCLUDE = -I$(XERCES_DIR)/include -I$(XERCES_DIR)/include/xercesc
#XERCES_LIB = $(XERCES_DIR)/lib/xerces-c_3.lib
# Uncomment the following for Interlis support. Note that a Xercex 3.x
# is also required (see above). Also, Interlis support only works with
# Visual Studio.NET or newer, not VC6.
#ILI_ENABLED = YES
# Uncomment and adjust paths if you have Kakadu 6.0 or newer
#
# Starting with KKDU V7.9.1 (at least), it is possible to generate
# jp2ak and jpipkak with the 2 Kakadu DLLs instead of object files
# In such case :
# o do NOT define KAKOBJDIR
# o define KAKLIB with BOTH Kakadu DLLs
#KAKFLAGS=-DKDU_MAJOR_VERSION=7 -DKDU_MINOR_VERSION=9 -DKDU_PATCH_VERSION=1
#KAKDIR = C:\0_PGH\SRC_CSD\CSD_INTEGRATION\cots\kakadu\download\dev
#KAKLIB = $(KAKDIR)\lib_x64\kdu_v79R.lib $(KAKDIR)\lib_x64\kdu_a79R.lib
#KAKSRC = $(KAKDIR)\v7_9_1-01156C
#KAKEXTRAINC=-I$(KAKDIR)
#KAKOBJDIR = $(KAKDIR)\v7_generated_x86
#JP2KAK_PLUGIN = YES
!IFNDEF KAKADU_7_5_OR_LATER
KAKADU_7_5_OR_LATER = YES
!ENDIF
# Uncomment the following and update to enable NCSA HDF Release 4 support.
#HDF4_PLUGIN = NO
#HDF4_DIR = D:\warmerda\HDF41r5
#HDF4_LIB = /LIBPATH:$(HDF4_DIR)\lib Ws2_32.lib
#HDF4_INCLUDE = $(HDF4_DIR)\include
# HDF4 library newer than 4.2.5 has a SDreset_maxopenfiles/SDget_maxopenfiles
# interface which allows opening many HDF files simultaneously (the max
# number of files was previously hardcoded and too low, smth. like 32).
# Uncomment following if your library is newer than 4.2.5.
#HDF4_HAS_MAXOPENFILES = YES
# Uncomment the following and update to enable NCSA HDF Release 5 support.
#HDF5_PLUGIN = NO
#HDF5_DIR = c:\warmerda\supportlibs\hdf5\5-164-win
#HDF5_LIB = $(HDF5_DIR)\dll\hdf5dll.lib
# Needed to define H5_BUILT_AS_DYNAMIC_LIB for windows compilation
# scenarios where it is not exported on the target (non-CMake builds)
#HDF5_H5_IS_DLL = YES
# Uncomment the following and update to enable KEA support.
#KEA_PLUGIN = NO
#KEA_CFLAGS = -Ic:\kea\include
#KEA_LIB = c:\kea\libkea.lib
# Uncomment the following for MrSID support. Only MRSID_DIR is required,
# which may point to a MrSID Raster SDK and
# will auto-configure the mrsid driver as appropriate.
# Other configuration options can be specified to control specific features
# that may be available. See comments at the top of frmts/mrsid/nmake.opt
# for more details.
#MRSID_DIR = d:\projects\mrsid
#MRSID_JP2 = YES
!IF DEFINED(MRSID_DIR) || DEFINED(MRSID_RASTER_DIR)
!IF EXIST(frmts\mrsid\nmake.opt)
!INCLUDE frmts\mrsid\nmake.opt
!ENDIF
!ENDIF
# PCIDSK Libraries - default configuration uses internal implementation
PCIDSK_SETTING=INTERNAL
# Replace with these to use an external build.
#PCIDSK_SETTING=EXTERNAL
#PCIDSK_INCLUDE=-I\warmerda\pcidsk\src
#PCIDSK_LIB=\warmerda\pcidsk\src\pcidsk.lib
# PostGIS Libraries
#PG_INC_DIR = n:\pkg\libpq_win32\include
#PG_LIB = n:\pkg\libpq_win32\lib\libpqdll.lib wsock32.lib
# MySQL Libraries
# NOTE: Need /MT instead of /MD, also enable /EHsc switch.
#MYSQL_INC_DIR = D:\Software\MySQLServer4.1\include
#MYSQL_LIB = D:\Software\MySQLServer4.1\lib\opt\libmysql.lib advapi32.lib
# SQLite Libraries
#SQLITE_INC=-IN:\pkg\sqlite-win32
#SQLITE_LIB=N:\pkg\sqlite-win32\sqlite3_i.lib
# For spatialite support, try this instead (assuming you grab the libspatialite-amalgamation-2.3.1 and installed it in osgeo4w):
# The -DSPATIALITE_AMALGAMATION, which cause "spatialite/sqlite3.h" to be included instead of "sqlite3.h" might not be necessary
# depending on the layout of the include directories. In case of compilation errors, remove it.
# For RasterLite2 support, add something like -Ic:\install-rl2\include -DHAVE_RASTERLITE2
#SQLITE_INC=-IC:\osgeo4w\include -DHAVE_SPATIALITE -DSPATIALITE_AMALGAMATION
# For RasterLite2 support, add something like c:\install-rl2\lib\librasterlite2.lib
#SQLITE_LIB=C:\osgeo4w\lib\spatialite_i.lib
# Uncomment following line if libsqlite3 has been compiled with SQLITE_HAS_COLUMN_METADATA=yes
#SQLITE_HAS_COLUMN_METADATA=yes
# Uncomment following line if spatialite is 4.1.2 or later
#SPATIALITE_412_OR_LATER=yes
# PCRE2 Library (REGEXP support for SQLite)
#PCRE2_INC=-I"C:\dev\install-pcre2\include" -DHAVE_PCRE2
#PCRE2_LIB="C:\dev\install-pcre2\lib\pcre2-8.lib"
# Deprecated: PCRE Library (REGEXP support for SQLite) for example from http://sourceforge.net/projects/gnuwin32/files/pcre/7.0/pcre-7.0.exe/download
#PCRE_INC=-I"C:\Program Files\GNUWin32\include" -DHAVE_PCRE
#PCRE_LIB="C:\Program Files\GNUWin32\lib\pcre.lib"
# Informix Data Blade
#INFORMIXDIR="C:\Program Files\IBM\Informix\Client-SDK"
#IDB_INC=-I$(INFORMIXDIR)\incl\cpp -I$(INFORMIXDIR)\incl\dmi \
# -I$(INFORMIXDIR)\incl\esql
#IDB_LIB=$(INFORMIXDIR)\lib\cpp\libthc++.lib \
# $(INFORMIXDIR)\lib\dmi\libthdmi.lib $(INFORMIXDIR)\lib\isqlt09a.lib
# Uncomment the following to enable FITS format support
#FITS_PLUGIN = NO
#FITS_INC_DIR = c:\dev32\usr\include\cfitsio
#FITS_LIB = c:\dev32\usr\lib\cfitsio.lib
# Comment out to disable GRIB support.
GRIB_SETTING=yes
# Uncomment the following to enable NetCDF format.
#NETCDF_PLUGIN = NO
#NETCDF_SETTING=yes
#NETCDF_LIB=C:\Software\netcdf\lib\netcdf.lib
#NETCDF_INC_DIR=C:\Software\netcdf\include
# Uncomment the following to add NC4 and HDF4 support
#NETCDF_HAS_NC4 = yes
#NETCDF_HAS_HDF4 = yes
# Uncomment for a version of netcdf with netcdf_mem.h (>= 4.5.0)
#NETCDF_HAS_NETCDF_MEM = yes
# Add ORACLE support.
# Uncomment the following line to enable OCI Oracle Spatial support.
#ORACLE_HOME = C:/Software/Oracle/Product/10.1.0/db_1
# Uncomment the following if you prefer to build OCI support as a plugin.
#OCI_PLUGIN = YES
!IFDEF ORACLE_HOME
!IFNDEF OCI_LIB
OCI_LIB = $(ORACLE_HOME)\oci\lib\msvc\ociw32.lib \
$(ORACLE_HOME)\oci\lib\msvc\oci.lib
!ENDIF
!IFNDEF OCI_INCLUDE
OCI_INCLUDE = -I$(ORACLE_HOME)\oci\include
!ENDIF
!ENDIF
#FGDB_ENABLED = YES
#FGDB_PLUGIN = YES
#FGDB_SDK = C:\Users\rburhum\Desktop\FileGDB_API_VS2008_1_0beta3
#FGDB_INC = $(FGDB_SDK)\include
#FGDB_LIB = $(FGDB_SDK)\lib\FileGDBAPI.lib
#uncomment to build AmigoCloud as a plugin instead
#AMIGOCLOUD_PLUGIN = YES
#uncomment to use ArcObjects
#ARCOBJECTS_ENABLED = YES
#ARCOBJECTS_PLUGIN = YES
#ARCOBJECTS_SDK = C:\PROGRA~2\ArcGIS\com
#ARCOBJECTS_INC = $(ARCOBJECTS_SDK)\..\include
#
#Interestingly, since this is a COM application, we don't link against external libraries,
#but we still need to link the app, so we put the generic user32.lib to force the linking process
#ARCOBJECTS_LIB = user32.lib
# Uncomment to use libcurl (DLL by default)
# The cURL library is used for WCS, WMS, GeoJSON, SRS call importFromUrl(), WFS, CouchDB, /vsicurl/ etc.
#CURL_DIR=C:\curl-7.15.0
#CURL_INC = -I$(CURL_DIR)/include
# Uncomment following line to use libcurl as dynamic library
#CURL_LIB = $(CURL_DIR)/libcurl_imp.lib wsock32.lib wldap32.lib winmm.lib
# Uncomment following two lines to use libcurl as static library
#CURL_LIB = $(CURL_DIR)/libcurl.lib wsock32.lib wldap32.lib winmm.lib
#CURL_CFLAGS = -DCURL_STATICLIB
# Uncomment for DODS / OPeNDAP support
#DODS_DIR = C:\libdap3.6.2
#DODS_LIB = $(DODSDIR)\lib\libdapMD.lib
# Uncomment for libdap >= 3.9
#DODS_FLAGS = -DLIBDAP_39
# Uncomment for GEOS support (GEOS >= 3.1.0 required)
#GEOS_DIR=C:/warmerda/geos
#GEOS_CFLAGS = -I$(GEOS_DIR)/capi -I$(GEOS_DIR)/source/headers -DHAVE_GEOS
#GEOS_LIB = $(GEOS_DIR)/source/geos_c_i.lib
# Uncomment for SOSI support
#SOSI_PLUGIN = YES
#SOSI_ENABLED = YES
#SOSI_INC_DIR = e:/sosi
#SOSI_LIBS = e:/sosi/FYBA.lib e:/sosi/GM.lib e:/sosi/UT.lib
# Uncomment for OpenJpeg (release v2.1 or later) support
#OPENJPEG_ENABLED = YES
# Note that, contrary to GDAL releases <= 2.2.X, this must point to the
# directory where openjpeg.h and opj_config.h are set
#OPENJPEG_CFLAGS = -IC:\openjpeg\include\openjpeg-2.X
#OPENJPEG_LIB = C:\openjpeg\lib\openjp2.lib
#if using an external zlib uncomment the following lines
#ZLIB_EXTERNAL_LIB = 1
#ZLIB_INC = -IC:\projects\zlib
#ZLIB_LIB = C:\projects\lib\Release\zlib.lib
# Uncomment for libdeflate support (still requires zlib in some cases)
#LIBDEFLATE_CFLAGS = -Ie:/dev/install-libdeflate-1.6/include
#LIBDEFLATE_LIB = e:/dev/install-libdeflate-1.6/lib/libdeflate.lib
# Uncomment for PDF support, and update version numbers (poppler 0.23 or later required)
#POPPLER_ENABLED = YES
#POPPLER_CFLAGS = -Ie:/kde/include -Ie:/kde/include/poppler
#POPPLER_MAJOR_VERSION = 0
#POPPLER_MINOR_VERSION = 69
#POPPLER_LIBS = e:/kde/lib/poppler.lib e:/kde/lib/freetype.lib e:/kde/lib/liblcms-1.lib advapi32.lib gdi32.lib
# Uncomment for PDF support
#PODOFO_ENABLED = YES
#PODOFO_CFLAGS = -Ie:/podofo-svn/install/include -Ie:/podofo-svn/install/include/podofo
#PODOFO_LIBS = e:/podofo-svn/install/lib/podofo.lib E:/release-1500-dev/release-1500/lib/freetype239.lib gdi32.lib
# Uncomment for PDF support with PDFium
#
# Copyright (C) 2015 Klokan Technologies GmbH (http://www.klokantech.com/)
# Author: Martin Mikita <[email protected]>, xmikit00 @ FIT VUT Brno
# Copyright 2019 Even Rouault
#
# Pdfium must be built from https://github.com/rouault/pdfium_build_gdal_3_4
#PDFIUM_ENABLED = YES
#PDFIUM_CFLAGS = -IC:\dev\pdfium\install\include\pdfium
#PDFIUM_LIB_DIR = C:\dev\pdfium\install\lib
#PDFIUM_LIBS = $(PDFIUM_LIB_DIR)\pdfium.lib gdi32.lib kernel32.lib user32.lib Advapi32.lib
# Build PDF driver as plugin
#PDF_PLUGIN = NO
# Uncomment for LZMA TIFF support
#LZMA_CFLAGS = -IC:/gdal_trunk/xz-5.0.0-windows/include
#LZMA_LIBS = C:/gdal_trunk/xz-5.0.0-windows/bin_i486/liblzma.lib
# Uncomment for ZSTD TIFF support
#ZSTD_CFLAGS = -IC:/install-zstd/include
#ZSTD_LIBS = C:/install-zstd/lib/libzstd.lib
# Uncomment for Blosc support (for Zarr in particular)
#BLOSC_CFLAGS = -IC:/install-blosc/include
#BLOSC_LIBS = C:/install-blosc/lib/libblosc.lib
# Uncomment for LZ4 support (for Zarr in particular)
#LZ4_CFLAGS = -IC:/install-lz4/include
#LZ4_LIBS = C:/install-lz4/lib/liblz4.lib
# Uncomment for TileDB support
#TILEDB_ENABLED = YES
# For TileDB >= 2.7, add "/std:c++17" to TILEDB_CFLAGS
#TILEDB_CFLAGS = -IC:/install-tiledb/dist/include
#TILEDB_LIBS = C:/install-tiledb/dist/lib/libtiledb.lib
# Uncomment for RDB support
#RDB_ENABLED = YES
#RDB_CFLAGS = -IC:\rdb\rdblib-2.2.0-x86_64-windows\interface\cpp -IC:\rdb\rdblib-2.2.0-x86_64-windows\interface\c
#RDB_LIB = C:\rdb\rdblib-2.2.0-x86_64-windows\library\rdblib.lib
# Uncomment for WEBP support
#WEBP_ENABLED = YES
#WEBP_CFLAGS = -IE:/libwebp-0.1-windows/dev/Include
#WEBP_LIBS = e:/libwebp-0.1-windows/dev/lib/libwebp_a.lib
# Uncomment for libxml2 support (for cpl_xml_validate.cpp routines, used optionally by the GML driver)
#LIBXML2_INC = -Iz:\home\even\release-1500-dev\release-1500\include
#LIBXML2_LIB = z:\home\even\release-1500-dev\release-1500\lib\libxml2.lib
# Uncomment for freexl support
#
# Note: Currently there is no MSVC makefile to build freexl.
# Here's the procedure I've followed (from root of freexl source tree)
# cl /c src/freexl.c /Iheaders /IE:\release-1500-dev\release-1500\include /DDLL_EXPORT
# link /dll E:\release-1500-dev\release-1500\lib\iconv.lib freexl.obj /out:freexl.dll /implib:freexl_i.lib
#
#FREEXL_CFLAGS = -Ie:/freexl-1.0.0a/headers
#FREEXL_LIBS = e:/freexl-1.0.0a/freexl_i.lib
# Uncomment for libgta support
#
#GTA_CFLAGS = -IC:/gdal_trunk/libgta-1.0.0-w32/include -IC:/gdal_trunk/libgta-1.0.0-w32/include/gta
#GTA_LIBS = C:/gdal_trunk/libgta-1.0.0-w32/lib/libgta.dll.a
# Uncomment for MongoDBv3 support
# Uncomment following line if plugin is preferred
#MONGODBV3_PLUGIN = YES
#BOOST_INC=E:/boost_1_69_0
#MONGOCXXV3_CFLAGS = -IE:/dev/install-mongocxx-3.4.0/include/mongocxx/v_noabi -IE:/dev/install-mongocxx-3.4.0/include/bsoncxx/v_noabi
#MONGOCXXV3_LIBS = E:/dev/install-mongocxx-3.4.0/lib/mongocxx.lib E:/dev/install-mongocxx-3.4.0/lib/bsoncxx.lib
# QHull configuration. By default use internal libqhull.
# QHULL_SETTING can be set to INTERNAL, EXTERNAL or NO
# For external qhull, use reentrant qhull 2020.2 or later
!IFNDEF QHULL_SETTING
QHULL_SETTING = INTERNAL
!ENDIF
# To be defined if QHULL_SETTING=EXTERNAL
# QHULL_INC = -I....
# To be defined if QHULL_SETTING=EXTERNAL
# QHULL_LIB = path_to_libqhull.lib
# Cryptopp stuff.
# Make sure cryptopp is compiled with /MD ( Properties | Configuration properties | C/C++ | Code Generation | Runtime Library: Multi-threaded DLL (/MD))
# The headers file must be in $(CRYPTOPP_INC)/cryptopp (the /cryptopp part must not be in the following variable then)
# CRYPTOPP_INC = -Ic:/install-cryptopp-x64/include
#
# Define USE_ONLY_CRYPTODLL_ALG is running against cryptopp.dll, but not if statically linking
# USE_ONLY_CRYPTODLL_ALG=YES
#
# When linking against the DLL:
# CRYPTOPP_LIB = c:/install-cryptopp-x64/lib/cryptopp.lib
#
# When linking against the static lib:
# CRYPTOPP_LIB = c:/install-cryptopp-x64/lib/cryptlib.lib
# OpenSSL stuff (needed if using curl in multithreaded way, with OpenSSL backend)
# OPENSSL_INC = -Ic:/install-openssl/include
# OPENSSL_LIB = c:/instal-openssl/lib/ssleay32.lib c:/instal-openssl/lib/libeay32.lib crypt32.lib
# Comment out to disable MRF support.
MRF_SETTING=yes
# Any extra libraries needed on this platform?
ADD_LIBS =
# Binding list. One or several in the following list
# csharp, java, python
#BINDINGS=java python
# Comment out the following if you want to build with Python support, but
# you don't have Numeric Python installed (with include files). Numeric
# integration may not work. This only appears to the old generation
# bindings.
#HAVE_NUMPY=1
# Uncomment for external liblerc
# The only use of external liblerc currently is for the LERC codec of internal libtiff
# The MRF driver requires internal liblerc to have LERC capabilities
#HAVE_LERC=external
#LERC_INCLUDE = -Ic:\dev\liblerc\include
#LERC_LIB = c:\dev\liblerc\lib\liblerc.lib
# Set HAVE_LERC=no to disable LERC support
!IFNDEF HAVE_LERC
HAVE_LERC=internal
!ENDIF
# Uncomment to build MRF with brunsli support
#BRUNSLI_DIR = C:/brunsli
#BRUNSLI_INC = $(BRUNSLI_DIR)/include
#!IF "$(DEBUG)" == "1"
#BRUNSLI_LIB_DIR = $(BRUNSLI_DIR)/lib/debug
#!ELSE
#BRUNSLI_LIB_DIR = $(BRUNSLI_DIR)/lib
#!ENDIF
#BRUNSLI_LIB = $(BRUNSLI_LIB_DIR)/brunslienc-c.lib $(BRUNSLI_LIB_DIR)/brunslidec-c.lib
# Comment out for DDS driver
#CRUNCH_INC = -Ic:\dev\install-crunch\include\crunch
#CRUNCH_LIB = c:\dev\install-crunch\lib\crunch.lib
# Comment out for OpenEXR driver
#OPENEXR_INC = -Ic:\dev\install-openexr\include\OpenEXR -DOPENEXR_DLL
#OPENEXR_LIB = c:\dev\install-openexr\lib\IlmImf-2_4.lib c:\dev\install-openexr\lib\Iex-2_4.lib c:\dev\install-openexr\lib\Half-2_4.lib
# Comment out for HEIF driver
#HEIF_INC = -Ic:\dev\install-libheif\include
#HEIF_LIB = C:\dev\install-libheif\lib\heif.lib
# Comment out for JXL support (in internal libtiff)
# Add -DHAVE_JxlEncoderFrameSettingsSetOption to JXL_CFLAGS if using a libjxl version > 0.6.1
#JXL_CFLAGS = -Ic:\dev\install-libjxl\include
#JXL_LIB = C:\dev\install-libjxl\lib\libjxl.lib
########### END OF STUFF THAT NORMALLY NEEDS TO BE UPDATED ##################
# Location of MS Data Access SDK (not really needed anymore I think)
#MSDASDK = D:\Software\MDAC_2.6
!IFNDEF GDAL_DLL
GDAL_DLL = gdal$(VERSION)$(POSTFIX).dll
!ENDIF
INC = -I$(GDAL_ROOT)\port -I$(GDAL_ROOT)\ogr -I$(GDAL_ROOT)\gcore \
-I$(GDAL_ROOT)\alg -I$(GDAL_ROOT)\ogr\ogrsf_frmts -I$(GDAL_ROOT)\gnm -I$(GDAL_ROOT)\gnm\gnm_frmts -I$(GDAL_ROOT)\apps
!IFDEF MSVC_VLD_DIR
MSVC_VLD_FLAGS=-DMSVC_USE_VLD=1 -I$(MSVC_VLD_DIR)\include
!IFDEF WIN64
MSVC_VLD_LIB=/LIBPATH:$(MSVC_VLD_DIR)/lib/Win64
!ELSE
MSVC_VLD_LIB=/LIBPATH:$(MSVC_VLD_DIR)/lib/Win32
!ENDIF
!ENDIF
!IFDEF INCLUDE_GNM_FRMTS
!IFNDEF GNM_FLAG
GNM_FLAG = -DGNM_ENABLED
!ENDIF
!ENDIF
#LINKER_FLAGS = /NODEFAULTLIB:LIBC
LINKER_FLAGS = $(EXTRA_LINKER_FLAGS) $(MSVC_VLD_LIB) $(LDEBUG)
CFLAGS = $(OPTFLAGS) $(WARNFLAGS) $(USER_DEFS) $(SSEFLAGS) $(SSSE3FLAGS) $(INC) $(AVXFLAGS) $(EXTRAFLAGS) $(OGR_FLAG) $(GNM_FLAG) $(MSVC_VLD_FLAGS) -DGDAL_COMPILATION
CPPFLAGS = $(CFLAGS) -DNOMINMAX
MAKE = nmake /nologo
!IFNDEF CC
CC = cl
!ENDIF
INSTALL = xcopy /y /r /d /f /I
CPLLIB = $(GDAL_ROOT)/port/cpl.lib
!IFNDEF GDAL_LIB_NAME
!IF "$(DLLBUILD)" == "1"
GDAL_LIB_NAME = gdal_i$(POSTFIX).lib
!ELSE
GDAL_LIB_NAME = gdal$(POSTFIX).lib
!ENDIF
!ENDIF
GDALLIB = $(GDAL_ROOT)\$(GDAL_LIB_NAME)
!IFDEF ODBC_SUPPORTED
# legacy_stdio_definitions.lib : https://connect.microsoft.com/VisualStudio/feedback/details/1134693/vs-2015-ctp-5-c-vsnwprintf-s-and-other-functions-are-not-exported-in-appcrt140-dll-breaking-linkage-of-static-libraries
ODBCLIB = legacy_stdio_definitions.lib odbc32.lib odbccp32.lib user32.lib
!ENDIF
!IF DEFINED(MRSID_DIR) || DEFINED(MRSID_RASTER_DIR)
!IF "$(MRSID_PLUGIN)" != "YES"
MRSID_LIB_LINK = $(MRSID_LIB)
!ELSE