*** empty log message ***
[platform/upstream/nasm.git] / Mkfiles / Makefile.dl
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.
5 #
6 # This Makefile is designed to build NASM using David Lindauer's
7 # cc386
8
9 CC = cc386 /C+N
10 LINK = valx -case -use32 -map
11 LINKFLAGS =
12 LIBRARIES =
13 OBJ = obj
14
15 .c.obj:
16         $(CC) $&
17         &nasm -fobj $&.ASM
18
19 NDISASMOBJS = ndisasm.$(OBJ) disasm.$(OBJ) sync.$(OBJ) nasmlib.$(OBJ) \
20               insnsd.$(OBJ)
21
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)
27
28 all : nasm.exe ndisasm.exe
29
30 # We have to have a horrible kludge here to get round the 128 character
31 # limit, as usual...
32 LINKOBJS = a*.obj e*.obj f*.obj insnsa.obj l*.obj na*.obj o*.obj p*.obj z*.obj
33 nasm.exe: $(NASMOBJS)
34         $(LINK) \cc386\lib\c0dos $(LINKOBJS:.obj=),nasm,nasm,\cc386\lib\cldos
35
36 ndisasm.exe: $(NDISASMOBJS)
37         $(LINK) \cc386\lib\c0dos.obj $(NDISASMOBJS:.obj=),ndisasm,ndisasm,\cc386\lib\cldos
38
39 clean :
40         del *.asm
41         del *.obj
42         del *.map
43         del *.exe
44