Update dependencies
[nasm.git] / Mkfiles / Makefile.djo
blob61af535514a11b8843bbb5ad510410a61af5844d
1 # host: dos
2 # target: dos 16bit and 32bit
3 # Makefile for the Netwide Assembler
5 # This is a modification (by John Fine) of makefile.dj
7 # It uses the syntax of "Opus Make", which is the make program I prefer.
9 # It builds two targets:
11 # nasm.exe    32-bit built with DJGPP
12 # ndisasm.exe NASM disassembler (DJGPP version)
14 .SUFFIXES:
15 .SUFFIXES: .exe .ol .o .obj .c .dat .pl
17 # The Netwide Assembler is copyright (C) 1996 Simon Tatham and
18 # Julian Hall. All rights reserved. The software is
19 # redistributable under the licence given in the file "Licence"
20 # distributed in the NASM archive.
22 # makefile designed for djgpp 2.xx
23 # djgpp is GNU C compiler ported by mighty DJ Delorie
24 # www.delorie.com and any simtel mirror
26 CC = gcc
27 CFLAGS = -O3
29 .c.o:
30 #       redir -eo $(CC) -g -c -O2 -finline-functions -Wall -ansi -pedantic $*.c >$*.err
31         $(CC) -g -c -O2 -finline-functions -Wall -ansi -pedantic $*.c
33 NASM = nasm.o nasmlib.o float.o insnsa.o assemble.o labels.o \
34        parser.o outform.o output/outbin.o output/outaout.o output/outcoff.o output/outelf.o \
35        output/outobj.o output/outas86.o output/outrdf.o output/outrdf2.o output/outieee.o output/outdbg.o preproc.o listing.o \
36        eval.o
38 NDISASM = ndisasm.o disasm.o sync.o nasmlib.o insnsd.o
40 nasm.exe: $(NASM)
41         $(CC) @<<
42 -s -o $@ $(NASM)
44         djp nasm.exe
46 ndisasm.exe: $(NDISASM)
47         $(CC) @<<
48 -s -o $@ $(NDISASM)
50         djp ndisasm.exe
52 # These four source files are automagically generated from a single
53 # instruction-table file by a Perl script. They're distributed,
54 # though, so it isn't necessary to have Perl just to recompile NASM
55 # from the distribution.
57 insnsa.c insnsd.c insnsi.h insnsn.c: insns.dat insns.pl
58         perl insns.pl insns.dat
60 # These files contains all the standard macros that are derived from
61 # the version number.
62 version.h: version version.pl
63         perl $(srcdir)/version.pl h < $(srcdir)/version > version.h
65 version.mac: version version.pl
66         perl $(srcdir)/version.pl mac < $(srcdir)/version > version.mac
68 # This source file is generated from the standard macros file
69 # `standard.mac' by another Perl script. Again, it's part of the
70 # standard distribution.
72 macros.c: standard.mac macros.pl version.mac
73         perl macros.pl standard.mac version.mac
75 # These source files are generated from regs.dat by yet another
76 # perl script.
77 regs.c: regs.dat regs.pl
78         perl regs.pl c regs.dat > regs.c
79 regflags.c: regs.dat regs.pl
80         perl regs.pl fc regs.dat > regflags.c
81 regdis.c: regs.dat regs.pl
82         perl regs.pl dc regs.dat > regdis.c
83 regvals.c: regs.dat regs.pl
84         perl regs.pl vc regs.dat > regvals.c
85 regs.h: regs.dat regs.pl
86         perl regs.pl h regs.dat > regs.h
88 clean:
89         rm -f *.o nasm ndisasm
91 #-- Magic hints to mkdep.pl --#
92 # @object-ending: ".o"
93 # @path-separator: "/"
94 #-- Everything below is generated by mkdep.pl - do not edit --#
95 assemble.o: assemble.c preproc.h insns.h regs.h version.h nasmlib.h nasm.h \
96  regvals.c insnsi.h assemble.h
97 disasm.o: disasm.c insns.h sync.h regdis.c regs.h regs.c version.h nasm.h \
98  insnsn.c names.c insnsi.h disasm.h
99 eval.o: eval.c labels.h eval.h regs.h version.h nasmlib.h nasm.h
100 float.o: float.c regs.h version.h nasm.h
101 insnsa.o: insnsa.c insns.h regs.h version.h nasm.h insnsi.h
102 insnsd.o: insnsd.c insns.h regs.h version.h nasm.h insnsi.h
103 insnsn.o: insnsn.c
104 labels.o: labels.c regs.h version.h nasmlib.h nasm.h
105 listing.o: listing.c regs.h version.h nasmlib.h nasm.h listing.h
106 macros.o: macros.c
107 names.o: names.c regs.c insnsn.c
108 nasm.o: nasm.c labels.h preproc.h insns.h parser.h eval.h regs.h outform.h \
109  version.h nasmlib.h nasm.h assemble.h insnsi.h listing.h
110 nasmlib.o: nasmlib.c insns.h regs.h regs.c version.h nasmlib.h nasm.h \
111  insnsn.c names.c insnsi.h
112 ndisasm.o: ndisasm.c insns.h sync.h regs.h version.h nasmlib.h nasm.h \
113  insnsi.h disasm.h
114 outform.o: outform.c regs.h outform.h version.h nasm.h
115 output/outaout.o: output/outaout.c regs.h outform.h version.h nasmlib.h \
116  nasm.h
117 output/outas86.o: output/outas86.c regs.h outform.h version.h nasmlib.h \
118  nasm.h
119 output/outbin.o: output/outbin.c labels.h eval.h regs.h outform.h version.h \
120  nasmlib.h nasm.h
121 output/outcoff.o: output/outcoff.c regs.h outform.h version.h nasmlib.h \
122  nasm.h
123 output/outdbg.o: output/outdbg.c regs.h outform.h version.h nasmlib.h nasm.h
124 output/outelf.o: output/outelf.c regs.h outform.h version.h nasmlib.h nasm.h
125 output/outieee.o: output/outieee.c regs.h outform.h version.h nasmlib.h \
126  nasm.h
127 output/outobj.o: output/outobj.c regs.h outform.h version.h nasmlib.h nasm.h
128 output/outrdf.o: output/outrdf.c regs.h outform.h version.h nasmlib.h nasm.h
129 output/outrdf2.o: output/outrdf2.c rdoff/rdoff.h regs.h outform.h version.h \
130  nasmlib.h nasm.h
131 parser.o: parser.c insns.h parser.h float.h regs.h regflags.c version.h \
132  nasmlib.h nasm.h insnsi.h
133 preproc.o: preproc.c macros.c regs.h version.h nasmlib.h nasm.h
134 regdis.o: regdis.c
135 regflags.o: regflags.c
136 regs.o: regs.c
137 regvals.o: regvals.c
138 sync.o: sync.c sync.h