1 #Can this be autogenerated?
2 #Keep in sync with include/sasl.h and win32/include/config.h
7 # Uncomment the following line, if you want to use Visual Studio 6
10 # Define compiler/linker/etc.
13 LINK32=link.exe /nologo
14 LINK32DLL=$(LINK32) /dll
17 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
19 # Define the minimal Windows OS you want to run on:40 (NT), 50 (W2K), 51 (XP)
20 # Default is no restrictions. Currently we only check for 51 or later.
23 !IF "$(TARGET_WIN_SYSTEM)" == ""
24 !IF "$(VERBOSE)" != "0"
25 !MESSAGE Applications and libraries should run on any Win32 system.
30 # prefix variable is currently only being used by install target
33 !IF "$(VERBOSE)" != "0"
34 !MESSAGE Default installation directory is $(prefix).
40 !IF "$(VERBOSE)" != "0"
41 !MESSAGE No configuration specified. Defaulting to $(CFG).
47 !IF "$(VERBOSE)" != "0"
48 !MESSAGE Defaulting SleepyCat library name to $(DB_LIB).
52 !IF "$(DB_INCLUDE)" == ""
53 DB_INCLUDE=c:\work\isode\db\build_win32
54 !IF "$(VERBOSE)" != "0"
55 !MESSAGE Defaulting SleepyCat include path to $(DB_INCLUDE).
59 !IF "$(DB_LIBPATH)" == ""
60 DB_LIBPATH=c:\work\isode\db\build_win32\Release_static
61 !IF "$(VERBOSE)" != "0"
62 !MESSAGE Defaulting SleepyCat library path to $(DB_LIBPATH).
66 !IF "$(OPENSSL_INCLUDE)" == ""
67 OPENSSL_INCLUDE="D:\openssl\engine-0.9.6g-md3\include"
68 !IF "$(VERBOSE)" != "0"
69 !MESSAGE Defaulting OpenSSL Include path to $(OPENSSL_INCLUDE).
73 !IF "$(OPENSSL_LIBPATH)" == ""
74 OPENSSL_LIBPATH="D:\openssl\engine-0.9.6g-md3\lib"
75 !IF "$(VERBOSE)" != "0"
76 !MESSAGE Defaulting OpenSSL library path to $(OPENSSL_LIBPATH).
80 !IF "$(GSSAPI_INCLUDE)" == ""
81 GSSAPI_INCLUDE="C:\Program Files\CyberSafe\Developer Pack\ApplicationSecuritySDK\include"
82 !IF "$(VERBOSE)" != "0"
83 !MESSAGE Defaulting GSSAPI Include path to $(GSSAPI_INCLUDE).
87 !IF "$(GSSAPI_LIBPATH)" == ""
88 GSSAPI_LIBPATH="C:\Program Files\CyberSafe\Developer Pack\ApplicationSecuritySDK\lib"
89 !IF "$(VERBOSE)" != "0"
90 !MESSAGE Defaulting GSSAPI library path to $(GSSAPI_LIBPATH).
94 !IF "$(SQLITE_INCLUDE)" == ""
95 SQLITE_INCLUDES=/I"C:\work\open_source\sqllite\sqlite\src" /I"C:\work\open_source\sqllite\sqlite\win32"
96 !IF "$(VERBOSE)" != "0"
97 !MESSAGE Defaulting SQLITE_INCLUDES includes to $(SQLITE_INCLUDES).
101 !IF "$(SQLITE_LIBPATH)" == ""
102 SQLITE_LIBPATH="C:\work\open_source\sqllite\sqlite\objs"
103 !IF "$(VERBOSE)" != "0"
104 !MESSAGE Defaulting SQLITE library path to $(SQLITE_LIBPATH).
108 !IF "$(LDAP_LIB_BASE)" == ""
109 LDAP_LIB_BASE = c:\work\open_source\openldap\openldap-head\ldap\Debug
110 !IF "$(VERBOSE)" != "0"
111 !MESSAGE Defaulting LDAP library path to $(LDAP_LIB_BASE).
115 !IF "$(LDAP_INCLUDE)" == ""
116 LDAP_INCLUDE = c:\work\open_source\openldap\openldap-head\ldap\include
117 !IF "$(VERBOSE)" != "0"
118 !MESSAGE Defaulting LDAP include path to $(LDAP_INCLUDE).
122 !IF "$(OS)" == "Windows_NT"
129 !IF "$(CFG)" == "Release"
131 !IF "$(CODEGEN)" == ""
132 !IF "$(STATIC)" == "yes"
137 !IF "$(VERBOSE)" != "0"
138 !MESSAGE Codegeneration defaulting to $(CODEGEN).
142 !IF "$(VCVER)" != "6"
143 ENABLE_WIN64_WARNINGS=/Wp64
146 CPP_PROJ= $(CODEGEN) /W3 /GX /O2 $(ENABLE_WIN64_WARNINGS) /Zi /D "NDEBUG" $(CPPFLAGS) /FD /c
148 LINK32_FLAGS=/incremental:no /debug /machine:I386
150 !ELSEIF "$(CFG)" == "Debug"
152 !IF "$(CODEGEN)" == ""
153 !IF "$(STATIC)" == "yes"
158 !IF "$(VERBOSE)" != "0"
159 !MESSAGE Codegeneration defaulting to $(CODEGEN).
163 CPP_PROJ=$(CODEGEN) /W3 /Gm /GX /ZI /Od /D "_DEBUG" $(CPPFLAGS) /FD /GZ /c
165 LINK32_FLAGS=/incremental:yes /debug /machine:I386 /pdbtype:sept
169 LINK32DLL_FLAGS=$(LINK32_FLAGS) $(SYS_LIBS) $(EXTRA_LIBS)
171 # Assume we are only building console applications
172 LINK32EXE_FLAGS=/subsystem:console $(LINK32_FLAGS) $(SYS_LIBS) $(EXTRA_LIBS)