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 outbin.$(OBJ) outaout.$(OBJ) outcoff.$(OBJ) outelf.$(OBJ) \
27 outobj.$(OBJ) outas86.$(OBJ) outrdf.$(OBJ) outdbg.$(OBJ)
29 NDISASMOBJS = ndisasm.$(OBJ) disasm.$(OBJ) sync.$(OBJ) nasmlib.$(OBJ) \
32 all : nasm$(EXE) ndisasm$(EXE)
34 # We have to have a horrible kludge here to get round the 128 character
36 LINKOBJS = a*.obj f*.obj insnsa.obj l*.obj na*.obj o*.obj p*.obj
37 nasm$(EXE): $(NASMOBJS)
38 cl /Fenasm.exe /F 4000 $(LINKOBJS)
40 ndisasm$(EXE): $(NDISASMOBJS)
41 cl /Fendisasm.exe $(NDISASMOBJS)
43 assemble.$(OBJ): assemble.c nasm.h assemble.h insns.h
44 disasm.$(OBJ): disasm.c nasm.h disasm.h sync.h insns.h names.c
45 float.$(OBJ): float.c nasm.h
46 labels.$(OBJ): labels.c nasm.h nasmlib.h
47 nasm.$(OBJ): nasm.c nasm.h nasmlib.h parser.h assemble.h labels.h outform.h
48 nasmlib.$(OBJ): nasmlib.c nasm.h nasmlib.h
49 ndisasm.$(OBJ): ndisasm.c nasm.h sync.h disasm.h
50 outas86.$(OBJ): outas86.c nasm.h nasmlib.h
51 outaout.$(OBJ): outaout.c nasm.h nasmlib.h
52 outbin.$(OBJ): outbin.c nasm.h nasmlib.h
53 outcoff.$(OBJ): outcoff.c nasm.h nasmlib.h
54 outdbg.$(OBJ): outdbg.c nasm.h nasmlib.h
55 outelf.$(OBJ): outelf.c nasm.h nasmlib.h
56 outobj.$(OBJ): outobj.c nasm.h nasmlib.h
57 outrdf.$(OBJ): outrdf.c nasm.h nasmlib.h
58 outform.$(OBJ): outform.c outform.h nasm.h
59 parser.$(OBJ): parser.c nasm.h nasmlib.h parser.h float.h names.c
60 sync.$(OBJ): sync.c sync.h
62 # Another grotty hack: QC is less likely to run out of memory than
63 # CL proper; and we don't need any optimisation in these modules
64 # since they're just data.
65 insnsa.$(OBJ): insnsa.c nasm.h insns.h
67 insnsd.$(OBJ): insnsd.c nasm.h insns.h