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 insns.h assemble.h regvals.c nasm.h regs.h \
50 insnsi.h nasmlib.h version.h
51 disasm.$(OBJ): disasm.c insns.h regs.c sync.h names.c nasm.h disasm.h regs.h \
52 insnsn.c insnsi.h version.h regdis.c
53 eval.$(OBJ): eval.c nasm.h regs.h labels.h nasmlib.h version.h eval.h
54 float.$(OBJ): float.c nasm.h regs.h version.h
55 insnsa.$(OBJ): insnsa.c insns.h nasm.h regs.h insnsi.h version.h
56 insnsd.$(OBJ): insnsd.c insns.h nasm.h regs.h insnsi.h version.h
57 insnsn.$(OBJ): insnsn.c
58 labels.$(OBJ): labels.c nasm.h regs.h nasmlib.h version.h
59 listing.$(OBJ): listing.c listing.h nasm.h regs.h nasmlib.h version.h
60 macros.$(OBJ): macros.c
61 names.$(OBJ): names.c regs.c insnsn.c
62 nasm.$(OBJ): nasm.c listing.h preproc.h insns.h outform.h assemble.h \
63 parser.h nasm.h regs.h labels.h insnsi.h nasmlib.h version.h eval.h
64 nasmlib.$(OBJ): nasmlib.c insns.h regs.c names.c nasm.h regs.h insnsn.c \
65 insnsi.h nasmlib.h version.h
66 ndisasm.$(OBJ): ndisasm.c insns.h sync.h nasm.h disasm.h regs.h insnsi.h \
68 outform.$(OBJ): outform.c outform.h nasm.h regs.h version.h
69 output/outaout.$(OBJ): output/outaout.c outform.h nasm.h regs.h nasmlib.h \
71 output/outas86.$(OBJ): output/outas86.c outform.h nasm.h regs.h nasmlib.h \
73 output/outbin.$(OBJ): output/outbin.c outform.h nasm.h regs.h nasmlib.h \
75 output/outcoff.$(OBJ): output/outcoff.c outform.h nasm.h regs.h nasmlib.h \
77 output/outdbg.$(OBJ): output/outdbg.c outform.h nasm.h regs.h nasmlib.h \
79 output/outelf.$(OBJ): output/outelf.c outform.h nasm.h regs.h nasmlib.h \
81 output/outieee.$(OBJ): output/outieee.c outform.h nasm.h regs.h nasmlib.h \
83 output/outobj.$(OBJ): output/outobj.c outform.h nasm.h regs.h nasmlib.h \
85 output/outrdf.$(OBJ): output/outrdf.c outform.h nasm.h regs.h nasmlib.h \
87 output/outrdf2.$(OBJ): output/outrdf2.c outform.h nasm.h regs.h nasmlib.h \
89 parser.$(OBJ): parser.c insns.h parser.h nasm.h regs.h insnsi.h regflags.c \
90 float.h nasmlib.h version.h
91 preproc.$(OBJ): preproc.c nasm.h macros.c regs.h nasmlib.h version.h
92 regdis.$(OBJ): regdis.c
93 regflags.$(OBJ): regflags.c
95 regvals.$(OBJ): regvals.c
96 sync.$(OBJ): sync.c sync.h