attempt to make static makefiles aware of outelf32/outelf64
[nasm.git] / Mkfiles / Makefile.dj
blob61b1cdd5c25492ce06a57e346bdb849b267c774c
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 \
26        output/outelf32.o output/outelf64.o \
27        output/outobj.o output/outas86.o output/outrdf.o output/outdbg.o preproc.o listing.o \
28        eval.o output/outrdf2.o output/outieee.o
30 NDISASM = ndisasm.o disasm.o sync.o nasmlib.o insnsd.o
32 all: nasm.exe ndisasm.exe
34 nasm.exe: $(NASM)
35         $(CC) -o $@ $(NASM)
37 ndisasm.exe: $(NDISASM)
38         $(CC) -o $@ $(NDISASM)
40 # These source files are automagically generated from a single
41 # instruction-table file by a Perl script. They're distributed,
42 # though, so it isn't necessary to have Perl just to recompile NASM
43 # from the distribution.
45 insnsa.c: insns.dat insns.pl
46         perl insns.pl -a insns.dat
47 insnsd.c: insns.dat insns.pl
48         perl insns.pl -d insns.dat
49 insnsi.h: insns.dat insns.pl
50         perl insns.pl -i insns.dat
51 insnsn.c: insns.dat insns.pl
52         perl insns.pl -n insns.dat
54 # These files contains all the standard macros that are derived from
55 # the version number.
56 version.h: version version.pl
57         perl version.pl h < version > version.h
59 version.mac: version version.pl
60         perl version.pl mac < version > version.mac
62 # This source file is generated from the standard macros file
63 # `standard.mac' by another Perl script. Again, it's part of the
64 # standard distribution.
66 macros.c: macros.pl standard.mac version.mac
67         perl macros.pl standard.mac version.mac
69 # These source files are generated from regs.dat by yet another
70 # perl script.
71 regs.c: regs.dat regs.pl
72         perl regs.pl c regs.dat > regs.c
73 regflags.c: regs.dat regs.pl
74         perl regs.pl fc regs.dat > regflags.c
75 regdis.c: regs.dat regs.pl
76         perl regs.pl dc regs.dat > regdis.c
77 regvals.c: regs.dat regs.pl
78         perl regs.pl vc regs.dat > regvals.c
79 regs.h: regs.dat regs.pl
80         perl regs.pl h regs.dat > regs.h
82 clean:
83         rm -f *.o *.exe output/*.o
85 #-- Magic hints to mkdep.pl --#
86 # @object-ending: ".o"
87 # @path-separator: "/"
88 #-- Everything below is generated by mkdep.pl - do not edit --#
89 assemble.o: assemble.c preproc.h insns.h regs.h regflags.c config.h \
90  version.h nasmlib.h nasm.h regvals.c insnsi.h assemble.h
91 disasm.o: disasm.c insns.h sync.h regdis.c regs.h config.h regs.c version.h \
92  nasm.h insnsn.c names.c insnsi.h disasm.h
93 eval.o: eval.c labels.h eval.h regs.h config.h version.h nasmlib.h nasm.h
94 float.o: float.c regs.h config.h version.h nasm.h
95 insnsa.o: insnsa.c insns.h regs.h config.h version.h nasm.h insnsi.h
96 insnsd.o: insnsd.c insns.h regs.h config.h version.h nasm.h insnsi.h
97 insnsn.o: insnsn.c
98 labels.o: labels.c regs.h config.h version.h nasmlib.h nasm.h
99 listing.o: listing.c regs.h config.h version.h nasmlib.h nasm.h listing.h
100 macros.o: macros.c
101 names.o: names.c regs.c insnsn.c
102 nasm.o: nasm.c labels.h preproc.h insns.h parser.h eval.h regs.h outform.h \
103  config.h version.h nasmlib.h nasm.h assemble.h insnsi.h listing.h
104 nasmlib.o: nasmlib.c insns.h regs.h config.h regs.c version.h nasmlib.h \
105  nasm.h insnsn.c names.c insnsi.h
106 ndisasm.o: ndisasm.c insns.h sync.h regs.h config.h version.h nasmlib.h \
107  nasm.h insnsi.h disasm.h
108 outform.o: outform.c regs.h config.h outform.h version.h nasm.h
109 output/outaout.o: output/outaout.c regs.h outform.h config.h version.h \
110  nasmlib.h nasm.h
111 output/outas86.o: output/outas86.c regs.h outform.h config.h version.h \
112  nasmlib.h nasm.h
113 output/outbin.o: output/outbin.c labels.h eval.h regs.h outform.h config.h \
114  version.h nasmlib.h nasm.h
115 output/outcoff.o: output/outcoff.c regs.h outform.h config.h version.h \
116  nasmlib.h nasm.h
117 output/outdbg.o: output/outdbg.c regs.h outform.h config.h version.h \
118  nasmlib.h nasm.h
119 output/outelf32.o: output/outelf32.c regs.h outform.h config.h version.h \
120  nasmlib.h nasm.h
121 output/outelf64.o: output/outelf64.c regs.h outform.h config.h version.h \
122  nasmlib.h nasm.h
123 output/outieee.o: output/outieee.c regs.h outform.h config.h version.h \
124  nasmlib.h nasm.h
125 output/outmacho.o: output/outmacho.c compiler.h regs.h outform.h config.h \
126  version.h nasmlib.h nasm.h
127 output/outobj.o: output/outobj.c regs.h outform.h config.h version.h \
128  nasmlib.h nasm.h
129 output/outrdf.o: output/outrdf.c regs.h outform.h config.h version.h \
130  nasmlib.h nasm.h
131 output/outrdf2.o: output/outrdf2.c rdoff/rdoff.h regs.h outform.h config.h \
132  version.h nasmlib.h nasm.h
133 parser.o: parser.c insns.h parser.h float.h regs.h regflags.c config.h \
134  version.h nasmlib.h nasm.h insnsi.h
135 preproc.o: preproc.c macros.c regs.h config.h version.h nasmlib.h nasm.h
136 regdis.o: regdis.c
137 regflags.o: regflags.c
138 regs.o: regs.c
139 regvals.o: regvals.c
140 sync.o: sync.c sync.h