1#Can this be autogenerated?
2SASL_VERSION_MAJOR=2
3SASL_VERSION_MINOR=1
4SASL_VERSION_STEP=22
5
6# Uncomment the following line, if you want to use Visual Studio 6
7#VCVER=6
8
9# Define compiler/linker/etc.
10
11CPP=cl.exe /nologo
12LINK32=link.exe /nologo
13LINK32DLL=$(LINK32) /dll
14LINK32EXE=$(LINK32)
15
16SYS_LIBS=ws2_32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib
17
18# Define the minimal Windows OS you want to run on:40 (NT), 50 (W2K), 51 (XP)
19# Default is no restrictions. Currently we only check for 51 or later.
20#TARGET_WIN_SYSTEM=51
21
22!IF "$(TARGET_WIN_SYSTEM)" == ""
23!IF "$(VERBOSE)" != "0"
24!MESSAGE Applications and libraries should run on any Win32 system.
25!ENDIF
26TARGET_WIN_SYSTEM=0
27!ENDIF
28
29# prefix variable is currently only being used by install target
30!IF "$(prefix)" == ""
31prefix=C:\CMU
32!IF "$(VERBOSE)" != "0"
33!MESSAGE Default installation directory is $(prefix).
34!ENDIF 
35!ENDIF
36
37!IF "$(CFG)" == ""
38CFG=Release
39!IF "$(VERBOSE)" != "0"
40!MESSAGE No configuration specified. Defaulting to $(CFG).
41!ENDIF
42!ENDIF 
43
44!IF "$(DB_LIB)" == ""
45DB_LIB=libdb41s.lib
46!IF "$(VERBOSE)" != "0"
47!MESSAGE Defaulting SleepyCat library name to $(DB_LIB).
48!ENDIF
49!ENDIF
50
51!IF "$(DB_INCLUDE)" == ""
52DB_INCLUDE=c:\work\isode\db\build_win32
53!IF "$(VERBOSE)" != "0"
54!MESSAGE Defaulting SleepyCat include path to $(DB_INCLUDE).
55!ENDIF
56!ENDIF
57
58!IF "$(DB_LIBPATH)" == ""
59DB_LIBPATH=c:\work\isode\db\build_win32\Release_static
60!IF "$(VERBOSE)" != "0"
61!MESSAGE Defaulting SleepyCat library path to $(DB_LIBPATH).
62!ENDIF
63!ENDIF
64
65!IF "$(OPENSSL_INCLUDE)" == ""
66OPENSSL_INCLUDE="D:\openssl\engine-0.9.6g-md3\include"
67!IF "$(VERBOSE)" != "0"
68!MESSAGE Defaulting OpenSSL Include path to $(OPENSSL_INCLUDE).
69!ENDIF
70!ENDIF
71
72!IF "$(OPENSSL_LIBPATH)" == ""
73OPENSSL_LIBPATH="D:\openssl\engine-0.9.6g-md3\lib"
74!IF "$(VERBOSE)" != "0"
75!MESSAGE Defaulting OpenSSL library path to $(OPENSSL_LIBPATH).
76!ENDIF
77!ENDIF
78
79!IF "$(GSSAPI_INCLUDE)" == ""
80GSSAPI_INCLUDE="C:\Program Files\CyberSafe\Developer Pack\ApplicationSecuritySDK\include"
81!IF "$(VERBOSE)" != "0"
82!MESSAGE Defaulting GSSAPI Include path to $(GSSAPI_INCLUDE).
83!ENDIF
84!ENDIF
85
86!IF "$(GSSAPI_LIBPATH)" == ""
87GSSAPI_LIBPATH="C:\Program Files\CyberSafe\Developer Pack\ApplicationSecuritySDK\lib"
88!IF "$(VERBOSE)" != "0"
89!MESSAGE Defaulting GSSAPI library path to $(GSSAPI_LIBPATH).
90!ENDIF
91!ENDIF
92
93!IF "$(SQLITE_INCLUDE)" == ""
94SQLITE_INCLUDES=/I"C:\work\open_source\sqllite\sqlite\src" /I"C:\work\open_source\sqllite\sqlite\win32"
95!IF "$(VERBOSE)" != "0"
96!MESSAGE Defaulting SQLITE_INCLUDES includes to $(SQLITE_INCLUDES).
97!ENDIF
98!ENDIF
99
100!IF "$(SQLITE_LIBPATH)" == ""
101SQLITE_LIBPATH="C:\work\open_source\sqllite\sqlite\objs"
102!IF "$(VERBOSE)" != "0"
103!MESSAGE Defaulting SQLITE library path to $(SQLITE_LIBPATH).
104!ENDIF
105!ENDIF
106
107!IF "$(LDAP_LIB_BASE)" == ""
108LDAP_LIB_BASE = c:\work\open_source\openldap\openldap-head\ldap\Debug
109!IF "$(VERBOSE)" != "0"
110!MESSAGE Defaulting LDAP library path to $(LDAP_LIB_BASE).
111!ENDIF
112!ENDIF
113
114!IF "$(LDAP_INCLUDE)" == ""
115LDAP_INCLUDE = c:\work\open_source\openldap\openldap-head\ldap\include
116!IF "$(VERBOSE)" != "0"
117!MESSAGE Defaulting LDAP include path to $(LDAP_INCLUDE).
118!ENDIF
119!ENDIF
120
121!IF "$(OS)" == "Windows_NT"
122NULL=
123!ELSE 
124NULL=nul
125!ENDIF
126
127
128!IF  "$(CFG)" == "Release"
129
130!IF "$(STATIC)" == ""
131!IF "$(STATIC)" == "yes"
132CODEGEN=/MT
133!ELSE
134CODEGEN=/MD
135!ENDIF 
136!IF "$(VERBOSE)" != "0"
137!MESSAGE Codegeneration defaulting to $(CODEGEN).
138!ENDIF 
139!ENDIF 
140
141!IF "$(VCVER)" != "6"
142ENABLE_WIN64_WARNINGS=/Wp64
143!ENDIF
144
145CPP_PROJ= $(CODEGEN) /W3 /GX /O2 $(ENABLE_WIN64_WARNINGS) /Zi /D "NDEBUG" $(CPPFLAGS) /FD /c 
146
147LINK32_FLAGS=/incremental:no /debug /machine:I386
148
149!ELSEIF  "$(CFG)" == "Debug"
150
151!IF "$(STATIC)" == ""
152!IF "$(STATIC)" == "yes"
153CODEGEN=/MTd
154!ELSE
155CODEGEN=/MDd
156!ENDIF 
157!IF "$(VERBOSE)" != "0"
158!MESSAGE Codegeneration defaulting to $(CODEGEN).
159!ENDIF 
160!ENDIF 
161
162CPP_PROJ=$(CODEGEN) /W3 /Gm /GX /ZI /Od /D "_DEBUG" $(CPPFLAGS) /FD /GZ /c 
163
164LINK32_FLAGS=/incremental:yes /debug /machine:I386 /pdbtype:sept 
165
166!ENDIF
167
168LINK32DLL_FLAGS=$(LINK32_FLAGS) $(SYS_LIBS) $(EXTRA_LIBS)
169
170# Assume we are only building console applications
171LINK32EXE_FLAGS=/subsystem:console $(LINK32_FLAGS) $(SYS_LIBS) $(EXTRA_LIBS)
172
173