testplugin.mak 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463
  1. #
  2. # BEGIN COPYRIGHT BLOCK
  3. # This Program is free software; you can redistribute it and/or modify it under
  4. # the terms of the GNU General Public License as published by the Free Software
  5. # Foundation; version 2 of the License.
  6. #
  7. # This Program is distributed in the hope that it will be useful, but WITHOUT
  8. # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
  9. # FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
  10. #
  11. # You should have received a copy of the GNU General Public License along with
  12. # this Program; if not, write to the Free Software Foundation, Inc., 59 Temple
  13. # Place, Suite 330, Boston, MA 02111-1307 USA.
  14. #
  15. # In addition, as a special exception, Red Hat, Inc. gives You the additional
  16. # right to link the code of this Program with code not covered under the GNU
  17. # General Public License ("Non-GPL Code") and to distribute linked combinations
  18. # including the two, subject to the limitations in this paragraph. Non-GPL Code
  19. # permitted under this exception must only link to the code of this Program
  20. # through those well defined interfaces identified in the file named EXCEPTION
  21. # found in the source code files (the "Approved Interfaces"). The files of
  22. # Non-GPL Code may instantiate templates or use macros or inline functions from
  23. # the Approved Interfaces without causing the resulting work to be covered by
  24. # the GNU General Public License. Only Red Hat, Inc. may make changes or
  25. # additions to the list of Approved Interfaces. You must obey the GNU General
  26. # Public License in all respects for all of the Program code and other code used
  27. # in conjunction with the Program except the Non-GPL Code covered by this
  28. # exception. If you modify this file, you may extend this exception to your
  29. # version of the file, but you are not obligated to do so. If you do not wish to
  30. # provide this exception without modification, you must delete this exception
  31. # statement from your version and license this file solely under the GPL without
  32. # exception.
  33. #
  34. #
  35. # Copyright (C) 2001 Sun Microsystems, Inc. Used by permission.
  36. # Copyright (C) 2005 Red Hat, Inc.
  37. # All rights reserved.
  38. # END COPYRIGHT BLOCK
  39. #
  40. # Microsoft Developer Studio Generated NMAKE File, Based on testplugin.dsp
  41. !IF "$(CFG)" == ""
  42. CFG=testplugin - Win32 Release
  43. !MESSAGE No configuration specified. Defaulting to testplugin - Win32 Release.
  44. !ENDIF
  45. !IF "$(CFG)" != "testplugin - Win32 Release" && "$(CFG)" !=\
  46. "testplugin - Win32 Debug"
  47. !MESSAGE Invalid configuration "$(CFG)" specified.
  48. !MESSAGE You can specify a configuration when running NMAKE
  49. !MESSAGE by defining the macro CFG on the command line. For example:
  50. !MESSAGE
  51. !MESSAGE NMAKE /f "testplugin.mak" CFG="testplugin - Win32 Release"
  52. !MESSAGE
  53. !MESSAGE Possible choices for configuration are:
  54. !MESSAGE
  55. !MESSAGE "testplugin - Win32 Release" (based on\
  56. "Win32 (x86) Dynamic-Link Library")
  57. !MESSAGE "testplugin - Win32 Debug" (based on\
  58. "Win32 (x86) Dynamic-Link Library")
  59. !MESSAGE
  60. !ERROR An invalid configuration is specified.
  61. !ENDIF
  62. !IF "$(OS)" == "Windows_NT"
  63. NULL=
  64. !ELSE
  65. NULL=nul
  66. !ENDIF
  67. CPP=cl.exe
  68. MTL=midl.exe
  69. RSC=rc.exe
  70. !IF "$(CFG)" == "testplugin - Win32 Release"
  71. OUTDIR=.\Release
  72. INTDIR=.\Release
  73. # Begin Custom Macros
  74. OutDir=.\.\Release
  75. # End Custom Macros
  76. !IF "$(RECURSE)" == "0"
  77. ALL : "$(OUTDIR)\testplugin.dll"
  78. !ELSE
  79. ALL : "$(OUTDIR)\testplugin.dll"
  80. !ENDIF
  81. CLEAN :
  82. -@erase "$(INTDIR)\dllmain.obj"
  83. -@erase "$(INTDIR)\testbind.obj"
  84. -@erase "$(INTDIR)\testentry.obj"
  85. -@erase "$(INTDIR)\testextendedop.obj"
  86. -@erase "$(INTDIR)\testpostop.obj"
  87. -@erase "$(INTDIR)\testpreop.obj"
  88. -@erase "$(INTDIR)\testsaslbind.obj"
  89. -@erase "$(INTDIR)\vc50.idb"
  90. -@erase "$(OUTDIR)\testplugin.dll"
  91. -@erase "$(OUTDIR)\testplugin.exp"
  92. -@erase "$(OUTDIR)\testplugin.lib"
  93. "$(OUTDIR)" :
  94. if not exist "$(OUTDIR)/$(NULL)" mkdir "$(OUTDIR)"
  95. CPP_PROJ=/nologo /MD /W3 /GX /O2 /I "..\include" /D "WIN32" /D "NDEBUG" /D\
  96. "_WINDOWS" /D "_WIN32" /Fp"$(INTDIR)\testplugin.pch" /YX /Fo"$(INTDIR)\\"\
  97. /Fd"$(INTDIR)\\" /FD /c
  98. CPP_OBJS=.\Release/
  99. CPP_SBRS=.
  100. MTL_PROJ=/nologo /D "NDEBUG" /mktyplib203 /win32
  101. BSC32=bscmake.exe
  102. BSC32_FLAGS=/nologo /o"$(OUTDIR)\testplugin.bsc"
  103. BSC32_SBRS= \
  104. LINK32=link.exe
  105. LINK32_FLAGS=kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib\
  106. advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib\
  107. odbccp32.lib wsock32.lib ..\lib\libslapd.lib /nologo /subsystem:windows /dll\
  108. /incremental:no /pdb:"$(OUTDIR)\testplugin.pdb" /machine:I386\
  109. /def:".\testplugin.def" /out:"$(OUTDIR)\testplugin.dll"\
  110. /implib:"$(OUTDIR)\testplugin.lib"
  111. DEF_FILE= \
  112. ".\testplugin.def"
  113. LINK32_OBJS= \
  114. "$(INTDIR)\dllmain.obj" \
  115. "$(INTDIR)\testbind.obj" \
  116. "$(INTDIR)\testentry.obj" \
  117. "$(INTDIR)\testextendedop.obj" \
  118. "$(INTDIR)\testpostop.obj" \
  119. "$(INTDIR)\testpreop.obj" \
  120. "$(INTDIR)\testsaslbind.obj"
  121. "$(OUTDIR)\testplugin.dll" : "$(OUTDIR)" $(DEF_FILE) $(LINK32_OBJS)
  122. $(LINK32) @<<
  123. $(LINK32_FLAGS) $(LINK32_OBJS)
  124. <<
  125. !ELSEIF "$(CFG)" == "testplugin - Win32 Debug"
  126. OUTDIR=.\Debug
  127. INTDIR=.\Debug
  128. # Begin Custom Macros
  129. OutDir=.\.\Debug
  130. # End Custom Macros
  131. !IF "$(RECURSE)" == "0"
  132. ALL : "$(OUTDIR)\testplugin.dll"
  133. !ELSE
  134. ALL : "$(OUTDIR)\testplugin.dll"
  135. !ENDIF
  136. CLEAN :
  137. -@erase "$(INTDIR)\dllmain.obj"
  138. -@erase "$(INTDIR)\testbind.obj"
  139. -@erase "$(INTDIR)\testentry.obj"
  140. -@erase "$(INTDIR)\testextendedop.obj"
  141. -@erase "$(INTDIR)\testpostop.obj"
  142. -@erase "$(INTDIR)\testpreop.obj"
  143. -@erase "$(INTDIR)\testsaslbind.obj"
  144. -@erase "$(INTDIR)\vc50.idb"
  145. -@erase "$(INTDIR)\vc50.pdb"
  146. -@erase "$(OUTDIR)\testplugin.dll"
  147. -@erase "$(OUTDIR)\testplugin.exp"
  148. -@erase "$(OUTDIR)\testplugin.ilk"
  149. -@erase "$(OUTDIR)\testplugin.lib"
  150. -@erase "$(OUTDIR)\testplugin.pdb"
  151. "$(OUTDIR)" :
  152. if not exist "$(OUTDIR)/$(NULL)" mkdir "$(OUTDIR)"
  153. CPP_PROJ=/nologo /MD /W3 /Gm /GX /Zi /Od /I "..\include" /D "WIN32" /D "_DEBUG"\
  154. /D "_WINDOWS" /D "_WIN32" /Fp"$(INTDIR)\testplugin.pch" /YX /Fo"$(INTDIR)\\"\
  155. /Fd"$(INTDIR)\\" /FD /c
  156. CPP_OBJS=.\Debug/
  157. CPP_SBRS=.
  158. MTL_PROJ=/nologo /D "_DEBUG" /mktyplib203 /win32
  159. BSC32=bscmake.exe
  160. BSC32_FLAGS=/nologo /o"$(OUTDIR)\testplugin.bsc"
  161. BSC32_SBRS= \
  162. LINK32=link.exe
  163. LINK32_FLAGS=kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib\
  164. advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib\
  165. odbccp32.lib wsock32.lib ..\lib\libslapd.lib /nologo /subsystem:windows /dll\
  166. /incremental:yes /pdb:"$(OUTDIR)\testplugin.pdb" /debug /machine:I386\
  167. /def:".\testplugin.def" /out:"$(OUTDIR)\testplugin.dll"\
  168. /implib:"$(OUTDIR)\testplugin.lib"
  169. DEF_FILE= \
  170. ".\testplugin.def"
  171. LINK32_OBJS= \
  172. "$(INTDIR)\dllmain.obj" \
  173. "$(INTDIR)\testbind.obj" \
  174. "$(INTDIR)\testentry.obj" \
  175. "$(INTDIR)\testextendedop.obj" \
  176. "$(INTDIR)\testpostop.obj" \
  177. "$(INTDIR)\testpreop.obj" \
  178. "$(INTDIR)\testsaslbind.obj"
  179. "$(OUTDIR)\testplugin.dll" : "$(OUTDIR)" $(DEF_FILE) $(LINK32_OBJS)
  180. $(LINK32) @<<
  181. $(LINK32_FLAGS) $(LINK32_OBJS)
  182. <<
  183. !ENDIF
  184. .c{$(CPP_OBJS)}.obj::
  185. $(CPP) @<<
  186. $(CPP_PROJ) $<
  187. <<
  188. .cpp{$(CPP_OBJS)}.obj::
  189. $(CPP) @<<
  190. $(CPP_PROJ) $<
  191. <<
  192. .cxx{$(CPP_OBJS)}.obj::
  193. $(CPP) @<<
  194. $(CPP_PROJ) $<
  195. <<
  196. .c{$(CPP_SBRS)}.sbr::
  197. $(CPP) @<<
  198. $(CPP_PROJ) $<
  199. <<
  200. .cpp{$(CPP_SBRS)}.sbr::
  201. $(CPP) @<<
  202. $(CPP_PROJ) $<
  203. <<
  204. .cxx{$(CPP_SBRS)}.sbr::
  205. $(CPP) @<<
  206. $(CPP_PROJ) $<
  207. <<
  208. !IF "$(CFG)" == "testplugin - Win32 Release" || "$(CFG)" ==\
  209. "testplugin - Win32 Debug"
  210. SOURCE=.\dllmain.c
  211. !IF "$(CFG)" == "testplugin - Win32 Release"
  212. DEP_CPP_DLLMA=\
  213. {$(INCLUDE)}"lber.h"\
  214. {$(INCLUDE)}"ldap.h"\
  215. "$(INTDIR)\dllmain.obj" : $(SOURCE) $(DEP_CPP_DLLMA) "$(INTDIR)"
  216. !ELSEIF "$(CFG)" == "testplugin - Win32 Debug"
  217. DEP_CPP_DLLMA=\
  218. {$(INCLUDE)}"lber.h"\
  219. {$(INCLUDE)}"ldap.h"\
  220. {$(INCLUDE)}"sys\types.h"\
  221. NODEP_CPP_DLLMA=\
  222. "..\include\macsock.h"\
  223. "..\include\os2sock.h"\
  224. "$(INTDIR)\dllmain.obj" : $(SOURCE) $(DEP_CPP_DLLMA) "$(INTDIR)"
  225. !ENDIF
  226. SOURCE=.\testbind.c
  227. !IF "$(CFG)" == "testplugin - Win32 Release"
  228. DEP_CPP_TESTB=\
  229. "..\include\slapi-plugin.h"\
  230. {$(INCLUDE)}"lber.h"\
  231. {$(INCLUDE)}"ldap.h"\
  232. "$(INTDIR)\testbind.obj" : $(SOURCE) $(DEP_CPP_TESTB) "$(INTDIR)"
  233. !ELSEIF "$(CFG)" == "testplugin - Win32 Debug"
  234. DEP_CPP_TESTB=\
  235. "..\include\slapi-plugin.h"\
  236. {$(INCLUDE)}"lber.h"\
  237. {$(INCLUDE)}"ldap.h"\
  238. {$(INCLUDE)}"sys\types.h"\
  239. NODEP_CPP_TESTB=\
  240. "..\include\macsock.h"\
  241. "..\include\os2sock.h"\
  242. "$(INTDIR)\testbind.obj" : $(SOURCE) $(DEP_CPP_TESTB) "$(INTDIR)"
  243. !ENDIF
  244. SOURCE=.\testentry.c
  245. !IF "$(CFG)" == "testplugin - Win32 Release"
  246. DEP_CPP_TESTE=\
  247. "..\include\slapi-plugin.h"\
  248. {$(INCLUDE)}"lber.h"\
  249. {$(INCLUDE)}"ldap.h"\
  250. "$(INTDIR)\testentry.obj" : $(SOURCE) $(DEP_CPP_TESTE) "$(INTDIR)"
  251. !ELSEIF "$(CFG)" == "testplugin - Win32 Debug"
  252. DEP_CPP_TESTE=\
  253. "..\include\slapi-plugin.h"\
  254. {$(INCLUDE)}"lber.h"\
  255. {$(INCLUDE)}"ldap.h"\
  256. {$(INCLUDE)}"sys\types.h"\
  257. NODEP_CPP_TESTE=\
  258. "..\include\macsock.h"\
  259. "..\include\os2sock.h"\
  260. "$(INTDIR)\testentry.obj" : $(SOURCE) $(DEP_CPP_TESTE) "$(INTDIR)"
  261. !ENDIF
  262. SOURCE=.\testextendedop.c
  263. !IF "$(CFG)" == "testplugin - Win32 Release"
  264. DEP_CPP_TESTEX=\
  265. "..\include\slapi-plugin.h"\
  266. {$(INCLUDE)}"lber.h"\
  267. {$(INCLUDE)}"ldap.h"\
  268. "$(INTDIR)\testextendedop.obj" : $(SOURCE) $(DEP_CPP_TESTEX) "$(INTDIR)"
  269. !ELSEIF "$(CFG)" == "testplugin - Win32 Debug"
  270. DEP_CPP_TESTEX=\
  271. "..\include\slapi-plugin.h"\
  272. {$(INCLUDE)}"lber.h"\
  273. {$(INCLUDE)}"ldap.h"\
  274. {$(INCLUDE)}"sys\types.h"\
  275. NODEP_CPP_TESTEX=\
  276. "..\include\macsock.h"\
  277. "..\include\os2sock.h"\
  278. "$(INTDIR)\testextendedop.obj" : $(SOURCE) $(DEP_CPP_TESTEX) "$(INTDIR)"
  279. !ENDIF
  280. SOURCE=.\testpostop.c
  281. !IF "$(CFG)" == "testplugin - Win32 Release"
  282. DEP_CPP_TESTP=\
  283. "..\include\slapi-plugin.h"\
  284. {$(INCLUDE)}"lber.h"\
  285. {$(INCLUDE)}"ldap.h"\
  286. "$(INTDIR)\testpostop.obj" : $(SOURCE) $(DEP_CPP_TESTP) "$(INTDIR)"
  287. !ELSEIF "$(CFG)" == "testplugin - Win32 Debug"
  288. DEP_CPP_TESTP=\
  289. "..\include\slapi-plugin.h"\
  290. {$(INCLUDE)}"lber.h"\
  291. {$(INCLUDE)}"ldap.h"\
  292. {$(INCLUDE)}"sys\types.h"\
  293. NODEP_CPP_TESTP=\
  294. "..\include\macsock.h"\
  295. "..\include\os2sock.h"\
  296. "$(INTDIR)\testpostop.obj" : $(SOURCE) $(DEP_CPP_TESTP) "$(INTDIR)"
  297. !ENDIF
  298. SOURCE=.\testpreop.c
  299. !IF "$(CFG)" == "testplugin - Win32 Release"
  300. DEP_CPP_TESTPR=\
  301. "..\include\slapi-plugin.h"\
  302. {$(INCLUDE)}"lber.h"\
  303. {$(INCLUDE)}"ldap.h"\
  304. "$(INTDIR)\testpreop.obj" : $(SOURCE) $(DEP_CPP_TESTPR) "$(INTDIR)"
  305. !ELSEIF "$(CFG)" == "testplugin - Win32 Debug"
  306. DEP_CPP_TESTPR=\
  307. "..\include\slapi-plugin.h"\
  308. {$(INCLUDE)}"lber.h"\
  309. {$(INCLUDE)}"ldap.h"\
  310. {$(INCLUDE)}"sys\types.h"\
  311. NODEP_CPP_TESTPR=\
  312. "..\include\macsock.h"\
  313. "..\include\os2sock.h"\
  314. "$(INTDIR)\testpreop.obj" : $(SOURCE) $(DEP_CPP_TESTPR) "$(INTDIR)"
  315. !ENDIF
  316. SOURCE=.\testsaslbind.c
  317. !IF "$(CFG)" == "testplugin - Win32 Release"
  318. DEP_CPP_TESTS=\
  319. "..\include\slapi-plugin.h"\
  320. {$(INCLUDE)}"lber.h"\
  321. {$(INCLUDE)}"ldap.h"\
  322. "$(INTDIR)\testsaslbind.obj" : $(SOURCE) $(DEP_CPP_TESTS) "$(INTDIR)"
  323. !ELSEIF "$(CFG)" == "testplugin - Win32 Debug"
  324. DEP_CPP_TESTS=\
  325. "..\include\slapi-plugin.h"\
  326. {$(INCLUDE)}"lber.h"\
  327. {$(INCLUDE)}"ldap.h"\
  328. {$(INCLUDE)}"sys\types.h"\
  329. NODEP_CPP_TESTS=\
  330. "..\include\macsock.h"\
  331. "..\include\os2sock.h"\
  332. "$(INTDIR)\testsaslbind.obj" : $(SOURCE) $(DEP_CPP_TESTS) "$(INTDIR)"
  333. !ENDIF
  334. !ENDIF