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