Make the perfect hash generator an includable module
[nasm/autotest.git] / Mkfiles / Makefile.dos
blobd4bbd3c8e13aa6261e58230bfea279fab44e3718
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...)
13 CC = cl /c /O /AL /Gt
14 QCL = qcl /c /AL /Gt
15 LINK = cl
16 LINKFLAGS =
17 LIBRARIES =
18 EXE = .exe#
19 OBJ = obj#
21 .c.$(OBJ):
22         $(CC) $*.c
24 NASMOBJS = nasm.$(OBJ) nasmlib.$(OBJ) float.$(OBJ) insnsa.$(OBJ) \
25            assemble.$(OBJ) labels.$(OBJ) parser.$(OBJ) outform.$(OBJ) \
26            output/outbin.$(OBJ) output/outaout.$(OBJ) output/outcoff.$(OBJ) \
27            output/outelf32.$(OBJ) output/outelf64.$(OBJ) \
28            output/outobj.$(OBJ) output/outas86.$(OBJ) output/outrdf.$(OBJ) output/outrdf2.$(OBJ) \
29            output/outieee.$(OBJ) output/outdbg.$(OBJ) preproc.$(OBJ) listing.$(OBJ) \
30            eval.$(OBJ)
32 NDISASMOBJS = ndisasm.$(OBJ) disasm.$(OBJ) sync.$(OBJ) nasmlib.$(OBJ) \
33               insnsd.$(OBJ)
35 all : nasm$(EXE) ndisasm$(EXE)
37 # We have to have a horrible kludge here to get round the 128 character
38 # limit, as usual...
39 LINKOBJS = a*.obj e*.obj f*.obj insnsa.obj l*.obj na*.obj o*.obj p*.obj
40 nasm$(EXE): $(NASMOBJS)
41         cl /Fenasm.exe /F 4000 $(LINKOBJS)
43 ndisasm$(EXE): $(NDISASMOBJS)
44         cl /Fendisasm.exe $(NDISASMOBJS)
46 # Another grotty hack: QC is less likely to run out of memory than
47 # CL proper; and we don't need any optimisation in these modules
48 # since they're just data.
49 insnsa.$(OBJ): insnsa.c nasm.h version.h insnsi.h insns.h
50         $(QCL) insnsa.c
51 insnsd.$(OBJ): insnsd.c nasm.h version.h insnsi.h insns.h
52         $(QCL) insnsd.c
54 clean :
55         del *.obj
56         del nasm$(EXE)
57         del ndisasm$(EXE)
59 #-- Magic hints to mkdep.pl --#
60 # @object-ending: ".$(OBJ)"
61 # @path-separator: "/"
62 #-- Everything below is generated by mkdep.pl - do not edit --#
63 assemble.$(OBJ): assemble.c preproc.h insns.h regs.h regflags.c config.h \
64  version.h nasmlib.h nasm.h regvals.c insnsi.h assemble.h
65 disasm.$(OBJ): disasm.c insns.h sync.h regdis.c regs.h config.h regs.c \
66  version.h nasm.h insnsn.c names.c insnsi.h disasm.h
67 eval.$(OBJ): eval.c labels.h eval.h regs.h config.h version.h nasmlib.h \
68  nasm.h
69 float.$(OBJ): float.c regs.h config.h version.h nasm.h
70 insnsa.$(OBJ): insnsa.c insns.h regs.h config.h version.h nasm.h insnsi.h
71 insnsd.$(OBJ): insnsd.c insns.h regs.h config.h version.h nasm.h insnsi.h
72 insnsn.$(OBJ): insnsn.c
73 labels.$(OBJ): labels.c regs.h config.h version.h nasmlib.h nasm.h
74 listing.$(OBJ): listing.c regs.h config.h version.h nasmlib.h nasm.h \
75  listing.h
76 macros.$(OBJ): macros.c
77 names.$(OBJ): names.c regs.c insnsn.c
78 nasm.$(OBJ): nasm.c labels.h preproc.h insns.h parser.h eval.h regs.h \
79  outform.h config.h version.h nasmlib.h nasm.h assemble.h insnsi.h listing.h
80 nasmlib.$(OBJ): nasmlib.c insns.h regs.h config.h regs.c version.h nasmlib.h \
81  nasm.h insnsn.c names.c insnsi.h
82 ndisasm.$(OBJ): ndisasm.c insns.h sync.h regs.h config.h version.h nasmlib.h \
83  nasm.h insnsi.h disasm.h
84 outform.$(OBJ): outform.c regs.h config.h outform.h version.h nasm.h
85 output/outaout.$(OBJ): output/outaout.c regs.h outform.h config.h version.h \
86  nasmlib.h nasm.h
87 output/outas86.$(OBJ): output/outas86.c regs.h outform.h config.h version.h \
88  nasmlib.h nasm.h
89 output/outbin.$(OBJ): output/outbin.c labels.h eval.h regs.h outform.h \
90  config.h version.h nasmlib.h nasm.h
91 output/outcoff.$(OBJ): output/outcoff.c regs.h outform.h config.h version.h \
92  nasmlib.h nasm.h
93 output/outdbg.$(OBJ): output/outdbg.c regs.h outform.h config.h version.h \
94  nasmlib.h nasm.h
95 output/outelf32.$(OBJ): output/outelf32.c regs.h outform.h config.h \
96  version.h nasmlib.h nasm.h
97 output/outelf64.$(OBJ): output/outelf64.c regs.h outform.h config.h \
98  version.h nasmlib.h nasm.h
99 output/outieee.$(OBJ): output/outieee.c regs.h outform.h config.h version.h \
100  nasmlib.h nasm.h
101 output/outmacho.$(OBJ): output/outmacho.c compiler.h regs.h outform.h \
102  config.h version.h nasmlib.h nasm.h
103 output/outobj.$(OBJ): output/outobj.c regs.h outform.h config.h version.h \
104  nasmlib.h nasm.h
105 output/outrdf.$(OBJ): output/outrdf.c regs.h outform.h config.h version.h \
106  nasmlib.h nasm.h
107 output/outrdf2.$(OBJ): output/outrdf2.c rdoff/rdoff.h regs.h outform.h \
108  config.h version.h nasmlib.h nasm.h
109 parser.$(OBJ): parser.c insns.h parser.h float.h regs.h regflags.c config.h \
110  version.h nasmlib.h nasm.h insnsi.h
111 preproc.$(OBJ): preproc.c macros.c regs.h config.h version.h nasmlib.h \
112  nasm.h
113 regdis.$(OBJ): regdis.c
114 regflags.$(OBJ): regflags.c
115 regs.$(OBJ): regs.c
116 regvals.$(OBJ): regvals.c
117 sync.$(OBJ): sync.c sync.h