reimplement CFontFaceNamesEnumerator more efficiently, now enumerator doesn't include...
[ezgdi.git] / config.mak
blob0a681907143042d5519a958bc72f86de14ab695e
1 # build debug version of ezgdi
2 #DEBUG = 1
4 # dynamic linking to freetype.dll
5 #USE_FTDLL = 0
7 # specify directories for
8 # use visual c++ x64 cross tools
9 USE_VCX64CROSS = 1
11 # link to easyhook debug lib for debug version
12 # USE_DEBUG_LIB = 1
14 # specify directories for EasyHook
15 # easyhook.h
16 EASYHOOK_INCDIR = ..\easyhook-2.6\public
17 # x86\easyhook32.lib x64\easyhook64.lib
18 EASYHOOK_LIBDIR = $(EASYHOOK_INCDIR)
20 # specify directories for FreeType
21 FREETYPE_DIR = ..\freetype-2.3.12
22 # freetype includes
23 FREETYPE_INCDIR = $(FREETYPE_DIR)\include
24 # freetype32.lib freetype64.lib, see README
25 FREETYPE_LIBDIR = $(FREETYPE_DIR)
26 # freetype src dir
27 FREETYPE_SRCDIR = $(FREETYPE_DIR)\src
29 # use detours in 32-bit version
30 USE_DETOURS = 1
32 # specify directories for detours
33 # detours.h
34 DETOURS_INCDIR = ..\detours\include
35 # detours.lib detoured.lib
36 DETOURS_LIBDIR = ..\detours\lib
38 # use intel compiler to compile
39 #USE_ICC = 1
41 # common config
42 # you may not want to modify following lines
43 !ifdef X64
44 ARCH=x64
45 !else
46 ARCH=x86
47 !endif
49 # compiler options
50 !ifdef X64
51 LIB = $(VCINSTALLDIR)\ATLMFC\LIB\amd64;$(VCINSTALLDIR)\LIB\amd64;$(WINDOWSSDKDIR)\LIB\x64
52 !else # X86
53 LIB = $(VCINSTALLDIR)\ATLMFC\LIB;$(VCINSTALLDIR)\LIB;$(WINDOWSSDKDIR)\LIB
54 !endif
56 !ifdef USE_ICC
57 !ifdef X64
58 LIB = $(ICPP_COMPILER11)\tbb\em64t\vc9\lib;$(ICPP_COMPILER11)\lib\intel64;$(LIB)
59 !else #X86
60 LIB = $(ICPP_COMPILER11)\tbb\ia32\vc9\lib;$(ICPP_COMPILER11)\lib\ia32;$(LIB)
61 !endif
62 !endif
64 LIBPATH = $(LIB)
66 CFLAGS_DEBUG = /Od /MTd /FD /RTC1 /Zi /W4 /DDEBUG /D_DEBUG
67 LDFLAGS_DEBUG = /incremental:no /debug /opt:ref /opt:noicf /map /nodefaultlib:libcmt
69 !ifdef USE_ICC
70 LDFLAGS = /opt:icf /opt:ref
71 CFLAGS = /GS- /MT /O3 /QaxSSE2,SSE3,SSE3,SSE4.1 /Qipo /Qprec-div- /W4 /DNDEBUG
72 CFLAGS_SAFE = /GS- /MT /O1 /GF /Gs /Og /Os /Oi- /Gy /Ob2 /QaxSSE2,SSE3,SSE3,SSE4.1 /Qipo /Qprec-div- /W4 /DNDEBUG
73 ! ifdef X86
74 CFLAGS_SAFE = $(CFLAGS_SAFE) /Oy
75 ! endif
76 !else
77 LDFLAGS = /opt:icf /opt:ref /ltcg
78 CFLAGS_SAFE = /GF /GL /GS- /Gy /MT /O2 /Oi /Ot /W4 /DNDEBUG
79 ! ifdef X86
80 CFLAGS_SAFE = /arch:SSE2 $(CFLAGS_SAFE)
81 ! endif
82 !endif
84 !ifdef USE_ICC
85 ! ifdef X64
86 CC = "$(ICPP_COMPILER11)\bin\intel64\icl.exe"
87 LD = "$(ICPP_COMPILER11)\bin\intel64\xilink.exe"
88 ! else #X86
89 CC = "$(ICPP_COMPILER11)\bin\ia32\icl.exe"
90 LD = "$(ICPP_COMPILER11)\bin\ia32\xilink.exe"
91 ! endif
92 !else
93 ! ifndef X64
94 CC = "$(VCINSTALLDIR)\BIN\cl.exe"
95 LD = "$(VCINSTALLDIR)\BIN\link.exe"
96 ! elseifdef USE_VCX64CROSS
97 CC = "$(VCINSTALLDIR)\BIN\x86_amd64\cl.exe"
98 LD = "$(VCINSTALLDIR)\BIN\x86_amd64\link.exe"
99 ! else
100 CC = "$(VCINSTALLDIR)\BIN\amd64\cl.exe"
101 LD = "$(VCINSTALLDIR)\BIN\amd64\link.exe"
102 ! endif
103 !endif