Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

107 lines
2.2 KiB

  1. !if "$(NTMAKEENV)" != ""
  2. !include $(NTMAKEENV)\makefile.def
  3. !else
  4. #===========================================================================;
  5. #
  6. # AVIView -- AVI Viewer sample application
  7. #
  8. # Copyright (C) Microsoft Corporation 1992-1993. All Rights reserved.
  9. #
  10. #---------------------------------------------------------------------------;
  11. #
  12. # to make a NON-DEBUG build, type the following line:
  13. # nmake DEBUG=NO
  14. # just typing 'nmake' will build a DEBUG build
  15. #
  16. #
  17. #===========================================================================;
  18. #---------------------------------------------------------------------------;
  19. # DEBUG information
  20. #---------------------------------------------------------------------------;
  21. !if "$(DEBUG)" == "NO"
  22. COPT =
  23. MOPT =
  24. LOPT =
  25. DEF =
  26. !else
  27. COPT = -Zi -Fc
  28. MOPT = -Zi -L
  29. LOPT = /CO
  30. DEF = -DDEBUG
  31. !endif
  32. #-------------------------------------------------------------------------;
  33. # Build Defaults
  34. #-------------------------------------------------------------------------;
  35. CC = cl -c -nologo -AM -Zp -Od -G2s -GA $(DEF) $(COPT)
  36. RC = rc $(DEF) -31
  37. ASM = masm -Mx -t $(MOPT) $(DEF)
  38. LINK = link $(LOPT)/NOD/NOE/MAP/NOPACKC/AL:16
  39. #- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -;
  40. #
  41. # Goals and objects
  42. #
  43. #
  44. #- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -;
  45. NAME = aviview
  46. EXT = exe
  47. GOALS = $(NAME).$(EXT)
  48. OBJS =$(NAME).obj audplay.obj aviball.obj muldiv32.obj aviplay.obj
  49. LIBS = libw mlibcew commdlg mmsystem vfw compobj msacm
  50. #- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -;
  51. #
  52. # Build rules
  53. #
  54. #
  55. #- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -;
  56. .c.obj:
  57. $(CC) $*.c
  58. .asm.obj:
  59. $(ASM) $*;
  60. .rc.res:
  61. $(RC) -r $*.rc
  62. goal: $(GOALS)
  63. @echo ***** Finished building $(NAME).$(EXT) *****
  64. $(NAME).$(EXT): $(OBJS) $(NAME).res $(NAME).def
  65. $(LINK) @<<
  66. $(OBJS),
  67. $(NAME).$(EXT),
  68. $(NAME),
  69. $(LIBS),
  70. $(NAME).def
  71. <<
  72. -cvpack -p $(NAME).$(EXT)
  73. mapsym $(NAME).map
  74. $(RC) $(NAME).res $(NAME).$(EXT)
  75. clean:
  76. del $(NAME).$(EXT)
  77. del *.res
  78. del *.obj
  79. del *.map
  80. del *.sym
  81. del *.cod
  82. del *.pdb
  83. del *.bsc
  84. del *.lst
  85. !endif