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) \
27 output/outelf32.$(OBJ) output/outelf64.$(OBJ) \
28 output/outobj.$(OBJ) output/outas86.$(OBJ) output/outrdf.$(OBJ) output/outrdf2.$(OBJ) \
29 output/outieee.$(OBJ) output/outdbg.$(OBJ) preproc.$(OBJ) listing.$(OBJ) \
32 NDISASMOBJS = ndisasm.$(OBJ) disasm.$(OBJ) sync.$(OBJ) nasmlib.$(OBJ) \
35 all : nasm$(EXE) ndisasm$(EXE)
37 # We have to have a horrible kludge here to get round the 128 character
39 LINKOBJS = a*.obj e*.obj f*.obj insnsa.obj l*.obj na*.obj o*.obj p*.obj
40 nasm$(EXE): $(NASMOBJS)
41 cl /Fenasm.exe /F 4000 $(LINKOBJS)
43 ndisasm$(EXE): $(NDISASMOBJS)
44 cl /Fendisasm.exe $(NDISASMOBJS)
46 # Another grotty hack: QC is less likely to run out of memory than
47 # CL proper; and we don't need any optimisation in these modules
48 # since they're just data.
49 insnsa.$(OBJ): insnsa.c nasm.h version.h insnsi.h insns.h
51 insnsd.$(OBJ): insnsd.c nasm.h version.h insnsi.h insns.h
59 #-- Magic hints to mkdep.pl --#
60 # @object-ending: ".$(OBJ)"
61 # @path-separator: "/"
62 #-- Everything below is generated by mkdep.pl - do not edit --#
63 assemble.$(OBJ): assemble.c preproc.h insns.h regs.h regflags.c config.h \
64 version.h nasmlib.h nasm.h regvals.c insnsi.h assemble.h
65 disasm.$(OBJ): disasm.c insns.h sync.h regdis.c regs.h config.h regs.c \
66 version.h nasm.h insnsn.c names.c insnsi.h disasm.h
67 eval.$(OBJ): eval.c labels.h eval.h regs.h config.h version.h nasmlib.h \
69 float.$(OBJ): float.c regs.h config.h version.h nasm.h
70 insnsa.$(OBJ): insnsa.c insns.h regs.h config.h version.h nasm.h insnsi.h
71 insnsd.$(OBJ): insnsd.c insns.h regs.h config.h version.h nasm.h insnsi.h
72 insnsn.$(OBJ): insnsn.c
73 labels.$(OBJ): labels.c regs.h config.h version.h nasmlib.h nasm.h
74 listing.$(OBJ): listing.c regs.h config.h version.h nasmlib.h nasm.h \
76 macros.$(OBJ): macros.c
77 names.$(OBJ): names.c regs.c insnsn.c
78 nasm.$(OBJ): nasm.c labels.h preproc.h insns.h parser.h eval.h regs.h \
79 outform.h config.h version.h nasmlib.h nasm.h stdscan.h assemble.h insnsi.h \
81 nasmlib.$(OBJ): nasmlib.c insns.h regs.h config.h regs.c version.h nasmlib.h \
82 nasm.h insnsn.c names.c insnsi.h
83 ndisasm.$(OBJ): ndisasm.c insns.h sync.h regs.h config.h version.h nasmlib.h \
84 nasm.h insnsi.h disasm.h
85 outform.$(OBJ): outform.c regs.h config.h outform.h version.h nasm.h
86 output/outaout.$(OBJ): output/outaout.c regs.h outform.h config.h version.h \
87 nasmlib.h nasm.h stdscan.h
88 output/outas86.$(OBJ): output/outas86.c regs.h outform.h config.h version.h \
90 output/outbin.$(OBJ): output/outbin.c labels.h eval.h regs.h outform.h \
91 config.h version.h nasmlib.h nasm.h stdscan.h
92 output/outcoff.$(OBJ): output/outcoff.c regs.h outform.h config.h version.h \
94 output/outdbg.$(OBJ): output/outdbg.c regs.h outform.h config.h version.h \
96 output/outelf32.$(OBJ): output/outelf32.c regs.h outform.h config.h \
97 version.h nasmlib.h nasm.h stdscan.h
98 output/outelf64.$(OBJ): output/outelf64.c regs.h outform.h config.h \
99 version.h nasmlib.h nasm.h stdscan.h
100 output/outieee.$(OBJ): output/outieee.c regs.h outform.h config.h version.h \
102 output/outmacho.$(OBJ): output/outmacho.c compiler.h regs.h outform.h \
103 config.h version.h nasmlib.h nasm.h
104 output/outobj.$(OBJ): output/outobj.c regs.h outform.h config.h version.h \
105 nasmlib.h nasm.h stdscan.h
106 output/outrdf.$(OBJ): output/outrdf.c regs.h outform.h config.h version.h \
108 output/outrdf2.$(OBJ): output/outrdf2.c rdoff/rdoff.h regs.h outform.h \
109 config.h version.h nasmlib.h nasm.h
110 parser.$(OBJ): parser.c insns.h parser.h float.h regs.h regflags.c config.h \
111 version.h nasmlib.h nasm.h stdscan.h insnsi.h
112 preproc.$(OBJ): preproc.c macros.c regs.h config.h version.h nasmlib.h \
114 regdis.$(OBJ): regdis.c
115 regflags.$(OBJ): regflags.c
117 regvals.$(OBJ): regvals.c
118 stdscan.$(OBJ): stdscan.c insns.h regs.h config.h version.h nasmlib.h nasm.h \
120 sync.$(OBJ): sync.c sync.h
121 tokhash.$(OBJ): tokhash.c insns.h regs.h config.h version.h nasm.h insnsi.h