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.

200 lines
5.3 KiB

  1. # dos makefile for masm386
  2. C = cc286
  3. A = masm5s
  4. L = link
  5. # Release number, comment next two lines out for release version
  6. # REL=.17
  7. # RELEASE=-DRELEASE=$(REL)
  8. # 386 support option
  9. V386 =
  10. #V386 = -DNOV386
  11. # memory model for .c sources
  12. #CMODEL = -AS
  13. CMODEL = -AM
  14. #CMODEL = -AL
  15. SEG = -NT A_TEXT
  16. # memory model for .asm sources
  17. #AMODEL = -DSMALL
  18. AMODEL = -DMEDIUM
  19. #AMODEL = -DLARGE
  20. # symbolic debugging support
  21. DEBUG =
  22. #DEBUG = -Zi
  23. # kind of optimization; time, size, or none
  24. OPT = -Oat
  25. #OPT = -Oas
  26. #OPT =
  27. # standard cc invocation lines
  28. D = -DXENIX286 -Ze $(V386) -W0 -Zd -DM8086
  29. CDEFS = $(D) $(CMODEL) $(OPT) -c
  30. COMPILE = $(C) $(CDEFS) -Gs
  31. I = asm86.h asmfcn.h asmdebug.h
  32. O = asmalloc.o asmchksp.o asmcond.o asmcref.o asmdata.o \
  33. asmdir.o asmemit.o asmequ.o asmerr.o asmerrtb.o asmeval.o \
  34. asmexpr.o asmflt.o asmhelp.o asmfhelp.o asminp.o asminptb.o asmirp.o \
  35. asmlst.o asmmac.o asmmain.o asmopc.o asmopcod.o asmpars.o \
  36. asmrec.o asmsym.o asmtab.o asmutl.o \
  37. decode.o maifin.o maitmul.o nmsghdr.o fmsghdr.o asmtabt2.o asmmsg.o asmtabtb.o
  38. default: masm5
  39. asmalloc.o: asmalloc.c asm86.h asmfcn.h
  40. $(COMPILE) $(SEG) asmalloc.c
  41. asmchksp.o: asmchksp.c $(I) asmctype.h asmopcod.h asmexpr.h
  42. $(C) $(CDEFS) $(SEG) asmchksp.c
  43. asmcond.o: asmcond.c $(I) asmconf.h asmctype.h
  44. $(COMPILE) $(SEG) asmcond.c
  45. asmcref.o: asmcref.c $(I) asmconf.h
  46. $(COMPILE) asmcref.c
  47. asmdata.o: asmdata.c $(I) asmctype.h asmmsg.h
  48. $(COMPILE) $(SEG) asmdata.c
  49. asmdir.o: asmdir.c $(I) asmctype.h asmmsg.h
  50. $(COMPILE) $(SEG) asmdir.c
  51. asmemit.o: asmemit.c $(I) asmconf.h
  52. $(COMPILE) $(SEG) asmemit.c
  53. asmequ.o: asmequ.c $(I) asmctype.h asmmsg.h
  54. $(COMPILE) $(SEG) asmequ.c
  55. asmerr.o: asmerr.c $(I) asmconf.h asmmsg.h
  56. $(COMPILE) $(SEG) asmerr.c
  57. asmerrtb.o: asmerrtb.c asm86.h asmmsg.h
  58. # $(C) $(D) -Alnu -ND ERRORS -c asmerrtb.c
  59. $(COMPILE) -c asmerrtb.c
  60. asmeval.o: asmeval.c $(I) asmexpr.h
  61. $(COMPILE) $(SEG) asmeval.c
  62. asmexpr.o: asmexpr.c $(I) asmexpr.h asmctype.h asmmsg.h
  63. $(COMPILE) $(SEG) asmexpr.c
  64. asmflt.o: asmflt.c $(I) asmconf.h asmctype.h asmopcod.h
  65. $(COMPILE) $(SEG) asmflt.c
  66. asmhelp.o: asmhelp.asm
  67. $(A) -Mx asmhelp.asm
  68. asmfhelp.o: asmfhelp.asm
  69. $(A) -Mx asmfhelp.asm
  70. asminp.o: asminp.c $(I) asmconf.h asmctype.h asmmsg.h
  71. $(COMPILE) $(SEG) asminp.c
  72. asminptb.o: asminptb.c asm86.h asmdebug.h asmconf.h asmctype.h
  73. $(COMPILE) $(SEG) asminptb.c
  74. asmirp.o: asmirp.c $(I) asmctype.h
  75. $(C) $(CDEFS) $(SEG) asmirp.c
  76. asmlst.o: asmlst.c $(I) asmctype.h asmconf.h asmmsg.h
  77. $(COMPILE) asmlst.c
  78. asmmac.o: asmmac.c $(I) asmctype.h
  79. $(C) $(CDEFS) $(SEG) asmmac.c
  80. asmmain.o: asmmain.c $(I) asmctype.h asmconf.h asmmsg.h
  81. $(COMPILE) $(SEGCHK) $(RELEASE) asmmain.c
  82. asmopc.o: asmopc.c $(I) asmctype.h asmopcod.h
  83. $(COMPILE) $(SEGCHK) $(SEG) asmopc.c
  84. asmopcod.o: asmopcod.c $(I)
  85. $(COMPILE) $(SEGCHK) $(SEG) asmopcod.c
  86. asmpars.o: asmpars.c $(I) asmconf.h asmctype.h
  87. $(COMPILE) $(SEGCHK) $(SEG) asmpars.c
  88. asmrec.o: asmrec.c $(I) asmconf.h asmctype.h
  89. $(COMPILE) $(SEG) asmrec.c
  90. asmsym.o: asmsym.c $(I) asmconf.h asmctype.h
  91. $(COMPILE) $(SEG) asmsym.c
  92. asmtab.o: asmtab.c $(I) asmconf.h asmctype.h asmopcod.h asmtab.h
  93. $(COMPILE) $(SEG) asmtab.c
  94. genkey.o: genkey.c
  95. $(C) -W0 -DXENIX -Ox -c genkey.c
  96. hash.o: hash.c
  97. $(C) -Ox -c hash.c
  98. genkey: genkey.o hash.o
  99. $(C) -o genkey genkey.o hash.o -lm
  100. asmkeys.h: genkey asmkeys.src
  101. genkey $(V386) asmkeys.src $@
  102. asmtabt2i.c: asmtabt2.c asmkeys.h asmtab.h
  103. $(C) -P $(CDEFS) -Gs $(SEG) asmtabt2.c
  104. mv asmtabt2.i asmtabt2i.c
  105. asmtabt2.o: asmtabt2i.c
  106. $(C) -c -Ze -Alnu -ND KEYWORDS asmtabt2i.c
  107. mv asmtabt2i.o asmtabt2.o
  108. asmtabtb.o: asmtabtb.c asm86.h asmfcn.h asmconf.h asmopcod.h \
  109. asmctype.h asmtab.h
  110. $(COMPILE) $(SEG) asmtabtb.c
  111. asmutl.o: asmutl.c $(I) asmconf.h asmctype.h asmmsg.h
  112. $(COMPILE) $(SEG) asmutl.c
  113. decode.o: decode.asm
  114. $(A) -Mu $(AMODEL) decode.asm
  115. maifin.o: x8fin.asm version.inc mathmac.inc mathmem.inc mathver.inc
  116. $(A) -Mu $(AMODEL) -o$@ x8fin.asm
  117. maitmul.o: x8tmul.asm version.inc mathmac.inc mathmem.inc mathver.inc
  118. $(A) -Mu $(AMODEL) -o$@ x8tmul.asm
  119. mkmsg: mkmsg.c
  120. cc -o $@ mkmsg.c
  121. makev: makev.c
  122. cc -o $@ makev.c
  123. asmmsg.h: asmmsg.txt mkmsg
  124. mkmsg -h $@ asmmsg.txt
  125. asmmsg.asm: asmmsg.txt mkmsg
  126. mkmsg -asm $@ asmmsg.txt
  127. asmmsg.o: asmmsg.asm
  128. $(A) -Mu $(AMODEL) -o$@ asmmsg.asm
  129. fmsghdr.o: fmsghdr.asm
  130. $(A) -Mu $(AMODEL) -o$@ fmsghdr.asm
  131. nmsghdr.o: nmsghdr.asm
  132. $(A) -Mu $(AMODEL) -o$@ nmsghdr.asm
  133. version.asm: $(O) makev
  134. makev "Microsoft (R) Macro Assembler Version 5.10$(REL)" >version.asm
  135. $(A) version.asm
  136. #masm5: $(O) version.asm
  137. # $(C) $(CMODEL) -Me -o masm5 $(O) version.o
  138. masm5: $(O) version.asm
  139. ld -C -i -IS -Mme -o masm5 /usr/lib/286/Mseg.o \
  140. /usr/lib/286/Mcrt0.o $(O) version.o /usr/lib/286/Mlibc.a \
  141. /usr/lib/286/libh.a