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

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