Leaked source code of windows server 2003
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.

89 lines
2.3 KiB

  1. # keyboard16 makefile
  2. #
  3. # Copyright (c) 1991, Microsoft Corporation
  4. #
  5. # History:
  6. # 26-Jan-1991 Jeff Parsons (jeffpar)
  7. # Created.
  8. #
  9. LVL_2 = 1
  10. !INCLUDE ..\..\makefile.inc
  11. DEFINES = $(DEFINES) $(DBCS_FLAGS)
  12. W16LIBS = ..\..\lib\$(ALT_PROJECT)\libw.lib ..\..\lib\snocrtd.lib
  13. CLOPT =$(AOBJ)
  14. MASMOPT=$(AOBJ)
  15. Z=.\$(ALT_PROJECT)^\
  16. .asm{$(DEST)}.obj:
  17. $(ASM) $(MASMOPT) $(@B).asm, $*.obj;
  18. .asm{$(DEST)}.lst:
  19. $(ASM) $(MASMOPT) -l $(@B),nul,$*.lst;
  20. .c{$(DEST)}.obj:
  21. $(CL) -c -nologo $(CLOPT) -Fo$*.obj $(@B).c
  22. .c{$(DEST)}.lst:
  23. $(CL) -c -nologo $(CLOPT) -Fonul -Fc$*.lst $(@B).c
  24. .def.lib:
  25. implib $*.lib $*.def
  26. .map.sym:
  27. mapsym -o $*.sym $*
  28. .rc{$Z}.res:
  29. @set include=$(ENVINCS);$(INCLUDE)
  30. $(RC) -r -fo$*.res $(@B).rc
  31. all:$(DEST)\keyboard.drv $(DEST)\keyboard.map $(DEST)\keyboard.sym
  32. binplace -o $(ALT_PROJECT_TARGET) $(DEST)\keyboard.drv $(DEST)\keyboard.map $(DEST)\keyboard.sym
  33. clean: cleanup all
  34. cleanup:
  35. if exist $(DEST)\*.lrf del $(DEST)\*.lrf
  36. if exist $(DEST)\*.obj del $(DEST)\*.obj
  37. if exist $(DEST)\*.exe del $(DEST)\*.exe
  38. if exist $(DEST)\*.map del $(DEST)\*.map
  39. if exist $(DEST)\*.sym del $(DEST)\*.sym
  40. if exist $(DEST)\*.drv del $(DEST)\*.drv
  41. if exist *.res del *.res
  42. $(DEST)\keyboard.obj: keyboard.asm ..\..\..\inc\wow.inc ..\..\..\inc\wowkbd.inc
  43. $(ASM) $(AOBJ) keyboard,$(DEST)\;
  44. $(DEST)\kbdlocal.obj: kbdlocal.asm ..\..\..\inc\wow.inc ..\..\..\inc\wowkbd.inc
  45. $(ASM) $(AOBJ) kbdlocal,$(DEST)\;
  46. $(DEST)\keyboard.res: keyboard.rc keyboard.rcv ..\..\inc\common.ver
  47. @set include=$(ENVINCS);$(INCLUDE)
  48. $(RC) -r -fo $@ keyboard.rc
  49. $(DEST)\keyboard.lrf: makefile.sub
  50. echo $*.obj $(DEST)\kbdlocal.obj >$@
  51. echo $*.exe/align:16>>$@
  52. echo $* $(LINKOPTS)>>$@
  53. echo ..\..\lib\$(ALT_PROJECT)\libw.lib ..\..\lib\snocrtd.lib /map /nod>>$@
  54. echo keyboard;>>$@
  55. $(DEST)\keyboard.drv: $*.obj $(DEST)\kbdlocal.obj keyboard.def $(DEST)\keyboard.res $*.lrf
  56. $(LINK) @$*.lrf;
  57. $(RC) -t $(DEST)\keyboard.res $*.exe
  58. if exist $(DEST)\*.drv del $(DEST)\*.drv
  59. cd $(DEST)
  60. ren keyboard.exe keyboard.drv
  61. cd ..\..\..
  62. $(DEST)\keyboard.sym: $*.map
  63. cd $(DEST)
  64. mapsym keyboard.map
  65. cd ..\..\..