1 # The Netwide Assembler is copyright (C) 1996 Simon Tatham and
2 # Julian Hall. All rights reserved. The software is
3 # redistributable under the licence given in the file "Licence"
4 # distributed in the NASM archive.
6 # This Makefile is designed to build NASM using David Lindauer's
10 LINK = valx -case -use32 -map
19 NDISASMOBJS = ndisasm.$(OBJ) disasm.$(OBJ) sync.$(OBJ) nasmlib.$(OBJ) \
22 NASMOBJS = nasm.$(OBJ) nasmlib.$(OBJ) eval.$(OBJ) float.$(OBJ) insnsa.$(OBJ) \
23 assemble.$(OBJ) labels.$(OBJ) parser.$(OBJ) outform.$(OBJ) \
24 output/outbin.$(OBJ) output/outaout.$(OBJ) output/outcoff.$(OBJ) output/outelf.$(OBJ) \
25 output/outobj.$(OBJ) output/outas86.$(OBJ) output/outrdf.$(OBJ) output/outrdf2.$(OBJ) output/outdbg.$(OBJ) \
26 preproc.$(OBJ) listing.$(OBJ) output/outieee.$(OBJ)
28 all : nasm.exe ndisasm.exe
30 # We have to have a horrible kludge here to get round the 128 character
32 LINKOBJS = a*.obj e*.obj f*.obj insnsa.obj l*.obj na*.obj o*.obj p*.obj z*.obj
34 $(LINK) \cc386\lib\c0dos $(LINKOBJS:.obj=),nasm,nasm,\cc386\lib\cldos
36 ndisasm.exe: $(NDISASMOBJS)
37 $(LINK) \cc386\lib\c0dos.obj $(NDISASMOBJS:.obj=),ndisasm,ndisasm,\cc386\lib\cldos
45 #-- Magic hints to mkdep.pl --#
46 # @object-ending: ".$(OBJ)"
47 # @path-separator: "/"
48 #-- Everything below is generated by mkdep.pl - do not edit --#
49 assemble.$(OBJ): assemble.c preproc.h insns.h regs.h version.h nasmlib.h \
50 nasm.h regvals.c insnsi.h assemble.h
51 disasm.$(OBJ): disasm.c insns.h sync.h regdis.c regs.h regs.c version.h \
52 nasm.h insnsn.c names.c insnsi.h disasm.h
53 eval.$(OBJ): eval.c labels.h eval.h regs.h version.h nasmlib.h nasm.h
54 float.$(OBJ): float.c regs.h version.h nasm.h
55 insnsa.$(OBJ): insnsa.c insns.h regs.h version.h nasm.h insnsi.h
56 insnsd.$(OBJ): insnsd.c insns.h regs.h version.h nasm.h insnsi.h
57 insnsn.$(OBJ): insnsn.c
58 labels.$(OBJ): labels.c regs.h version.h nasmlib.h nasm.h
59 listing.$(OBJ): listing.c regs.h version.h nasmlib.h nasm.h listing.h
60 macros.$(OBJ): macros.c
61 names.$(OBJ): names.c regs.c insnsn.c
62 nasm.$(OBJ): nasm.c labels.h preproc.h insns.h parser.h eval.h regs.h \
63 outform.h version.h nasmlib.h nasm.h assemble.h insnsi.h listing.h
64 nasmlib.$(OBJ): nasmlib.c insns.h regs.h regs.c version.h nasmlib.h nasm.h \
65 insnsn.c names.c insnsi.h
66 ndisasm.$(OBJ): ndisasm.c insns.h sync.h regs.h version.h nasmlib.h nasm.h \
68 outform.$(OBJ): outform.c regs.h outform.h version.h nasm.h
69 output/outaout.$(OBJ): output/outaout.c regs.h outform.h version.h nasmlib.h \
71 output/outas86.$(OBJ): output/outas86.c regs.h outform.h version.h nasmlib.h \
73 output/outbin.$(OBJ): output/outbin.c labels.h eval.h regs.h outform.h \
74 version.h nasmlib.h nasm.h
75 output/outcoff.$(OBJ): output/outcoff.c regs.h outform.h version.h nasmlib.h \
77 output/outdbg.$(OBJ): output/outdbg.c regs.h outform.h version.h nasmlib.h \
79 output/outelf.$(OBJ): output/outelf.c regs.h outform.h version.h nasmlib.h \
81 output/outieee.$(OBJ): output/outieee.c regs.h outform.h version.h nasmlib.h \
83 output/outobj.$(OBJ): output/outobj.c regs.h outform.h version.h nasmlib.h \
85 output/outrdf.$(OBJ): output/outrdf.c regs.h outform.h version.h nasmlib.h \
87 output/outrdf2.$(OBJ): output/outrdf2.c rdoff/rdoff.h regs.h outform.h \
88 version.h nasmlib.h nasm.h
89 parser.$(OBJ): parser.c insns.h parser.h float.h regs.h regflags.c version.h \
90 nasmlib.h nasm.h insnsi.h
91 preproc.$(OBJ): preproc.c macros.c regs.h version.h nasmlib.h nasm.h
92 regdis.$(OBJ): regdis.c
93 regflags.$(OBJ): regflags.c
95 regvals.$(OBJ): regvals.c
96 sync.$(OBJ): sync.c sync.h