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.

75 lines
1.6 KiB

  1. # Sound16 makefile
  2. #
  3. # Copyright (c) 1992, Microsoft Corporation
  4. #
  5. # History:
  6. # 27-Mar-1992 Nandurir
  7. # Created.
  8. #
  9. LVL_2 = 1
  10. !INCLUDE ..\..\makefile.inc
  11. W16LIBS = ..\..\lib\snocrtd.lib
  12. .asm{$(DEST)}.obj:
  13. $(ASM) -L $(AOBJ) $*;
  14. .asm{$(DEST)}.lst:
  15. $(ASM) $(AOBJ) -l $*,nul,$*.lst;
  16. .c{$(DEST)}.obj:
  17. $(CL) -c -nologo $(CW16) $*.c
  18. .c{$(DEST)}.lst:
  19. $(CL) -c -nologo $(CW16) -Fonul -Fc$*.lst $*.c
  20. .def{$(DEST)}.lib:
  21. implib $*.lib $(*F).def
  22. {$(DEST)}.map{$(DEST)}.sym:
  23. mapsym -o $*.sym $*
  24. .rc{$(DEST)}.res:
  25. @set include=$(ENVINCS);$(INCLUDE)
  26. $(RC) -r -fo $@ $(*F).rc
  27. all: $(DEST)\sound.drv $(DEST)\sound.map $(DEST)\sound.sym
  28. binplace -o $(ALT_PROJECT_TARGET) $(DEST)\sound.drv $(DEST)\sound.map $(DEST)\sound.sym
  29. clean: cleanup all
  30. cleanup:
  31. cd $(DEST)
  32. if exist *.lrf del *.lrf
  33. if exist *.obj del *.obj
  34. if exist *.exe del *.exe
  35. if exist *.map del *.map
  36. if exist *.sym del *.sym
  37. if exist *.drv del *.drv
  38. if exist *.res del *.res
  39. cd ..\..\..
  40. $(DEST)\sound.res: sound.rc sound.rcv ..\..\inc\common.ver
  41. $(DEST)\sound.obj: $(*F).asm ..\..\..\inc\wow.inc ..\..\..\inc\wowsnd.inc
  42. $(ASM) $(AOBJ) $(*F),$*;
  43. $(DEST)\sound.lrf: makefile.sub
  44. echo $*.obj >$@
  45. echo $*.exe/align:16>>$@
  46. echo $* $(LINKOPTS)>>$@
  47. echo ..\..\lib\$(ALT_PROJECT)\libw.lib ..\..\lib\snocrtd.lib /map /nod>>$@
  48. echo $(*F);>>$@
  49. $(DEST)\sound.drv: $*.obj $*.lrf sound.def $*.res
  50. $(LINK) @$*.lrf;
  51. $(RC) -t $*.res $*.exe
  52. cd $(DEST)
  53. if exist sound.drv del sound.drv
  54. ren sound.exe sound.drv
  55. cd ..\..\..