home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / mfc / utility / makehm / makehm.mak < prev    next >
Encoding:
Text File  |  1998-03-27  |  4.4 KB  |  181 lines

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