NASM 0.98.09
[nasm.git] / Mkfiles / Makefile.dl
blobdb53e57b403a9bca86c53a0e4999e4056a27adf4
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 David Lindauer's
9 # cc386
11 CC = cc386 /C+N
12 LINK = valx -case -use32 -map
13 LINKFLAGS =
14 LIBRARIES =
15 OBJ = obj
17 .c.obj:
18         $(CC) $&
19         &nasm -fobj $&.ASM
21 NDISASMOBJS = ndisasm.$(OBJ) disasm.$(OBJ) sync.$(OBJ) nasmlib.$(OBJ) \
22               insnsd.$(OBJ)
24 NASMOBJS = nasm.$(OBJ) nasmlib.$(OBJ) eval.$(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) outrdf2.$(OBJ) outdbg.$(OBJ) \
28            preproc.$(OBJ) listing.$(OBJ) zoutieee.$(OBJ)
30 all : nasm.exe ndisasm.exe
32 # We have to have a horrible kludge here to get round the 128 character
33 # limit, as usual...
34 LINKOBJS = a*.obj e*.obj f*.obj insnsa.obj l*.obj na*.obj o*.obj p*.obj z*.obj
35 nasm.exe: $(NASMOBJS)
36         $(LINK) \cc386\lib\c0dos $(LINKOBJS:.obj=),nasm,nasm,\cc386\lib\cldos
38 ndisasm.exe: $(NDISASMOBJS)
39         $(LINK) \cc386\lib\c0dos.obj $(NDISASMOBJS:.obj=),ndisasm,ndisasm,\cc386\lib\cldos
41 clean :
42         del *.asm
43         del *.obj
44         del *.map
45         del *.exe