Menu

[r1148]: / trunk / ext / cyrus-sasl / win32 / common.mak  Maximize  Restore  History

Download this file

216 lines (172 with data), 5.5 kB

  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
#Can this be autogenerated?
#Keep in sync with include/sasl.h and win32/include/config.h
SASL_VERSION_MAJOR=2
SASL_VERSION_MINOR=1
SASL_VERSION_STEP=24
!IF "$(STATIC)" == ""
STATIC=yes
!ENDIF
# Uncomment the following line, if you want to use Visual Studio 6
#VCVER=6
# Use in Visual Studio 6 & 7:
#EXCEPTHANDLING=/GX
# Use in Visual Studio 8:
EXCEPTHANDLING=/EHsc
# Define compiler/linker/etc.
CPP=cl.exe /nologo
LINK32=link.exe /nologo
LINK32DLL=$(LINK32) /dll
LINK32EXE=$(LINK32)
# It seems that -lib must be the first parameter
LINK32LIB=link.exe /lib /nologo
SYS_LIBS=ws2_32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib
!IF "$(BITS)" == "64"
SYS_LIBS=$(SYS_LIBS) bufferoverflowU.lib
!ENDIF
# Define the minimal Windows OS you want to run on:40 (NT), 50 (W2K), 51 (XP)
# Default is no restrictions. Currently we only check for 51 or later.
#TARGET_WIN_SYSTEM=51
!IF "$(TARGET_WIN_SYSTEM)" == ""
!IF "$(VERBOSE)" != "0"
!MESSAGE Applications and libraries should run on any Win32 system.
!ENDIF
TARGET_WIN_SYSTEM=0
!ENDIF
# prefix variable is currently only being used by install target
!IF "$(prefix)" == ""
prefix=C:\CMU
!IF "$(VERBOSE)" != "0"
!MESSAGE Default installation directory is $(prefix).
!ENDIF
!ENDIF
!IF "$(CFG)" == ""
CFG=Release
!IF "$(VERBOSE)" != "0"
!MESSAGE No configuration specified. Defaulting to $(CFG).
!ENDIF
!ENDIF
!IF "$(DB_LIB)" == ""
DB_LIB=libdb41s.lib
!IF "$(VERBOSE)" != "0"
!MESSAGE Defaulting SleepyCat library name to $(DB_LIB).
!ENDIF
!ENDIF
!IF "$(DB_INCLUDE)" == ""
DB_INCLUDE=c:\work\isode\db\build_win32
!IF "$(VERBOSE)" != "0"
!MESSAGE Defaulting SleepyCat include path to $(DB_INCLUDE).
!ENDIF
!ENDIF
!IF "$(DB_LIBPATH)" == ""
DB_LIBPATH=c:\work\isode\db\build_win32\Release_static
!IF "$(VERBOSE)" != "0"
!MESSAGE Defaulting SleepyCat library path to $(DB_LIBPATH).
!ENDIF
!ENDIF
!IF "$(OPENSSL_INCLUDE)" == ""
OPENSSL_INCLUDE="D:\openssl\engine-0.9.6g-md3\include"
!IF "$(VERBOSE)" != "0"
!MESSAGE Defaulting OpenSSL Include path to $(OPENSSL_INCLUDE).
!ENDIF
!ENDIF
!IF "$(OPENSSL_LIBPATH)" == ""
OPENSSL_LIBPATH="D:\openssl\engine-0.9.6g-md3\lib"
!IF "$(VERBOSE)" != "0"
!MESSAGE Defaulting OpenSSL library path to $(OPENSSL_LIBPATH).
!ENDIF
!ENDIF
!IF "$(GSSAPI_INCLUDE)" == ""
GSSAPI_INCLUDE="C:\Program Files\CyberSafe\Developer Pack\ApplicationSecuritySDK\include"
!IF "$(VERBOSE)" != "0"
!MESSAGE Defaulting GSSAPI Include path to $(GSSAPI_INCLUDE).
!ENDIF
!ENDIF
!IF "$(GSSAPI_LIBPATH)" == ""
GSSAPI_LIBPATH="C:\Program Files\CyberSafe\Developer Pack\ApplicationSecuritySDK\lib"
!IF "$(VERBOSE)" != "0"
!MESSAGE Defaulting GSSAPI library path to $(GSSAPI_LIBPATH).
!ENDIF
!ENDIF
!IF "$(SQLITE_INCLUDE)" == ""
SQLITE_INCLUDES=/I"C:\work\open_source\sqllite\sqlite\src" /I"C:\work\open_source\sqllite\sqlite\win32"
!IF "$(VERBOSE)" != "0"
!MESSAGE Defaulting SQLITE_INCLUDES includes to $(SQLITE_INCLUDES).
!ENDIF
!ENDIF
!IF "$(SQLITE_LIBPATH)" == ""
SQLITE_LIBPATH="C:\work\open_source\sqllite\sqlite\objs"
!IF "$(VERBOSE)" != "0"
!MESSAGE Defaulting SQLITE library path to $(SQLITE_LIBPATH).
!ENDIF
!ENDIF
!IF "$(SQLITE_INCLUDE3)" == ""
SQLITE_INCLUDES3=/I"c:\work\sqlite\generated"
!IF "$(VERBOSE)" != "0"
!MESSAGE Defaulting SQLITE_INCLUDES3 includes to $(SQLITE_INCLUDES3).
!ENDIF
!ENDIF
!IF "$(SQLITE_LIBPATH3)" == ""
SQLITE_LIBPATH3="c:\work\sqlite\objs.NT"
!IF "$(VERBOSE)" != "0"
!MESSAGE Defaulting SQLITE library path to $(SQLITE_LIBPATH3).
!ENDIF
!ENDIF
!IF "$(LDAP_LIB_BASE)" == ""
LDAP_LIB_BASE = c:\work\open_source\openldap\openldap-head\ldap\Debug
!IF "$(VERBOSE)" != "0"
!MESSAGE Defaulting LDAP library path to $(LDAP_LIB_BASE).
!ENDIF
!ENDIF
!IF "$(LDAP_INCLUDE)" == ""
LDAP_INCLUDE = c:\work\open_source\openldap\openldap-head\ldap\include
!IF "$(VERBOSE)" != "0"
!MESSAGE Defaulting LDAP include path to $(LDAP_INCLUDE).
!ENDIF
!ENDIF
!IF "$(OS)" == "Windows_NT"
NULL=
!ELSE
NULL=nul
!ENDIF
!IF "$(CFG)" == "Release"
!IF "$(CODEGEN)" == ""
!IF "$(STATIC)" == "yes"
CODEGEN=/MT
!ELSE
CODEGEN=/MD
!ENDIF
!IF "$(VERBOSE)" != "0"
!MESSAGE Codegeneration defaulting to $(CODEGEN).
!ENDIF
!ENDIF
!IF "$(VCVER)" != "6"
ENABLE_WIN64_WARNINGS=/Wp64
!ENDIF
CPP_PROJ= $(CODEGEN) /W3 $(EXCEPTHANDLING) /O2 $(ENABLE_WIN64_WARNINGS) /Zi /D "NDEBUG" $(CPPFLAGS) /FD /c
incremental=no
# This use to contain /machine:I386. This breaks cross compiling to Windows 64.
# It doesn't seem that the /machine option is needed anyway.
LINK32_FLAGS=/debug
!ELSEIF "$(CFG)" == "Debug"
!IF "$(CODEGEN)" == ""
!IF "$(STATIC)" == "yes"
CODEGEN=/MTd
!ELSE
CODEGEN=/MDd
!ENDIF
!IF "$(VERBOSE)" != "0"
!MESSAGE Codegeneration defaulting to $(CODEGEN).
!ENDIF
!ENDIF
CPP_PROJ=$(CODEGEN) /W3 /Gm $(EXCEPTHANDLING) /ZI /Od /D "_DEBUG" $(CPPFLAGS) /FD /GZ /c
incremental=yes
# This use to contain /machine:I386. This breaks cross compiling to Windows 64.
# It doesn't seem that the /machine option is needed anyway.
LINK32_FLAGS=/debug /pdbtype:sept
!ENDIF
LINK32DLL_FLAGS=/incremental:$(incremental) $(LINK32_FLAGS) $(SYS_LIBS) $(EXTRA_LIBS)
# Assume we are only building console applications
LINK32EXE_FLAGS=/subsystem:console /incremental:$(incremental) $(LINK32_FLAGS) $(SYS_LIBS) $(EXTRA_LIBS)
# Assume we are only building console applications
LINK32EXE_FLAGS=/subsystem:console /incremental:$(incremental) $(LINK32_FLAGS) $(SYS_LIBS) $(EXTRA_LIBS)
LINK32LIB_FLAGS=$(LINK32_FLAGS)
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.