1 # Makefile for the Netwide Assembler under 16-bit DOS
3 # The Netwide Assembler is copyright (C) 1996 Simon Tatham and
4 # Julian Hall. All rights reserved. The software is
5 # redistributable under the licence given in the file "Licence"
6 # distributed in the NASM archive.
8 # This Makefile is designed to build NASM using a 16-bit DOS C
9 # compiler such as Microsoft C, provided you have a compatible MAKE.
10 # It's been tested with Microsoft C 5.x plus Borland Make. (Yes, I
11 # know it's silly, but...)
24 NASMOBJS = nasm.$(OBJ) nasmlib.$(OBJ) float.$(OBJ) insnsa.$(OBJ) \
25 assemble.$(OBJ) labels.$(OBJ) parser.$(OBJ) outform.$(OBJ) \
26 output/outbin.$(OBJ) output/outaout.$(OBJ) output/outcoff.$(OBJ) output/outelf.$(OBJ) \
27 output/outobj.$(OBJ) output/outas86.$(OBJ) output/outrdf.$(OBJ) output/outrdf2.$(OBJ) \
28 output/outieee.$(OBJ) output/outdbg.$(OBJ) preproc.$(OBJ) listing.$(OBJ) \
31 NDISASMOBJS = ndisasm.$(OBJ) disasm.$(OBJ) sync.$(OBJ) nasmlib.$(OBJ) \
34 all : nasm$(EXE) ndisasm$(EXE)
36 # We have to have a horrible kludge here to get round the 128 character
38 LINKOBJS = a*.obj e*.obj f*.obj insnsa.obj l*.obj na*.obj o*.obj p*.obj
39 nasm$(EXE): $(NASMOBJS)
40 cl /Fenasm.exe /F 4000 $(LINKOBJS)
42 ndisasm$(EXE): $(NDISASMOBJS)
43 cl /Fendisasm.exe $(NDISASMOBJS)
45 # Another grotty hack: QC is less likely to run out of memory than
46 # CL proper; and we don't need any optimisation in these modules
47 # since they're just data.
48 insnsa.$(OBJ): insnsa.c nasm.h version.h insnsi.h insns.h
50 insnsd.$(OBJ): insnsd.c nasm.h version.h insnsi.h insns.h
58 #-- Magic hints to mkdep.pl --#
59 # @object-ending: ".$(OBJ)"
60 # @path-separator: "/"
61 #-- Everything below is generated by mkdep.pl - do not edit --#
62 assemble.$(OBJ): assemble.c preproc.h insns.h regs.h version.h nasmlib.h \
63 nasm.h regvals.c insnsi.h assemble.h
64 disasm.$(OBJ): disasm.c insns.h sync.h regdis.c regs.h regs.c version.h \
65 nasm.h insnsn.c names.c insnsi.h disasm.h
66 eval.$(OBJ): eval.c labels.h eval.h regs.h version.h nasmlib.h nasm.h
67 float.$(OBJ): float.c regs.h version.h nasm.h
68 insnsa.$(OBJ): insnsa.c insns.h regs.h version.h nasm.h insnsi.h
69 insnsd.$(OBJ): insnsd.c insns.h regs.h version.h nasm.h insnsi.h
70 insnsn.$(OBJ): insnsn.c
71 labels.$(OBJ): labels.c regs.h version.h nasmlib.h nasm.h
72 listing.$(OBJ): listing.c regs.h version.h nasmlib.h nasm.h listing.h
73 macros.$(OBJ): macros.c
74 names.$(OBJ): names.c regs.c insnsn.c
75 nasm.$(OBJ): nasm.c labels.h preproc.h insns.h parser.h eval.h regs.h \
76 outform.h version.h nasmlib.h nasm.h assemble.h insnsi.h listing.h
77 nasmlib.$(OBJ): nasmlib.c insns.h regs.h regs.c version.h nasmlib.h nasm.h \
78 insnsn.c names.c insnsi.h
79 ndisasm.$(OBJ): ndisasm.c insns.h sync.h regs.h version.h nasmlib.h nasm.h \
81 outform.$(OBJ): outform.c regs.h outform.h version.h nasm.h
82 output/outaout.$(OBJ): output/outaout.c regs.h outform.h version.h nasmlib.h \
84 output/outas86.$(OBJ): output/outas86.c regs.h outform.h version.h nasmlib.h \
86 output/outbin.$(OBJ): output/outbin.c labels.h eval.h regs.h outform.h \
87 version.h nasmlib.h nasm.h
88 output/outcoff.$(OBJ): output/outcoff.c regs.h outform.h version.h nasmlib.h \
90 output/outdbg.$(OBJ): output/outdbg.c regs.h outform.h version.h nasmlib.h \
92 output/outelf.$(OBJ): output/outelf.c regs.h outform.h version.h nasmlib.h \
94 output/outieee.$(OBJ): output/outieee.c regs.h outform.h version.h nasmlib.h \
96 output/outobj.$(OBJ): output/outobj.c regs.h outform.h version.h nasmlib.h \
98 output/outrdf.$(OBJ): output/outrdf.c regs.h outform.h version.h nasmlib.h \
100 output/outrdf2.$(OBJ): output/outrdf2.c rdoff/rdoff.h regs.h outform.h \
101 version.h nasmlib.h nasm.h
102 parser.$(OBJ): parser.c insns.h parser.h float.h regs.h regflags.c version.h \
103 nasmlib.h nasm.h insnsi.h
104 preproc.$(OBJ): preproc.c macros.c regs.h version.h nasmlib.h nasm.h
105 regdis.$(OBJ): regdis.c
106 regflags.$(OBJ): regflags.c
108 regvals.$(OBJ): regvals.c
109 sync.$(OBJ): sync.c sync.h