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.

116 lines
2.7 KiB

  1. # comm16 makefile
  2. #
  3. # Copyright (c) 1992, Microsoft Corporation
  4. #
  5. # History:
  6. # 27-Mar-1992 Nandurir
  7. # Created.
  8. # 6-Feb-1994 LeeHart
  9. # Modified for version resources & CV Symbols
  10. #
  11. !INCLUDE ..\..\makefile.inc
  12. .SUFFIXES:
  13. .SUFFIXES: .c .asm .h .inc .obj .lst .sys .exe .com .map .sym .def .lib .rc .res
  14. !ifdef INCLUDE
  15. INCS =
  16. !else
  17. INCS = -I..\..\inc -I..\..\..\inc
  18. !endif
  19. DEFINES = -DWOW $(MVDMFLAGS)
  20. AOBJ = -t $(DEFINES) $(INCS)
  21. CW16 = -AS -G2sw -Os -W3 -Zp $(DEFINES) $(INCS)
  22. CW16B = $(CW16) -B1 c1l.exe -B2 c2l.exe -B3 c3l.exe
  23. LINK = /map /align:16
  24. !if !$(FREEBUILD)
  25. AOBJ = $(AOBJ) -Zd
  26. CW16 = $(CW16) /Od /Oi /Zd
  27. LINK = $(LINK) /LI
  28. !endif
  29. W16LIBS = ..\..\lib\snocrtd.lib
  30. .asm{$(DEST)\}.obj:
  31. masm $(AOBJ) $<,$(DEST)\;
  32. .asm.lst:
  33. masm $(AOBJ) -l $*,nul,$*.lst;
  34. .c.obj:
  35. cl16 -c -nologo $(CW16) $*.c
  36. .c.lst:
  37. cl16 -c -nologo $(CW16) -Fonul -Fc$*.lst $*.c
  38. .def.lib:
  39. implib $*.lib $*.def
  40. .map.sym:
  41. mapsym $*
  42. .rc.res:
  43. rc16 -r $(INCS) -fo $@ $*.rc
  44. all:$(DEST)\comm.drv $(DEST)\comm.map $(DEST)\comm.sym $(DEST)\comm.lrf
  45. binplace -o $(ALT_PROJECT_TARGET) $(DEST)\comm.drv $(DEST)\comm.map $(DEST)\comm.sym
  46. clean: cleanup all
  47. cleanup:
  48. if exist $(DEST)\*.lrf del $(DEST)\*.lrf
  49. if exist $(DEST)\*.obj del $(DEST)\*.obj
  50. if exist $(DEST)\*.exe del $(DEST)\*.exe
  51. if exist $(DEST)\*.map del $(DEST)\*.map
  52. if exist $(DEST)\*.sym del $(DEST)\*.sym
  53. if exist $(DEST)\*.drv del $(DEST)\*.drv
  54. if exist $(DEST)\*.res del $(DEST)\*.res
  55. if exist $(DEST)\*.def del $(DEST)\*.def
  56. if exist $(DEST)\*.asm del $(DEST)\*.asm
  57. $(DEST)\ccom.obj ccom.lst: ccom.asm ibmcom.inc comdev.inc
  58. $(DEST)\ibmsetup.obj ibmsetup.lst: ibmsetup.asm ibmcom.inc comdev.inc ins8250.inc
  59. $(DEST)\ibmcom.obj: ibmcom.asm ibmcom.inc comdev.inc ins8250.inc
  60. $(DEST)\ibmint.obj: ibmint.asm ibmcom.inc comdev.inc ins8250.inc
  61. $(DEST)\ibmlpt.obj: ibmlpt.asm ibmcom.inc comdev.inc
  62. $(DEST)\commmsg.obj: commmsg.asm
  63. $(DEST)\comm.res: comm.rc comm.rcv ..\..\inc\common.ver
  64. rc16 -r $(INCS) -fo $@ comm.rc
  65. $(DEST)\comm.lrf: makefile.sub
  66. echo ccom+ibmsetup+ibmcom+ibmint+ibmlpt+commmsg >$@
  67. echo comm.exe/align:16>>$@
  68. echo comm $(LINK)>>$@
  69. echo ..\..\..\..\..\lib\$(ALT_PROJECT)\libw.lib ..\..\..\..\..\lib\snocrtd.lib /map /nod>>$@
  70. echo ..\..\..\comm;>>$@
  71. $(DEST)\comm.drv: $(DEST)\ccom.obj $(DEST)\ibmsetup.obj $(DEST)\ibmcom.obj $(DEST)\ibmint.obj $(DEST)\ibmlpt.obj $(DEST)\commmsg.obj \
  72. comm.def $*.res $(DEST)\comm.lrf
  73. cd $(DEST)
  74. link16 @comm.lrf;
  75. rc16 -t comm.res comm.exe
  76. if exist *.drv del *.drv
  77. ren comm.exe *.drv
  78. mapsym comm
  79. cd ..\..\..