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.

74 lines
1.6 KiB

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