home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / mfc / advanced / dllhusk / testdll2.mak < prev    next >
Text File  |  1998-03-26  |  4KB  |  172 lines

  1. # Microsoft Developer Studio Generated NMAKE File, Based on TestDll2.dsp
  2. !IF "$(CFG)" == ""
  3. CFG=TestDll2 - Win32 Release
  4. !MESSAGE No configuration specified. Defaulting to TestDll2 - Win32 Release.
  5. !ENDIF 
  6.  
  7. !IF "$(CFG)" != "TestDll2 - Win32 Release" && "$(CFG)" != "TestDll2 - 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 "TestDll2.mak" CFG="TestDll2 - Win32 Release"
  13. !MESSAGE 
  14. !MESSAGE Possible choices for configuration are:
  15. !MESSAGE 
  16. !MESSAGE "TestDll2 - Win32 Release" (based on "Win32 (x86) Dynamic-Link Library")
  17. !MESSAGE "TestDll2 - Win32 Debug" (based on "Win32 (x86) Dynamic-Link Library")
  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. MTL=midl.exe
  30. RSC=rc.exe
  31.  
  32. !IF  "$(CFG)" == "TestDll2 - Win32 Release"
  33.  
  34. OUTDIR=.\Release
  35. INTDIR=.\Release
  36. # Begin Custom Macros
  37. OutDir=.\.\Release
  38. # End Custom Macros
  39.  
  40. ALL : "$(OUTDIR)\TestDll2.dll"
  41.  
  42.  
  43. CLEAN :
  44.     -@erase "$(INTDIR)\testdll2.obj"
  45.     -@erase "$(INTDIR)\testdll2.res"
  46.     -@erase "$(INTDIR)\vc60.idb"
  47.     -@erase "$(OUTDIR)\TestDll2.dll"
  48.     -@erase "$(OUTDIR)\TestDll2.exp"
  49.     -@erase "$(OUTDIR)\TestDll2.lib"
  50.  
  51. "$(OUTDIR)" :
  52.     if not exist "$(OUTDIR)/$(NULL)" mkdir "$(OUTDIR)"
  53.  
  54. CPP_PROJ=/nologo /MD /W3 /GX /O2 /D "NDEBUG" /D "WIN32" /D "_WINDOWS" /D "_AFXEXT" /D "_MBCS" /Fo"$(INTDIR)\\" /Fd"$(INTDIR)\\" /FD /c 
  55. MTL_PROJ=/nologo /D "NDEBUG" /mktyplib203 /win32 
  56. RSC_PROJ=/l 0x409 /fo"$(INTDIR)\testdll2.res" /d "NDEBUG" /d "_AFXDLL" 
  57. BSC32=bscmake.exe
  58. BSC32_FLAGS=/nologo /o"$(OUTDIR)\TestDll2.bsc" 
  59. BSC32_SBRS= \
  60.     
  61. LINK32=link.exe
  62. LINK32_FLAGS=/nologo /subsystem:windows /dll /incremental:no /pdb:"$(OUTDIR)\TestDll2.pdb" /machine:I386 /out:"$(OUTDIR)\TestDll2.dll" /implib:"$(OUTDIR)\TestDll2.lib" 
  63. LINK32_OBJS= \
  64.     "$(INTDIR)\testdll2.obj" \
  65.     "$(INTDIR)\testdll2.res"
  66.  
  67. "$(OUTDIR)\TestDll2.dll" : "$(OUTDIR)" $(DEF_FILE) $(LINK32_OBJS)
  68.     $(LINK32) @<<
  69.   $(LINK32_FLAGS) $(LINK32_OBJS)
  70. <<
  71.  
  72. !ELSEIF  "$(CFG)" == "TestDll2 - Win32 Debug"
  73.  
  74. OUTDIR=.\Debug
  75. INTDIR=.\Debug
  76. # Begin Custom Macros
  77. OutDir=.\.\Debug
  78. # End Custom Macros
  79.  
  80. ALL : "$(OUTDIR)\TestDll2.dll"
  81.  
  82.  
  83. CLEAN :
  84.     -@erase "$(INTDIR)\testdll2.obj"
  85.     -@erase "$(INTDIR)\testdll2.res"
  86.     -@erase "$(INTDIR)\vc60.idb"
  87.     -@erase "$(INTDIR)\vc60.pdb"
  88.     -@erase "$(OUTDIR)\TestDll2.dll"
  89.     -@erase "$(OUTDIR)\TestDll2.exp"
  90.     -@erase "$(OUTDIR)\TestDll2.ilk"
  91.     -@erase "$(OUTDIR)\TestDll2.lib"
  92.     -@erase "$(OUTDIR)\TestDll2.pdb"
  93.  
  94. "$(OUTDIR)" :
  95.     if not exist "$(OUTDIR)/$(NULL)" mkdir "$(OUTDIR)"
  96.  
  97. CPP_PROJ=/nologo /MDd /W3 /Gm /GX /ZI /Od /D "_DEBUG" /D "WIN32" /D "_WINDOWS" /D "_AFXEXT" /D "_MBCS" /Fo"$(INTDIR)\\" /Fd"$(INTDIR)\\" /FD /c 
  98. MTL_PROJ=/nologo /D "_DEBUG" /mktyplib203 /win32 
  99. RSC_PROJ=/l 0x409 /fo"$(INTDIR)\testdll2.res" /d "_DEBUG" /d "_AFXDLL" 
  100. BSC32=bscmake.exe
  101. BSC32_FLAGS=/nologo /o"$(OUTDIR)\TestDll2.bsc" 
  102. BSC32_SBRS= \
  103.     
  104. LINK32=link.exe
  105. LINK32_FLAGS=/nologo /subsystem:windows /dll /incremental:yes /pdb:"$(OUTDIR)\TestDll2.pdb" /debug /machine:I386 /out:"$(OUTDIR)\TestDll2.dll" /implib:"$(OUTDIR)\TestDll2.lib" 
  106. LINK32_OBJS= \
  107.     "$(INTDIR)\testdll2.obj" \
  108.     "$(INTDIR)\testdll2.res"
  109.  
  110. "$(OUTDIR)\TestDll2.dll" : "$(OUTDIR)" $(DEF_FILE) $(LINK32_OBJS)
  111.     $(LINK32) @<<
  112.   $(LINK32_FLAGS) $(LINK32_OBJS)
  113. <<
  114.  
  115. !ENDIF 
  116.  
  117. .c{$(INTDIR)}.obj::
  118.    $(CPP) @<<
  119.    $(CPP_PROJ) $< 
  120. <<
  121.  
  122. .cpp{$(INTDIR)}.obj::
  123.    $(CPP) @<<
  124.    $(CPP_PROJ) $< 
  125. <<
  126.  
  127. .cxx{$(INTDIR)}.obj::
  128.    $(CPP) @<<
  129.    $(CPP_PROJ) $< 
  130. <<
  131.  
  132. .c{$(INTDIR)}.sbr::
  133.    $(CPP) @<<
  134.    $(CPP_PROJ) $< 
  135. <<
  136.  
  137. .cpp{$(INTDIR)}.sbr::
  138.    $(CPP) @<<
  139.    $(CPP_PROJ) $< 
  140. <<
  141.  
  142. .cxx{$(INTDIR)}.sbr::
  143.    $(CPP) @<<
  144.    $(CPP_PROJ) $< 
  145. <<
  146.  
  147.  
  148. !IF "$(NO_EXTERNAL_DEPS)" != "1"
  149. !IF EXISTS("TestDll2.dep")
  150. !INCLUDE "TestDll2.dep"
  151. !ELSE 
  152. !MESSAGE Warning: cannot find "TestDll2.dep"
  153. !ENDIF 
  154. !ENDIF 
  155.  
  156.  
  157. !IF "$(CFG)" == "TestDll2 - Win32 Release" || "$(CFG)" == "TestDll2 - Win32 Debug"
  158. SOURCE=.\testdll2.cpp
  159.  
  160. "$(INTDIR)\testdll2.obj" : $(SOURCE) "$(INTDIR)"
  161.  
  162.  
  163. SOURCE=.\testdll2.rc
  164.  
  165. "$(INTDIR)\testdll2.res" : $(SOURCE) "$(INTDIR)"
  166.     $(RSC) $(RSC_PROJ) $(SOURCE)
  167.  
  168.  
  169.  
  170. !ENDIF 
  171.  
  172.