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) \
25 output/outelf32.$(OBJ) output/outelf64.$(OBJ) \
26 output/outobj.$(OBJ) output/outas86.$(OBJ) output/outrdf.$(OBJ) output/outrdf2.$(OBJ) output/outdbg.$(OBJ) \
27 preproc.$(OBJ) listing.$(OBJ) output/outieee.$(OBJ)
29 all : nasm.exe ndisasm.exe
31 # We have to have a horrible kludge here to get round the 128 character
33 LINKOBJS = a*.obj e*.obj f*.obj insnsa.obj l*.obj na*.obj o*.obj p*.obj z*.obj
35 $(LINK) \cc386\lib\c0dos $(LINKOBJS:.obj=),nasm,nasm,\cc386\lib\cldos
37 ndisasm.exe: $(NDISASMOBJS)
38 $(LINK) \cc386\lib\c0dos.obj $(NDISASMOBJS:.obj=),ndisasm,ndisasm,\cc386\lib\cldos
46 #-- Magic hints to mkdep.pl --#
47 # @object-ending: ".$(OBJ)"
48 # @path-separator: "/"
49 #-- Everything below is generated by mkdep.pl - do not edit --#
50 assemble.$(OBJ): assemble.c preproc.h insns.h regs.h regflags.c config.h \
51 version.h nasmlib.h nasm.h regvals.c insnsi.h assemble.h
52 disasm.$(OBJ): disasm.c insns.h sync.h regdis.c regs.h config.h regs.c \
53 version.h nasm.h insnsn.c names.c insnsi.h disasm.h
54 eval.$(OBJ): eval.c labels.h eval.h regs.h config.h version.h nasmlib.h \
56 float.$(OBJ): float.c regs.h config.h version.h nasm.h
57 insnsa.$(OBJ): insnsa.c insns.h regs.h config.h version.h nasm.h insnsi.h
58 insnsd.$(OBJ): insnsd.c insns.h regs.h config.h version.h nasm.h insnsi.h
59 insnsn.$(OBJ): insnsn.c
60 labels.$(OBJ): labels.c regs.h config.h version.h nasmlib.h nasm.h
61 listing.$(OBJ): listing.c regs.h config.h version.h nasmlib.h nasm.h \
63 macros.$(OBJ): macros.c
64 names.$(OBJ): names.c regs.c insnsn.c
65 nasm.$(OBJ): nasm.c labels.h preproc.h insns.h parser.h eval.h regs.h \
66 outform.h config.h version.h nasmlib.h nasm.h stdscan.h assemble.h insnsi.h \
68 nasmlib.$(OBJ): nasmlib.c insns.h regs.h config.h regs.c version.h nasmlib.h \
69 nasm.h insnsn.c names.c insnsi.h
70 ndisasm.$(OBJ): ndisasm.c insns.h sync.h regs.h config.h version.h nasmlib.h \
71 nasm.h insnsi.h disasm.h
72 outform.$(OBJ): outform.c regs.h config.h outform.h version.h nasm.h
73 output/outaout.$(OBJ): output/outaout.c regs.h outform.h config.h version.h \
74 nasmlib.h nasm.h stdscan.h
75 output/outas86.$(OBJ): output/outas86.c regs.h outform.h config.h version.h \
77 output/outbin.$(OBJ): output/outbin.c labels.h eval.h regs.h outform.h \
78 config.h version.h nasmlib.h nasm.h stdscan.h
79 output/outcoff.$(OBJ): output/outcoff.c regs.h outform.h config.h version.h \
81 output/outdbg.$(OBJ): output/outdbg.c regs.h outform.h config.h version.h \
83 output/outelf32.$(OBJ): output/outelf32.c regs.h outform.h config.h \
84 version.h nasmlib.h nasm.h stdscan.h
85 output/outelf64.$(OBJ): output/outelf64.c regs.h outform.h config.h \
86 version.h nasmlib.h nasm.h stdscan.h
87 output/outieee.$(OBJ): output/outieee.c regs.h outform.h config.h version.h \
89 output/outmacho.$(OBJ): output/outmacho.c compiler.h regs.h outform.h \
90 config.h version.h nasmlib.h nasm.h
91 output/outobj.$(OBJ): output/outobj.c regs.h outform.h config.h version.h \
92 nasmlib.h nasm.h stdscan.h
93 output/outrdf.$(OBJ): output/outrdf.c regs.h outform.h config.h version.h \
95 output/outrdf2.$(OBJ): output/outrdf2.c rdoff/rdoff.h regs.h outform.h \
96 config.h version.h nasmlib.h nasm.h
97 parser.$(OBJ): parser.c insns.h parser.h float.h regs.h regflags.c config.h \
98 version.h nasmlib.h nasm.h stdscan.h insnsi.h
99 preproc.$(OBJ): preproc.c macros.c regs.h config.h version.h nasmlib.h \
101 regdis.$(OBJ): regdis.c
102 regflags.$(OBJ): regflags.c
104 regvals.$(OBJ): regvals.c
105 stdscan.$(OBJ): stdscan.c insns.h regs.h config.h version.h nasmlib.h nasm.h \
107 sync.$(OBJ): sync.c sync.h
108 tokhash.$(OBJ): tokhash.c insns.h regs.h config.h version.h nasm.h insnsi.h