home *** CD-ROM | disk | FTP | other *** search
/ Chip 2001 December / Chip_2001-12_cd1.bin / sharewar / mysql / data1.cab / Development / examples / libmysqltest / myTest.mak < prev    next >
Encoding:
NMAKE  |  2001-11-02  |  5.0 KB  |  203 lines

  1. # Microsoft Developer Studio Generated NMAKE File, Based on myTest.dsp
  2. !IF "$(CFG)" == ""
  3. CFG=myTest - Win32 Debug
  4. !MESSAGE No configuration specified. Defaulting to myTest - Win32 Debug.
  5. !ENDIF 
  6.  
  7. !IF "$(CFG)" != "myTest - Win32 Release" && "$(CFG)" != "myTest - Win32 Debug"
  8. !MESSAGE Invalid configuration "$(CFG)" specified.
  9. !MESSAGE You can specify a configuration when running NMAKE
  10. !MESSAGE by defining the macro CFG on the command line. For example:
  11. !MESSAGE 
  12. !MESSAGE NMAKE /f "myTest.mak" CFG="myTest - Win32 Debug"
  13. !MESSAGE 
  14. !MESSAGE Possible choices for configuration are:
  15. !MESSAGE 
  16. !MESSAGE "myTest - Win32 Release" (based on "Win32 (x86) Console Application")
  17. !MESSAGE "myTest - Win32 Debug" (based on "Win32 (x86) Console Application")
  18. !MESSAGE 
  19. !ERROR An invalid configuration is specified.
  20. !ENDIF 
  21.  
  22. !IF "$(OS)" == "Windows_NT"
  23. NULL=
  24. !ELSE 
  25. NULL=nul
  26. !ENDIF 
  27.  
  28. CPP=cl.exe
  29. RSC=rc.exe
  30.  
  31. !IF  "$(CFG)" == "myTest - Win32 Release"
  32.  
  33. OUTDIR=.\release
  34. INTDIR=.\release
  35. # Begin Custom Macros
  36. OutDir=.\release
  37. # End Custom Macros
  38.  
  39. !IF "$(RECURSE)" == "0" 
  40.  
  41. ALL : "$(OUTDIR)\myTest.exe"
  42.  
  43. !ELSE 
  44.  
  45. ALL : "libmySQL - Win32 Release" "$(OUTDIR)\myTest.exe"
  46.  
  47. !ENDIF 
  48.  
  49. !IF "$(RECURSE)" == "1" 
  50. CLEAN :"libmySQL - Win32 ReleaseCLEAN" 
  51. !ELSE 
  52. CLEAN :
  53. !ENDIF 
  54.     -@erase "$(INTDIR)\Mytest.obj"
  55.     -@erase "$(INTDIR)\vc60.idb"
  56.     -@erase "$(OUTDIR)\myTest.exe"
  57.  
  58. "$(OUTDIR)" :
  59.     if not exist "$(OUTDIR)/$(NULL)" mkdir "$(OUTDIR)"
  60.  
  61. CPP_PROJ=/nologo /G6 /ML /W3 /O2 /I "..\include" /D "NDEBUG" /D "DBUG_UFF" /D "_CONSOLE" /D "_MBCS" /Fo"$(INTDIR)\\" /Fd"$(INTDIR)\\" /FD /c 
  62. BSC32=bscmake.exe
  63. BSC32_FLAGS=/nologo /o"$(OUTDIR)\myTest.bsc" 
  64. BSC32_SBRS= \
  65.     
  66. LINK32=link.exe
  67. LINK32_FLAGS=libmysql.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /incremental:no /pdb:"$(OUTDIR)\myTest.pdb" /machine:I386 /out:"$(OUTDIR)\myTest.exe" /libpath:"..\lib_release" 
  68. LINK32_OBJS= \
  69.     "$(INTDIR)\Mytest.obj" \
  70.     "..\libmysql\release\libmySQL.lib"
  71.  
  72. "$(OUTDIR)\myTest.exe" : "$(OUTDIR)" $(DEF_FILE) $(LINK32_OBJS)
  73.     $(LINK32) @<<
  74.   $(LINK32_FLAGS) $(LINK32_OBJS)
  75. <<
  76.  
  77. !ELSEIF  "$(CFG)" == "myTest - Win32 Debug"
  78.  
  79. OUTDIR=.\debug
  80. INTDIR=.\debug
  81. # Begin Custom Macros
  82. OutDir=.\debug
  83. # End Custom Macros
  84.  
  85. !IF "$(RECURSE)" == "0" 
  86.  
  87. ALL : "$(OUTDIR)\myTest.exe"
  88.  
  89. !ELSE 
  90.  
  91. ALL : "libmySQL - Win32 Debug" "$(OUTDIR)\myTest.exe"
  92.  
  93. !ENDIF 
  94.  
  95. !IF "$(RECURSE)" == "1" 
  96. CLEAN :"libmySQL - Win32 DebugCLEAN" 
  97. !ELSE 
  98. CLEAN :
  99. !ENDIF 
  100.     -@erase "$(INTDIR)\Mytest.obj"
  101.     -@erase "$(INTDIR)\vc60.idb"
  102.     -@erase "$(INTDIR)\vc60.pdb"
  103.     -@erase "$(OUTDIR)\myTest.exe"
  104.     -@erase "$(OUTDIR)\myTest.pdb"
  105.  
  106. "$(OUTDIR)" :
  107.     if not exist "$(OUTDIR)/$(NULL)" mkdir "$(OUTDIR)"
  108.  
  109. CPP_PROJ=/nologo /G6 /MTd /W3 /Gm /ZI /Od /I "..\include" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /Fo"$(INTDIR)\\" /Fd"$(INTDIR)\\" /FD /c 
  110. BSC32=bscmake.exe
  111. BSC32_FLAGS=/nologo /o"$(OUTDIR)\myTest.bsc" 
  112. BSC32_SBRS= \
  113.     
  114. LINK32=link.exe
  115. LINK32_FLAGS=libmysql.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /incremental:no /pdb:"$(OUTDIR)\myTest.pdb" /debug /machine:I386 /out:"$(OUTDIR)\myTest.exe" /pdbtype:sept /libpath:"..\lib_debug" 
  116. LINK32_OBJS= \
  117.     "$(INTDIR)\Mytest.obj" \
  118.     "..\libmysql\debug\libmySQL.lib"
  119.  
  120. "$(OUTDIR)\myTest.exe" : "$(OUTDIR)" $(DEF_FILE) $(LINK32_OBJS)
  121.     $(LINK32) @<<
  122.   $(LINK32_FLAGS) $(LINK32_OBJS)
  123. <<
  124.  
  125. !ENDIF 
  126.  
  127. .c{$(INTDIR)}.obj::
  128.    $(CPP) @<<
  129.    $(CPP_PROJ) $< 
  130. <<
  131.  
  132. .cpp{$(INTDIR)}.obj::
  133.    $(CPP) @<<
  134.    $(CPP_PROJ) $< 
  135. <<
  136.  
  137. .cxx{$(INTDIR)}.obj::
  138.    $(CPP) @<<
  139.    $(CPP_PROJ) $< 
  140. <<
  141.  
  142. .c{$(INTDIR)}.sbr::
  143.    $(CPP) @<<
  144.    $(CPP_PROJ) $< 
  145. <<
  146.  
  147. .cpp{$(INTDIR)}.sbr::
  148.    $(CPP) @<<
  149.    $(CPP_PROJ) $< 
  150. <<
  151.  
  152. .cxx{$(INTDIR)}.sbr::
  153.    $(CPP) @<<
  154.    $(CPP_PROJ) $< 
  155. <<
  156.  
  157.  
  158. !IF "$(NO_EXTERNAL_DEPS)" != "1"
  159. !IF EXISTS("myTest.dep")
  160. !INCLUDE "myTest.dep"
  161. !ELSE 
  162. !MESSAGE Warning: cannot find "myTest.dep"
  163. !ENDIF 
  164. !ENDIF 
  165.  
  166.  
  167. !IF "$(CFG)" == "myTest - Win32 Release" || "$(CFG)" == "myTest - Win32 Debug"
  168.  
  169. !IF  "$(CFG)" == "myTest - Win32 Release"
  170.  
  171. "libmySQL - Win32 Release" : 
  172.    cd "\MYSQL-3.23\libmysql"
  173.    $(MAKE) /$(MAKEFLAGS) /F ".\libmySQL.mak" CFG="libmySQL - Win32 Release" 
  174.    cd "..\libmysqltest"
  175.  
  176. "libmySQL - Win32 ReleaseCLEAN" : 
  177.    cd "\MYSQL-3.23\libmysql"
  178.    $(MAKE) /$(MAKEFLAGS) /F ".\libmySQL.mak" CFG="libmySQL - Win32 Release" RECURSE=1 CLEAN 
  179.    cd "..\libmysqltest"
  180.  
  181. !ELSEIF  "$(CFG)" == "myTest - Win32 Debug"
  182.  
  183. "libmySQL - Win32 Debug" : 
  184.    cd "\MYSQL-3.23\libmysql"
  185.    $(MAKE) /$(MAKEFLAGS) /F ".\libmySQL.mak" CFG="libmySQL - Win32 Debug" 
  186.    cd "..\libmysqltest"
  187.  
  188. "libmySQL - Win32 DebugCLEAN" : 
  189.    cd "\MYSQL-3.23\libmysql"
  190.    $(MAKE) /$(MAKEFLAGS) /F ".\libmySQL.mak" CFG="libmySQL - Win32 Debug" RECURSE=1 CLEAN 
  191.    cd "..\libmysqltest"
  192.  
  193. !ENDIF 
  194.  
  195. SOURCE=.\Mytest.c
  196.  
  197. "$(INTDIR)\Mytest.obj" : $(SOURCE) "$(INTDIR)"
  198.  
  199.  
  200.  
  201. !ENDIF 
  202.  
  203.