home *** CD-ROM | disk | FTP | other *** search
/ Chip 2004 February / Chip_2004-02_cd1.bin / tema / stream / download / asfrec / NMAKEFILE < prev    next >
Text File  |  2000-06-14  |  3KB  |  114 lines

  1.  
  2. # Project: asfrecorder - makefile for NMAKE.EXE
  3.  
  4. !if "$(GUI)" == ""
  5. GUI = none
  6. !endif
  7.  
  8. OUTDIR=.
  9. INTDIR=source
  10. SRCDIR=source
  11.  
  12. !if "$(GUI)" != ""
  13. GUIDIR=source\$(GUI)
  14. !endif
  15.  
  16. ALL : "$(OUTDIR)\ASFRecorder.exe"
  17.  
  18.  
  19. # for cleaning up
  20.  
  21. CLEAN :
  22.     -@erase "$(OUTDIR)\asfrecorder.bsc"
  23.  
  24.     -@erase "$(INTDIR)\asfrecorder.obj"
  25.     -@erase "$(GUIDIR)\wingui.obj"
  26.     -@erase "$(GUIDIR)\CmdLine.obj"
  27.     -@erase "$(GUIDIR)\wingui.res"
  28.  
  29. # this stuff generated by VC++ project file
  30.  
  31.     -@erase "$(INTDIR)\vc60.idb"
  32.     -@erase "$(INTDIR)\vc60.pdb"
  33.     -@erase "$(INTDIR)\asfrecorder.pch"
  34.     -@erase "$(INTDIR)\asfrecorder.sbr"
  35.  
  36.     -@erase "$(GUIDIR)\vc60.idb"
  37.     -@erase "$(GUIDIR)\vc60.pdb"
  38.     -@erase "$(GUIDIR)\wingui.pch"
  39.     -@erase "$(GUIDIR)\wingui.sbr"
  40.     -@erase "$(GUIDIR)\wingui.plg"
  41.     -@erase "$(GUIDIR)\wingui.bsc"
  42.     -@erase "$(GUIDIR)\wingui.aps"
  43.  
  44.     -@erase "$(GUIDIR)\CmdLine.sbr"
  45.     -@erase "$(GUIDIR)\CmdLine.pch"
  46.  
  47.     -@erase "asfrecorder.ncb"
  48.     -@erase "asfrecorder.pdb"
  49.     -@erase "asfrecorder.ilk"
  50.     -@erase "asfrecorder.opt"
  51.     -@erase "asfrecorder.plg"
  52.  
  53.  
  54. # common compiler and linker executables/options/libraries
  55.  
  56. CPP=cl.exe
  57. CPP_OPTS=/nologo /ML /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_MBCS" /c
  58. LINK32=link.exe
  59. LINK32_OBJS= "$(INTDIR)\asfrecorder.obj"
  60. LINK32_LIBS=ws2_32.lib
  61. LINK32_FLAGS=/nologo /PDB:NONE /incremental:no /machine:I386 /out:"$(OUTDIR)\ASFRecorder.exe" 
  62. RSC=rc.exe
  63.  
  64.  
  65. # add compiler and linker options for console version
  66.  
  67. !if "$(GUI)" == "none"
  68.  
  69. CPP_OPTS = $(CPP_OPTS) /D "_CONSOLE" 
  70. LINK32_FLAGS= $(LINK32_FLAGS) /subsystem:console 
  71. LINK32_LIBS=setargv.obj $(LINK32_LIBS)
  72.  
  73. !endif
  74.  
  75.  
  76. # add compiler and linker options for Windows GUI
  77.  
  78. !if "$(GUI)" == "wingui"
  79.  
  80. CPP_OPTS = $(CPP_OPTS) /D "GUI"
  81.  
  82. LINK32_OBJS = $(LINK32_OBJS) "$(GUIDIR)\wingui.obj" "$(GUIDIR)\CmdLine.obj" "$(GUIDIR)\wingui.res"
  83.  
  84. LINK32_FLAGS= $(LINK32_FLAGS) /NODEFAULTLIB /subsystem:windows,4.0 /entry:WinMainCRTStartup
  85.  
  86. LINK32_LIBS= msvcrt.lib libc.lib oldnames.lib kernel32.lib advapi32.lib version.lib largeint.lib user32.lib gdi32.lib comctl32.lib comdlg32.lib shell32.lib ole32.lib oleaut32.lib strmbase.lib quartz.lib $(LINK32_LIBS) 
  87.  
  88. !endif
  89.  
  90.  
  91. # source/target file dependencies
  92.  
  93. "$(INTDIR)\asfrecorder.obj" : "$(SRCDIR)\asfrecorder.c"
  94.    $(CPP) $(CPP_OPTS) "$(SRCDIR)\asfrecorder.c" /Fo$@
  95.  
  96. !if "$(GUI)" == "wingui"
  97.  
  98. "$(GUIDIR)\wingui.res" : "$(GUIDIR)\wingui.rc" "$(GUIDIR)\resource.h"
  99.    $(RSC) $(RES_OPTS) /fo$@ "$(GUIDIR)\wingui.rc"
  100.  
  101. "$(GUIDIR)\wingui.obj" : "$(GUIDIR)\wingui.c" "$(GUIDIR)\global.h" "$(GUIDIR)\CmdLine.c"
  102.    $(CPP) $(CPP_OPTS) "$(GUIDIR)\wingui.c" /Fo$@
  103.  
  104. "$(GUIDIR)\CmdLine.obj" : "$(GUIDIR)\CmdLine.c" "$(GUIDIR)\CmdLine.h"
  105.    $(CPP) $(CPP_OPTS) "$(GUIDIR)\CmdLine.c" /Fo$@
  106.  
  107. !endif
  108.  
  109.  
  110. # linkage
  111.  
  112. "$(OUTDIR)\ASFRecorder.exe" : $(LINK32_OBJS)
  113.     $(LINK32) $(LINK32_FLAGS) $(LINK32_OBJS) $(LINK32_LIBS)
  114.