Run "make alldeps"
[nasm/autotest.git] / Mkfiles / Makefile.dj
blobe19b53f140708f2f48f5151851f799c3a5b2e3f5
1 # host: dos
2 # target: dos 32bit
3 # Makefile for the Netwide Assembler
5 # The Netwide Assembler is copyright (C) 1996 Simon Tatham and
6 # Julian Hall. All rights reserved. The software is
7 # redistributable under the licence given in the file "Licence"
8 # distributed in the NASM archive.
10 # makefile designed for djgpp 2.xx
11 # djgpp is GNU C compiler ported by mighty DJ Delorie
12 # www.delorie.com and any simtel mirror
14 # You may need to adjust these values.
16 CC = gcc
17 CFLAGS = -O2 -I.
19 # You _shouldn't_ need to adjust anything below this line.
21 .c.o:
22         $(CC) -c $(CFLAGS) -o $@ $*.c
24 NASM = nasm.o nasmlib.o float.o insnsa.o assemble.o labels.o \
25        parser.o outform.o output/outbin.o output/outaout.o output/outcoff.o output/outelf.o \
26        output/outobj.o output/outas86.o output/outrdf.o output/outdbg.o preproc.o listing.o \
27        eval.o output/outrdf2.o output/outieee.o
29 NDISASM = ndisasm.o disasm.o sync.o nasmlib.o insnsd.o
31 all: nasm.exe ndisasm.exe
33 nasm.exe: $(NASM)
34         $(CC) -o $@ $(NASM)
36 ndisasm.exe: $(NDISASM)
37         $(CC) -o $@ $(NDISASM)
39 # These source files are automagically generated from a single
40 # instruction-table file by a Perl script. They're distributed,
41 # though, so it isn't necessary to have Perl just to recompile NASM
42 # from the distribution.
44 insnsa.c: insns.dat insns.pl
45         perl insns.pl -a insns.dat
46 insnsd.c: insns.dat insns.pl
47         perl insns.pl -d insns.dat
48 insnsi.h: insns.dat insns.pl
49         perl insns.pl -i insns.dat
50 insnsn.c: insns.dat insns.pl
51         perl insns.pl -n insns.dat
53 # These files contains all the standard macros that are derived from
54 # the version number.
55 version.h: version version.pl
56         perl version.pl h < version > version.h
58 version.mac: version version.pl
59         perl version.pl mac < version > version.mac
61 # This source file is generated from the standard macros file
62 # `standard.mac' by another Perl script. Again, it's part of the
63 # standard distribution.
65 macros.c: macros.pl standard.mac version.mac
66         perl macros.pl standard.mac version.mac
68 # These source files are generated from regs.dat by yet another
69 # perl script.
70 regs.c: regs.dat regs.pl
71         perl regs.pl c regs.dat > regs.c
72 regflags.c: regs.dat regs.pl
73         perl regs.pl fc regs.dat > regflags.c
74 regdis.c: regs.dat regs.pl
75         perl regs.pl dc regs.dat > regdis.c
76 regvals.c: regs.dat regs.pl
77         perl regs.pl vc regs.dat > regvals.c
78 regs.h: regs.dat regs.pl
79         perl regs.pl h regs.dat > regs.h
81 clean:
82         rm -f *.o *.exe output/*.o
84 #-- Magic hints to mkdep.pl --#
85 # @object-ending: ".o"
86 # @path-separator: "/"
87 #-- Everything below is generated by mkdep.pl - do not edit --#
88 assemble.o: assemble.c preproc.h insns.h regs.h config.h version.h nasmlib.h \
89  nasm.h regvals.c insnsi.h assemble.h
90 disasm.o: disasm.c insns.h sync.h regdis.c regs.h config.h regs.c version.h \
91  nasm.h insnsn.c names.c insnsi.h disasm.h
92 eval.o: eval.c labels.h eval.h regs.h config.h version.h nasmlib.h nasm.h
93 float.o: float.c regs.h config.h version.h nasm.h
94 insnsa.o: insnsa.c insns.h regs.h config.h version.h nasm.h insnsi.h
95 insnsd.o: insnsd.c insns.h regs.h config.h version.h nasm.h insnsi.h
96 insnsn.o: insnsn.c
97 labels.o: labels.c regs.h config.h version.h nasmlib.h nasm.h
98 listing.o: listing.c regs.h config.h version.h nasmlib.h nasm.h listing.h
99 macros.o: macros.c
100 names.o: names.c regs.c insnsn.c
101 nasm.o: nasm.c labels.h preproc.h insns.h parser.h eval.h regs.h outform.h \
102  config.h version.h nasmlib.h nasm.h assemble.h insnsi.h listing.h
103 nasmlib.o: nasmlib.c insns.h regs.h config.h regs.c version.h nasmlib.h \
104  nasm.h insnsn.c names.c insnsi.h
105 ndisasm.o: ndisasm.c insns.h sync.h regs.h config.h version.h nasmlib.h \
106  nasm.h insnsi.h disasm.h
107 outform.o: outform.c regs.h config.h outform.h version.h nasm.h
108 output/outaout.o: output/outaout.c regs.h outform.h config.h version.h \
109  nasmlib.h nasm.h
110 output/outas86.o: output/outas86.c regs.h outform.h config.h version.h \
111  nasmlib.h nasm.h
112 output/outbin.o: output/outbin.c labels.h eval.h regs.h outform.h config.h \
113  version.h nasmlib.h nasm.h
114 output/outcoff.o: output/outcoff.c regs.h outform.h config.h version.h \
115  nasmlib.h nasm.h
116 output/outdbg.o: output/outdbg.c regs.h outform.h config.h version.h \
117  nasmlib.h nasm.h
118 output/outelf32.o: output/outelf32.c regs.h outform.h config.h version.h \
119  nasmlib.h nasm.h
120 output/outelf64.o: output/outelf64.c regs.h outform.h config.h version.h \
121  nasmlib.h nasm.h
122 output/outieee.o: output/outieee.c regs.h outform.h config.h version.h \
123  nasmlib.h nasm.h
124 output/outmacho.o: output/outmacho.c compiler.h regs.h outform.h config.h \
125  version.h nasmlib.h nasm.h
126 output/outobj.o: output/outobj.c regs.h outform.h config.h version.h \
127  nasmlib.h nasm.h
128 output/outrdf.o: output/outrdf.c regs.h outform.h config.h version.h \
129  nasmlib.h nasm.h
130 output/outrdf2.o: output/outrdf2.c rdoff/rdoff.h regs.h outform.h config.h \
131  version.h nasmlib.h nasm.h
132 parser.o: parser.c insns.h parser.h float.h regs.h regflags.c config.h \
133  version.h nasmlib.h nasm.h insnsi.h
134 preproc.o: preproc.c macros.c regs.h config.h version.h nasmlib.h nasm.h
135 regdis.o: regdis.c
136 regflags.o: regflags.c
137 regs.o: regs.c
138 regvals.o: regvals.c
139 sync.o: sync.c sync.h