home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / sdk / winbase / debug / deb / makefile < prev    next >
Makefile  |  1997-10-05  |  2KB  |  84 lines

  1. # -------------------------------------------------------------------------
  2. #
  3. #                       Microsoft Developer Support
  4. #              Copyright (c) 1992-1997 Microsoft Corporation
  5. #
  6. # -------------------------------------------------------------------------
  7. # MODULE  : MakeFile
  8. # PURPOSE : Nmake macros for building the Windows 32-Bit Debug Event
  9. #           Browser Application
  10. # -------------------------------------------------------------------------
  11.  
  12. # Nmake macros for building Win32 applications
  13.  
  14. !Include <Win32.Mak>
  15.  
  16. # Macro Defines
  17. PROJ=DEB
  18. OBJ1=DEBMain
  19. OBJ2=DEBDebug
  20. OBJ3=DEBMisc
  21. DLL1=LinkList
  22. DLL2=ToolBar
  23.  
  24. # Target List
  25. All: $(PROJ).Exe $(DLL1).Dll $(DLL2).Dll $(PROJ).Hlp
  26.  
  27. # Suffixes
  28. .SUFFIXES: .Def .Hpj
  29.  
  30. # Inference Rules
  31. .C.Obj:
  32.     $(cc) $(cdebug) $(cflags) $(cvarsmt) $*.C
  33. .Def.Lib:
  34.     $(implib) -def:$*.Def $*.Obj -out:$*.Lib
  35. .Def.Exp:
  36.     $(implib) -def:$*.Def $*.Obj -out:$*.Lib
  37. .RC.Res:
  38.     $(rc) $(rcvars) -r -fo $*.Res $*.RC
  39. .Obj.Dll:
  40.     $(link) $(ldebug) $(dlllflags) -out:$*.Dll $** $(guilibsmt)
  41. .Res.Exe:
  42.     $(link) $(ldebug) $(guilflags) -out:$*.Exe $** $(guilibsmt)
  43. .Hpj.Hlp:
  44.     -@if exist $*.Ph del $*.Ph
  45.     $(hc) $*.Hpj
  46.  
  47. # Source Objects
  48. $(OBJ1).Obj: $(OBJ1).C $(OBJ1).H $(OBJ2).H $(OBJ3).H $(DLL1).H $(PROJ).H
  49. $(OBJ2).Obj: $(OBJ2).C $(OBJ2).H $(OBJ3).H $(DLL1).H $(PROJ).H
  50. $(OBJ3).Obj: $(OBJ3).C $(OBJ3).H $(DLL1).H $(DLL2).H $(PROJ).H
  51. $(DLL1).Obj: $(DLL1).C $(DLL1).H
  52. $(DLL2).Obj: $(DLL2).C $(DLL2).H
  53.  
  54. # Import/Export Libraries
  55. $(DLL1).Lib $(DLL1).Exp: $(DLL1).Obj $(DLL1).Def
  56. $(DLL2).Lib $(DLL2).Exp: $(DLL2).Obj $(DLL2).Def
  57.  
  58. # Resources
  59. $(PROJ).Res: $(PROJ).Rc $(PROJ).Dlg $(PROJ).H
  60.  
  61. # Dynamic Link Libraries
  62. $(DLL1).Dll: $(DLL1).Obj $(DLL1).Exp
  63. $(DLL2).Dll: $(DLL2).Obj $(DLL2).Exp
  64.  
  65. # Executables
  66. $(PROJ).Exe: $(OBJ1).Obj $(OBJ2).Obj $(OBJ3).Obj $(DLL1).Lib $(DLL2).Lib $(PROJ).Res
  67.  
  68. # Help Files
  69. $(PROJ).Hlp: $(PROJ).Hpj $(PROJ).Rtf
  70.  
  71. # Clean Up Everything
  72. CleanAll: clean
  73.     @del *.Exe 2> nul
  74.     @del *.Dll 2> nul
  75.     @del *.Hlp 2> nul
  76.  
  77. # Clean Up Everything Except .Exe And .Dll Files
  78. Clean:
  79.     @del *.Obj 2> nul
  80.     @del *.Lib 2> nul
  81.     @del *.Exp 2> nul
  82.     @del *.Res 2> nul
  83.     @del *.Ph  2> nul
  84.