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.

117 lines
2.5 KiB

  1. #
  2. # constructs a large model OS/2 app
  3. #
  4. NAME = docfmt
  5. EXT = exe
  6. OBJ1 = $(NAME).obj text.obj ventura.obj errstr.obj
  7. OBJ2 = rtf.obj misc.obj process.obj readext.obj
  8. OBJ = $(OBJ1) $(OBJ2)
  9. OS2LIBS = c:\lib
  10. LIBS = $(OS2LIBS)\llibcep $(OS2LIBS)\os2
  11. INCS = -Ic:\include
  12. !ifdef DEBUG
  13. CLOPT = -Zid -Od -DDEBUG -DHEAPDEBUG
  14. MASMOPT = -Zi -DDEBUG
  15. LINKOPT = /CO
  16. !else
  17. CLOPT = -Ox -DHEAPDEBUG
  18. MASMOPT =
  19. LINKOPT =
  20. !endif
  21. CC = cl -c -nologo -AL -G2 -W3 $(CLOPT) $(INCS)
  22. ASM = masm -w1 -Mx -t -D?QUIET $(MASMOPT)
  23. LINK = link /NOD/NOE/MAP/ST:4096 $(LINKOPT)
  24. .c.obj:
  25. $(CC) $*.c
  26. .asm.obj:
  27. $(ASM) $*;
  28. goal: $(NAME).$(EXT) copy
  29. tail.h: tail.rtf rtf2h.sed
  30. echo char *tailrtf[]= >tail.h
  31. echo { >>tail.h
  32. sed -f rtf2h.sed tail.rtf >>tail.h
  33. echo NULL >>tail.h
  34. echo }; >>tail.h
  35. head.h: head.rtf rtf2h.sed
  36. echo char *headrtf[]= >head.h
  37. echo { >>head.h
  38. sed -f rtf2h.sed head.rtf >>head.h
  39. echo NULL >>head.h
  40. echo }; >>head.h
  41. rtf.obj: head.h tail.h
  42. $(NAME).exe: $(OBJ) $(NAME).def
  43. $(LINK) @<<
  44. $(OBJ),
  45. $(NAME).exe,
  46. $(NAME).map,
  47. $(LIBS),
  48. $(NAME).def
  49. <<
  50. copy:
  51. copy $(NAME).$(EXT) ..\..\obj\i386
  52. copy $(NAME).$(EXT) $(_NTDRIVE)$(_NTROOT)\public\tools
  53. clean:
  54. -del $(NAME).$(EXT)
  55. -del *.err
  56. -del *.obj
  57. -del *.map
  58. whdocs: $(NAME).wh
  59. printdocs: $(NAME).rtf
  60. $(NAME).wh: $(NAME).ex
  61. docfmt -x INTERNAL -c1 -v9 -rh -o $(NAME).wh $(NAME).ex
  62. $(NAME).rtf: $(NAME).ex
  63. docfmt -x INTERNAL -c1 -v9 -rd -o $(NAME).rtf $(NAME).ex
  64. DOCFILES = $(NAME).c misc.c readext.c errstr.c process.c rtf.c ventura.c
  65. $(NAME).ex: $(NAME).c $(DOCFILES)
  66. extract -o$(NAME).ex $(DOCFILES)
  67. depend:
  68. mv makefile makefile.old
  69. sed "/^# START Dependencies/,/^# END Dependencies/D" makefile.old > makefile
  70. -del makefile.old
  71. echo # START Dependencies >> makefile
  72. includes -l *.c *.asm >> makefile
  73. echo # END Dependencies >> makefile
  74. # START Dependencies
  75. docfmt.obj docfmt.: docfmt.c errstr.h rtf.h misc.h process.h ventura.h \
  76. readext.h docfmt.h text.h types.h version.h
  77. errstr.obj errstr.: errstr.c errstr.h docfmt.h types.h
  78. misc.obj misc.: misc.c misc.h
  79. process.obj process.: process.c errstr.h misc.h process.h rtf.h ventura.h \
  80. docfmt.h types.h
  81. readext.obj readext.: readext.c errstr.h rtf.h misc.h process.h docfmt.h \
  82. text.h readext.h types.h
  83. rtf.obj rtf.: rtf.c errstr.h rtf.h process.h docfmt.h types.h
  84. text.obj text.: text.c misc.h errstr.h docfmt.h text.h types.h
  85. ventura.obj ventura.: ventura.c errstr.h process.h ventura.h text.h docfmt.h \
  86. types.h
  87. # END Dependencies