1 # Static Dev-Cpp/MinGW makefile for the Netwide Assembler.
\r
3 # The Netwide Assembler is copyright (C) 1996 Simon Tatham and
\r
4 # Julian Hall. All rights reserved. The software is
\r
5 # redistributable under the GNU Lesser General Public License.
\r
7 # You may need to adjust these values.
\r
10 WINDRES = windres.exe
\r
12 LIBS = -L"C:/Dev-Cpp/lib"
\r
13 INCS = -I"C:/Dev-Cpp/include"
\r
14 CXXINCS = -I"C:/Dev-Cpp/lib/gcc/mingw32/3.4.2/include" -I"C:/Dev-Cpp/include/c++/3.4.2/backward" -I"C:/Dev-Cpp/include/c++/3.4.2/mingw32" -I"C:/Dev-Cpp/include/c++/3.4.2" -I"C:/Dev-Cpp/include"
\r
18 # You _shouldn't_ need to adjust anything below this line.
\r
21 NDISASMEXE = ndisasmw.exe
\r
22 CXXFLAGS = $(CXXINCS)
\r
23 CFLAGS = $(INCS) -I. -O2
\r
26 $(CC) $(CFLAGS) -o $@ -c $<
\r
28 NASM = nasm.o nasmlib.o float.o insnsa.o assemble.o labels.o \
\r
29 parser.o outform.o output/outbin.o output/outaout.o \
\r
30 output/outcoff.o output/outelf32.o output/outelf64.o \
\r
31 output/outobj.o output/outas86.o output/outdbg.o preproc.o listing.o \
\r
32 eval.o output/outrdf2.o output/outieee.o output/outmacho.o
\r
34 NDISASM = ndisasm.o disasm.o sync.o nasmlib.o insnsd.o
\r
38 all: $(NASMEXE) $(NDISASMEXE)
\r
41 $(CC) -o $(NASMEXE) $(NASM)
\r
43 $(NDISASMEXE): $(NDISASM)
\r
44 $(CC) -o $(NDISASMEXE) $(NDISASM)
\r
46 # These files contains all the standard macros that are derived from
\r
47 # the version number.
\r
48 version.h: version version.pl
\r
49 $(PERL) version.pl h < version > version.h
\r
51 version.mac: version version.pl
\r
52 $(PERL) version.pl mac < version > version.mac
\r
54 # This source file is generated from the standard macros file
\r
55 # `standard.mac' by another Perl script. Again, it's part of the
\r
56 # standard distribution.
\r
58 macros.c: macros.pl standard.mac version.mac
\r
59 $(PERL) macros.pl standard.mac version.mac
\r
61 insnsa.c: insns.pl insns.dat
\r
62 $(PERL) insns.pl -a insns.dat
\r
64 insnsd.c: insns.pl insns.dat
\r
65 $(PERL) insns.pl -d insns.dat
\r
67 insnsi.h: insns.pl insns.dat
\r
68 $(PERL) insns.pl -i insns.dat
\r
70 insnsn.c: insns.pl insns.dat
\r
71 $(PERL) insns.pl -n insns.dat
\r
73 # These source files are generated from regs.dat by yet another
\r
75 regs.c: regs.dat regs.pl
\r
76 $(PERL) regs.pl c regs.dat > regs.c
\r
77 regflags.c: regs.dat regs.pl
\r
78 $(PERL) regs.pl fc regs.dat > regflags.c
\r
79 regdis.c: regs.dat regs.pl
\r
80 $(PERL) regs.pl dc regs.dat > regdis.c
\r
81 regvals.c: regs.dat regs.pl
\r
82 $(PERL) regs.pl vc regs.dat > regvals.c
\r
83 regs.h: regs.dat regs.pl
\r
84 $(PERL) regs.pl h regs.dat > regs.h
\r
86 # This target generates all files that require perl.
\r
87 # This allows easier generation of distribution (see dist target).
\r
88 PERLREQ = macros.c insnsa.c insnsd.c insnsi.h insnsn.c \
\r
89 regs.c regs.h regflags.c regdis.c regvals.c \
\r
90 version.h version.mac
\r
93 install: $(NASMEXE) $(NDISASMEXE)
\r
94 $(INSTALL_PROGRAM) nasm $(bindir)/nasm
\r
95 $(INSTALL_PROGRAM) ndisasm $(bindir)/ndisasm
\r
96 $(INSTALL_DATA) nasm.1 $(mandir)/man1/nasm.1
\r
97 $(INSTALL_DATA) ndisasm.1 $(mandir)/man1/ndisasm.1
\r
100 -$(RM) $(NASM) $(NDISASM) $(PERLREQ)
\r
105 rdf_install install_rdf:
\r
106 $(MAKE) -C rdoff install
\r
108 #-- Magic hints to mkdep.pl --#
\r
109 # @object-ending: ".o"
\r
110 # @path-separator: "/"
\r
111 #-- Everything below is generated by mkdep.pl - do not edit --#
\r
112 assemble.o: assemble.c preproc.h insns.h regs.h version.h nasmlib.h nasm.h \
\r
113 regvals.c insnsi.h assemble.h
\r
114 disasm.o: disasm.c insns.h sync.h regdis.c regs.h regs.c version.h nasm.h \
\r
115 insnsn.c names.c insnsi.h disasm.h
\r
116 eval.o: eval.c labels.h eval.h regs.h version.h nasmlib.h nasm.h
\r
117 float.o: float.c regs.h version.h nasm.h
\r
118 insnsa.o: insnsa.c insns.h regs.h version.h nasm.h insnsi.h
\r
119 insnsd.o: insnsd.c insns.h regs.h version.h nasm.h insnsi.h
\r
121 labels.o: labels.c regs.h version.h nasmlib.h nasm.h
\r
122 listing.o: listing.c regs.h version.h nasmlib.h nasm.h listing.h
\r
124 names.o: names.c regs.c insnsn.c
\r
125 nasm.o: nasm.c labels.h preproc.h insns.h parser.h eval.h regs.h outform.h \
\r
126 version.h nasmlib.h nasm.h assemble.h insnsi.h listing.h
\r
127 nasmlib.o: nasmlib.c insns.h regs.h regs.c version.h nasmlib.h nasm.h \
\r
128 insnsn.c names.c insnsi.h
\r
129 ndisasm.o: ndisasm.c insns.h sync.h regs.h version.h nasmlib.h nasm.h \
\r
131 outform.o: outform.c regs.h outform.h version.h nasm.h
\r
132 output/outaout.o: output/outaout.c regs.h outform.h version.h nasmlib.h \
\r
134 output/outas86.o: output/outas86.c regs.h outform.h version.h nasmlib.h \
\r
136 output/outbin.o: output/outbin.c labels.h eval.h regs.h outform.h version.h \
\r
138 output/outcoff.o: output/outcoff.c regs.h outform.h version.h nasmlib.h \
\r
140 output/outdbg.o: output/outdbg.c regs.h outform.h version.h nasmlib.h nasm.h
\r
141 output/outelf32.o: output/outelf32.c regs.h outform.h version.h nasmlib.h nasm.h
\r
142 output/outelf64.o: output/outelf64.c regs.h outform.h version.h nasmlib.h nasm.h
\r
143 output/outieee.o: output/outieee.c regs.h outform.h version.h nasmlib.h \
\r
145 output/outmacho.o: output/outmacho.c regs.h outform.h version.h nasmlib.h \
\r
147 output/outobj.o: output/outobj.c regs.h outform.h version.h nasmlib.h nasm.h
\r
148 output/outrdf.o: output/outrdf.c regs.h outform.h version.h nasmlib.h nasm.h
\r
149 output/outrdf2.o: output/outrdf2.c rdoff/rdoff.h regs.h outform.h version.h \
\r
151 parser.o: parser.c insns.h parser.h float.h regs.h regflags.c version.h \
\r
152 nasmlib.h nasm.h insnsi.h
\r
153 preproc.o: preproc.c macros.c regs.h version.h nasmlib.h nasm.h
\r
155 regflags.o: regflags.c
\r
157 regvals.o: regvals.c
\r
158 sync.o: sync.c sync.h
\r
159 #-- Everything below is generated by mkdep.pl - do not edit --#
160 assemble.o: assemble.c preproc.h insns.h regs.h regflags.c config.h \
161 version.h nasmlib.h nasm.h regvals.c insnsi.h assemble.h
162 disasm.o: disasm.c insns.h sync.h regdis.c regs.h config.h regs.c version.h \
163 nasm.h insnsn.c names.c insnsi.h disasm.h
164 eval.o: eval.c labels.h eval.h regs.h config.h version.h nasmlib.h nasm.h
165 float.o: float.c regs.h config.h version.h nasm.h
166 insnsa.o: insnsa.c insns.h regs.h config.h version.h nasm.h insnsi.h
167 insnsd.o: insnsd.c insns.h regs.h config.h version.h nasm.h insnsi.h
169 labels.o: labels.c regs.h config.h version.h nasmlib.h nasm.h
170 listing.o: listing.c regs.h config.h version.h nasmlib.h nasm.h listing.h
172 names.o: names.c regs.c insnsn.c
173 nasm.o: nasm.c labels.h preproc.h insns.h parser.h eval.h regs.h outform.h \
174 config.h version.h nasmlib.h nasm.h stdscan.h assemble.h insnsi.h listing.h
175 nasmlib.o: nasmlib.c insns.h regs.h config.h regs.c version.h nasmlib.h \
176 nasm.h insnsn.c names.c insnsi.h
177 ndisasm.o: ndisasm.c insns.h sync.h regs.h config.h version.h nasmlib.h \
178 nasm.h insnsi.h disasm.h
179 outform.o: outform.c regs.h config.h outform.h version.h nasm.h
180 output/outaout.o: output/outaout.c regs.h outform.h config.h version.h \
181 nasmlib.h nasm.h stdscan.h
182 output/outas86.o: output/outas86.c regs.h outform.h config.h version.h \
184 output/outbin.o: output/outbin.c labels.h eval.h regs.h outform.h config.h \
185 version.h nasmlib.h nasm.h stdscan.h
186 output/outcoff.o: output/outcoff.c regs.h outform.h config.h version.h \
188 output/outdbg.o: output/outdbg.c regs.h outform.h config.h version.h \
190 output/outelf32.o: output/outelf32.c regs.h outform.h config.h version.h \
191 nasmlib.h nasm.h stdscan.h
192 output/outelf64.o: output/outelf64.c regs.h outform.h config.h version.h \
193 nasmlib.h nasm.h stdscan.h
194 output/outieee.o: output/outieee.c regs.h outform.h config.h version.h \
196 output/outmacho.o: output/outmacho.c compiler.h regs.h outform.h config.h \
197 version.h nasmlib.h nasm.h
198 output/outobj.o: output/outobj.c regs.h outform.h config.h version.h \
199 nasmlib.h nasm.h stdscan.h
200 output/outrdf.o: output/outrdf.c regs.h outform.h config.h version.h \
202 output/outrdf2.o: output/outrdf2.c rdoff/rdoff.h regs.h outform.h config.h \
203 version.h nasmlib.h nasm.h
204 parser.o: parser.c insns.h parser.h float.h regs.h regflags.c config.h \
205 version.h nasmlib.h nasm.h stdscan.h insnsi.h
206 preproc.o: preproc.c macros.c regs.h config.h version.h nasmlib.h nasm.h
208 regflags.o: regflags.c
211 stdscan.o: stdscan.c insns.h regs.h config.h version.h nasmlib.h nasm.h \
213 sync.o: sync.c sync.h
214 tokhash.o: tokhash.c insns.h regs.h config.h version.h nasm.h insnsi.h