build: Add warnings to PERLREQ
[nasm.git] / Makefile.in
blob0ac5ebe66fd1709ef6c808e38f5ac735a2ddd8cb
2 # Auto-configuring Makefile for the Netwide Assembler.
4 # The Netwide Assembler is copyright (C) 1996 Simon Tatham and
5 # Julian Hall. All rights reserved. The software is
6 # redistributable under the license given in the file "LICENSE"
7 # distributed in the NASM archive.
9 @SET_MAKE@
11 top_srcdir = @top_srcdir@
12 srcdir = @srcdir@
13 objdir = @builddir@
14 VPATH = @srcdir@
15 prefix = @prefix@
16 exec_prefix = @exec_prefix@
17 bindir = @bindir@
18 mandir = @mandir@
19 datarootdir = @datarootdir@
21 CC = @CC@
22 CFLAGS = @CFLAGS@
23 CPPFLAGS = @CPPFLAGS@
24 BUILD_CFLAGS = $(CPPFLAGS) $(CFLAGS) @DEFS@
25 INTERNAL_CFLAGS = -I$(srcdir) -I$(objdir) \
26 -I$(srcdir)/include -I$(objdir)/include \
27 -I$(srcdir)/x86 -I$(objdir)/x86 \
28 -I$(srcdir)/asm -I$(objdir)/asm \
29 -I$(srcdir)/disasm -I$(objdir)/disasm \
30 -I$(srcdir)/output -I$(objdir)/output
31 ALL_CFLAGS = $(BUILD_CFLAGS) $(INTERNAL_CFLAGS)
32 LDFLAGS = @LDFLAGS@
33 LIBS = @LIBS@
35 AR = @AR@
36 RANLIB = @RANLIB@
37 STRIP = @STRIP@
39 PERL = perl
40 PERLFLAGS = -I$(srcdir)/perllib -I$(srcdir)
41 RUNPERL = $(PERL) $(PERLFLAGS)
43 INSTALL = @INSTALL@
44 INSTALL_PROGRAM = @INSTALL_PROGRAM@
45 INSTALL_DATA = @INSTALL_DATA@
47 NROFF = @NROFF@
48 ASCIIDOC = @ASCIIDOC@
49 XMLTO = @XMLTO@
51 MAKENSIS = makensis
53 MKDIR = mkdir -p
54 RM_F = rm -f
55 RM_RF = rm -rf
56 LN_S = @LN_S@
57 FIND = find
59 # Binary suffixes
60 O = @OBJEXT@
61 X = @EXEEXT@
62 A = @LIBEXT@
64 # Debug stuff
65 ifeq ($(TRACE),1)
66 CFLAGS += -DNASM_TRACE
67 endif
69 .SUFFIXES:
70 .SUFFIXES: $(X) .$(O) .$(A) .xml .1 .c .i .s .txt
72 .PHONY: all doc rdf install clean distclean cleaner spotless install_rdf test
73 .PHONY: install_doc everything install_everything strip perlreq dist tags TAGS
74 .PHONY: manpages nsis
76 .c.$(O):
77 $(CC) -c $(ALL_CFLAGS) -o $@ $<
79 .c.s:
80 $(CC) -S $(ALL_CFLAGS) -o $@ $<
82 .c.i:
83 $(CC) -E $(ALL_CFLAGS) -o $@ $<
85 .txt.xml:
86 $(ASCIIDOC) -b docbook -d manpage -o $@ $<
88 .xml.1:
89 $(XMLTO) man --skip-validation $< 2>/dev/null
91 #-- Begin File Lists --#
92 NASM = asm/nasm.$(O)
93 NDISASM = disasm/ndisasm.$(O)
95 LIBOBJ = stdlib/snprintf.$(O) stdlib/vsnprintf.$(O) stdlib/strlcpy.$(O) \
96 stdlib/strnlen.$(O) stdlib/strrchrnul.$(O) \
98 nasmlib/ver.$(O) \
99 nasmlib/alloc.$(O) nasmlib/asprintf.$(O) nasmlib/errfile.$(O) \
100 nasmlib/crc64.$(O) nasmlib/md5c.$(O) \
101 nasmlib/string.$(O) nasmlib/nctype.$(O) \
102 nasmlib/file.$(O) nasmlib/mmap.$(O) nasmlib/ilog2.$(O) \
103 nasmlib/realpath.$(O) nasmlib/path.$(O) \
104 nasmlib/filename.$(O) \
105 nasmlib/zerobuf.$(O) nasmlib/readnum.$(O) nasmlib/bsi.$(O) \
106 nasmlib/rbtree.$(O) nasmlib/hashtbl.$(O) \
107 nasmlib/raa.$(O) nasmlib/saa.$(O) \
108 nasmlib/strlist.$(O) \
109 nasmlib/perfhash.$(O) nasmlib/badenum.$(O) \
111 common/common.$(O) \
113 x86/insnsa.$(O) x86/insnsb.$(O) x86/insnsd.$(O) x86/insnsn.$(O) \
114 x86/regs.$(O) x86/regvals.$(O) x86/regflags.$(O) x86/regdis.$(O) \
115 x86/disp8.$(O) x86/iflag.$(O) \
117 asm/error.$(O) asm/warnings.$(O) \
118 asm/float.$(O) \
119 asm/directiv.$(O) asm/directbl.$(O) \
120 asm/pragma.$(O) \
121 asm/assemble.$(O) asm/labels.$(O) asm/parser.$(O) \
122 asm/preproc.$(O) asm/quote.$(O) asm/pptok.$(O) \
123 asm/listing.$(O) asm/eval.$(O) asm/exprlib.$(O) asm/exprdump.$(O) \
124 asm/stdscan.$(O) \
125 asm/strfunc.$(O) asm/tokhash.$(O) \
126 asm/segalloc.$(O) \
127 asm/preproc-nop.$(O) \
128 asm/rdstrnum.$(O) \
129 asm/srcfile.$(O) \
130 macros/macros.$(O) \
132 output/outform.$(O) output/outlib.$(O) output/legacy.$(O) \
133 output/nulldbg.$(O) output/nullout.$(O) \
134 output/outbin.$(O) output/outaout.$(O) output/outcoff.$(O) \
135 output/outelf.$(O) \
136 output/outobj.$(O) output/outas86.$(O) output/outrdf2.$(O) \
137 output/outdbg.$(O) output/outieee.$(O) output/outmacho.$(O) \
138 output/codeview.$(O) \
140 disasm/disasm.$(O) disasm/sync.$(O)
142 SUBDIRS = stdlib nasmlib output asm disasm x86 common macros
143 XSUBDIRS = test doc nsis rdoff
144 DEPDIRS = . include config x86 rdoff $(SUBDIRS)
145 #-- End File Lists --#
147 all: nasm$(X) ndisasm$(X) rdf
149 NASMLIB = libnasm.$(A)
151 $(NASMLIB): $(LIBOBJ)
152 $(RM_F) $(NASMLIB)
153 $(AR) cq $(NASMLIB) $(LIBOBJ)
154 $(RANLIB) $(NASMLIB)
156 nasm$(X): $(NASM) $(NASMLIB)
157 $(CC) $(ALL_CFLAGS) $(LDFLAGS) -o nasm$(X) $(NASM) $(NASMLIB) $(LIBS)
159 ndisasm$(X): $(NDISASM) $(NASMLIB)
160 $(CC) $(ALL_CFLAGS) $(LDFLAGS) -o ndisasm$(X) $(NDISASM) $(NASMLIB) $(LIBS)
162 #-- Begin Generated File Rules --#
164 # These source files are automagically generated from data files using
165 # Perl scripts. They're distributed, though, so it isn't necessary to
166 # have Perl just to recompile NASM from the distribution.
168 # Perl-generated source files
169 PERLREQ = x86/insnsb.c x86/insnsa.c x86/insnsd.c x86/insnsi.h x86/insnsn.c \
170 x86/regs.c x86/regs.h x86/regflags.c x86/regdis.c x86/regdis.h \
171 x86/regvals.c asm/tokhash.c asm/tokens.h asm/pptok.h asm/pptok.c \
172 x86/iflag.c x86/iflaggen.h \
173 macros/macros.c \
174 asm/pptok.ph asm/directbl.c asm/directiv.h \
175 asm/warnings.c include/warnings.h \
176 version.h version.mac version.mak nsis/version.nsh
178 INSDEP = x86/insns.dat x86/insns.pl x86/insns-iflags.ph
180 x86/iflag.c: $(INSDEP)
181 $(RUNPERL) $(srcdir)/x86/insns.pl -fc \
182 $(srcdir)/x86/insns.dat x86/iflag.c
183 x86/iflaggen.h: $(INSDEP)
184 $(RUNPERL) $(srcdir)/x86/insns.pl -fh \
185 $(srcdir)/x86/insns.dat x86/iflaggen.h
186 x86/insnsb.c: $(INSDEP)
187 $(RUNPERL) $(srcdir)/x86/insns.pl -b \
188 $(srcdir)/x86/insns.dat x86/insnsb.c
189 x86/insnsa.c: $(INSDEP)
190 $(RUNPERL) $(srcdir)/x86/insns.pl -a \
191 $(srcdir)/x86/insns.dat x86/insnsa.c
192 x86/insnsd.c: $(INSDEP)
193 $(RUNPERL) $(srcdir)/x86/insns.pl -d \
194 $(srcdir)/x86/insns.dat x86/insnsd.c
195 x86/insnsi.h: $(INSDEP)
196 $(RUNPERL) $(srcdir)/x86/insns.pl -i \
197 $(srcdir)/x86/insns.dat x86/insnsi.h
198 x86/insnsn.c: $(INSDEP)
199 $(RUNPERL) $(srcdir)/x86/insns.pl -n \
200 $(srcdir)/x86/insns.dat x86/insnsn.c
202 # These files contains all the standard macros that are derived from
203 # the version number.
204 version.h: version version.pl
205 $(RUNPERL) $(srcdir)/version.pl h < $(srcdir)/version > version.h
206 version.mac: version version.pl
207 $(RUNPERL) $(srcdir)/version.pl mac < $(srcdir)/version > version.mac
208 version.sed: version version.pl
209 $(RUNPERL) $(srcdir)/version.pl sed < $(srcdir)/version > version.sed
210 version.mak: version version.pl
211 $(RUNPERL) $(srcdir)/version.pl make < $(srcdir)/version > version.mak
212 nsis/version.nsh: version version.pl
213 $(RUNPERL) $(srcdir)/version.pl nsis < $(srcdir)/version > nsis/version.nsh
215 # This source file is generated from the standard macros file
216 # `standard.mac' by another Perl script. Again, it's part of the
217 # standard distribution.
218 macros/macros.c: macros/macros.pl asm/pptok.ph version.mac \
219 $(srcdir)/macros/*.mac $(srcdir)/output/*.mac
220 $(RUNPERL) $(srcdir)/macros/macros.pl version.mac \
221 $(srcdir)/macros/*.mac $(srcdir)/output/*.mac
223 # These source files are generated from regs.dat by yet another
224 # perl script.
225 x86/regs.c: x86/regs.dat x86/regs.pl
226 $(RUNPERL) $(srcdir)/x86/regs.pl c \
227 $(srcdir)/x86/regs.dat > x86/regs.c
228 x86/regflags.c: x86/regs.dat x86/regs.pl
229 $(RUNPERL) $(srcdir)/x86/regs.pl fc \
230 $(srcdir)/x86/regs.dat > x86/regflags.c
231 x86/regdis.c: x86/regs.dat x86/regs.pl
232 $(RUNPERL) $(srcdir)/x86/regs.pl dc \
233 $(srcdir)/x86/regs.dat > x86/regdis.c
234 x86/regdis.h: x86/regs.dat x86/regs.pl
235 $(RUNPERL) $(srcdir)/x86/regs.pl dh \
236 $(srcdir)/x86/regs.dat > x86/regdis.h
237 x86/regvals.c: x86/regs.dat x86/regs.pl
238 $(RUNPERL) $(srcdir)/x86/regs.pl vc \
239 $(srcdir)/x86/regs.dat > x86/regvals.c
240 x86/regs.h: x86/regs.dat x86/regs.pl
241 $(RUNPERL) $(srcdir)/x86/regs.pl h \
242 $(srcdir)/x86/regs.dat > x86/regs.h
244 # Extract warnings from source code. Since this depends on
245 # ALL the source files, this is only done on demand.
246 WARNFILES = asm/warnings.c include/warnings.h doc/warnings.src
248 warnings:
249 rm -f $(WARNFILES)
250 $(MAKE) $(WARNFILES)
252 asm/warnings.c: asm/warnings.pl
253 $(RUNPERL) $(srcdir)/asm/warnings.pl c asm/warnings.c $(srcdir)
255 include/warnings.h: asm/warnings.pl
256 $(RUNPERL) $(srcdir)/asm/warnings.pl h include/warnings.h $(srcdir)
258 doc/warnings.src: asm/warnings.pl
259 $(RUNPERL) $(srcdir)/asm/warnings.pl doc doc/warnings.src $(srcdir)
261 # Assembler token hash
262 asm/tokhash.c: x86/insns.dat x86/regs.dat asm/tokens.dat asm/tokhash.pl \
263 perllib/phash.ph
264 $(RUNPERL) $(srcdir)/asm/tokhash.pl c \
265 $(srcdir)/x86/insns.dat $(srcdir)/x86/regs.dat \
266 $(srcdir)/asm/tokens.dat > asm/tokhash.c
268 # Assembler token metadata
269 asm/tokens.h: x86/insns.dat x86/regs.dat asm/tokens.dat asm/tokhash.pl \
270 perllib/phash.ph
271 $(RUNPERL) $(srcdir)/asm/tokhash.pl h \
272 $(srcdir)/x86/insns.dat $(srcdir)/x86/regs.dat \
273 $(srcdir)/asm/tokens.dat > asm/tokens.h
275 # Preprocessor token hash
276 asm/pptok.h: asm/pptok.dat asm/pptok.pl perllib/phash.ph
277 $(RUNPERL) $(srcdir)/asm/pptok.pl h \
278 $(srcdir)/asm/pptok.dat asm/pptok.h
279 asm/pptok.c: asm/pptok.dat asm/pptok.pl perllib/phash.ph
280 $(RUNPERL) $(srcdir)/asm/pptok.pl c \
281 $(srcdir)/asm/pptok.dat asm/pptok.c
282 asm/pptok.ph: asm/pptok.dat asm/pptok.pl perllib/phash.ph
283 $(RUNPERL) $(srcdir)/asm/pptok.pl ph \
284 $(srcdir)/asm/pptok.dat asm/pptok.ph
286 # Directives hash
287 asm/directiv.h: asm/directiv.dat nasmlib/perfhash.pl perllib/phash.ph
288 $(RUNPERL) $(srcdir)/nasmlib/perfhash.pl h \
289 $(srcdir)/asm/directiv.dat asm/directiv.h
290 asm/directbl.c: asm/directiv.dat nasmlib/perfhash.pl perllib/phash.ph
291 $(RUNPERL) $(srcdir)/nasmlib/perfhash.pl c \
292 $(srcdir)/asm/directiv.dat asm/directbl.c
294 #-- End Generated File Rules --#
296 perlreq: $(PERLREQ)
298 # This rule is only used for RDOFF
299 .$(O)$(X):
300 $(CC) $(ALL_CFLAGS) -o $@ $< $(LDFLAGS) $(RDFLIB) $(NASMLIB) $(LIBS)
302 RDFLN = cd rdoff && ln -s
303 RDFLNPFX =
305 #-- Begin RDOFF Shared Rules --#
307 RDFLIBOBJ = rdoff/rdoff.$(O) rdoff/rdfload.$(O) rdoff/symtab.$(O) \
308 rdoff/collectn.$(O) rdoff/rdlib.$(O) rdoff/segtab.$(O) \
309 rdoff/hash.$(O)
311 RDFPROGS = rdoff/rdfdump$(X) rdoff/ldrdf$(X) rdoff/rdx$(X) rdoff/rdflib$(X) \
312 rdoff/rdf2bin$(X)
313 RDF2BINLINKS = rdoff/rdf2com$(X) rdoff/rdf2ith$(X) \
314 rdoff/rdf2ihx$(X) rdoff/rdf2srec$(X)
316 RDFLIB = rdoff/librdoff.$(A)
317 RDFLIBS = $(RDFLIB) $(NASMLIB)
319 rdoff/rdfdump$(X): rdoff/rdfdump.$(O) $(RDFLIBS)
320 rdoff/ldrdf$(X): rdoff/ldrdf.$(O) $(RDFLIBS)
321 rdoff/rdx$(X): rdoff/rdx.$(O) $(RDFLIBS)
322 rdoff/rdflib$(X): rdoff/rdflib.$(O) $(RDFLIBS)
323 rdoff/rdf2bin$(X): rdoff/rdf2bin.$(O) $(RDFLIBS)
324 rdoff/rdf2com$(X): rdoff/rdf2bin$(X)
325 $(RM_F) rdoff/rdf2com$(X)
326 $(RDFLN) $(RDFLNPFX)rdf2bin$(X) $(RDFLNPFX)rdf2com$(X)
327 rdoff/rdf2ith$(X): rdoff/rdf2bin$(X)
328 $(RM_F) rdoff/rdf2ith$(X)
329 $(RDFLN) $(RDFLNPFX)rdf2bin$(X) $(RDFLNPFX)rdf2ith$(X)
330 rdoff/rdf2ihx$(X): rdoff/rdf2bin$(X)
331 $(RM_F) rdoff/rdf2ihx$(X)
332 $(RDFLN) $(RDFLNPFX)rdf2bin$(X) $(RDFLNPFX)rdf2ihx$(X)
333 rdoff/rdf2srec$(X): rdoff/rdf2bin$(X)
334 $(RM_F) rdoff/rdf2srec$(X)
335 $(RDFLN) $(RDFLNPFX)rdf2bin$(X) $(RDFLNPFX)rdf2srec$(X)
337 #-- End RDOFF Shared Rules --#
339 rdf: $(RDFPROGS) $(RDF2BINLINKS)
341 $(RDFLIB): $(RDFLIBOBJ)
342 $(RM_F) $(RDFLIB)
343 $(AR) cq $(RDFLIB) $(RDFLIBOBJ)
344 $(RANLIB) $(RDFLIB)
346 #-- Begin NSIS Rules --#
348 # NSIS is not built except by explicit request, as it only applies to
349 # Windows platforms
350 nsis/arch.nsh: nsis/getpearch.pl nasm$(X)
351 $(PERL) $(srcdir)/nsis/getpearch.pl nasm$(X) > nsis/arch.nsh
353 # Should only be done after "make everything".
354 # The use of redirection here keeps makensis from moving the cwd to the
355 # source directory.
356 nsis: nsis/nasm.nsi nsis/arch.nsh nsis/version.nsh
357 $(MAKENSIS) -Dsrcdir="$(srcdir)" -Dobjdir="$(objdir)" - < nsis/nasm.nsi
359 #-- End NSIS Rules --#
361 # Generated manpages, also pregenerated for distribution
362 manpages: nasm.1 ndisasm.1
364 install: nasm$(X) ndisasm$(X)
365 $(MKDIR) $(DESTDIR)$(bindir)
366 $(INSTALL_PROGRAM) nasm$(X) $(DESTDIR)$(bindir)/nasm$(X)
367 $(INSTALL_PROGRAM) ndisasm$(X) $(DESTDIR)$(bindir)/ndisasm$(X)
368 $(MKDIR) $(DESTDIR)$(mandir)/man1
369 $(INSTALL_DATA) $(srcdir)/nasm.1 $(DESTDIR)$(mandir)/man1/nasm.1
370 $(INSTALL_DATA) $(srcdir)/ndisasm.1 $(DESTDIR)$(mandir)/man1/ndisasm.1
372 clean:
373 for d in . $(SUBDIRS) $(XSUBDIRS); do \
374 $(RM_F) "$$d"/*.$(O) "$$d"/*.s "$$d"/*.i "$$d"/*.$(A) ; \
375 done
376 $(RM_F) nasm$(X) ndisasm$(X)
377 $(RM_F) nasm-*-installer-*.exe
378 $(RM_F) tags TAGS
379 $(RM_F) nsis/arch.nsh
380 $(RM_F) perlbreq.si
381 $(RM_F) $(RDFPROGS) $(RDF2BINLINKS)
383 distclean: clean
384 $(RM_F) config.log config.status config/config.h
385 for d in . $(SUBDIRS) $(XSUBDIRS); do \
386 $(RM_F) "$$d"/*~ "$$d"/*.bak "$$d"/*.lst "$$d"/*.bin ; \
387 done
388 $(RM_F) test/*.$(O)
389 $(RM_RF) autom4te*.cache
390 $(RM_F) Makefile *.dep
392 cleaner: clean
393 $(RM_F) $(PERLREQ) *.1 nasm.spec
394 $(MAKE) -C doc clean
395 $(RM_F) *.dep
397 spotless: distclean cleaner
398 $(RM_F) doc/Makefile
400 strip:
401 $(STRIP) --strip-unneeded nasm$(X) ndisasm$(X)
403 TAGS:
404 $(RM_F) TAGS
405 $(FIND) . -name '*.[hcS]' -print | xargs etags -a
407 tags:
408 $(RM_F) tags
409 $(FIND) . -name '*.[hcS]' -print | xargs ctags -a
411 cscope:
412 $(RM_F) cscope.out cscope.files
413 $(FIND) . -name '*.[hcS]' -print > cscope.files
414 cscope -b -f cscope.out
416 rdf_install install_rdf install_rdoff:
417 $(MKDIR) $(DESTDIR)$(bindir)
418 for f in $(RDFPROGS); do \
419 $(INSTALL_PROGRAM) "$$f" '$(DESTDIR)$(bindir)'/ ; \
420 done
421 cd '$(DESTDIR)$(bindir)' && \
422 for f in $(RDF2BINLINKS); do \
423 bn=`basename "$$f"` && $(RM_F) "$$bn" && \
424 $(LN_S) rdf2bin$(X) "$$bn" ; \
425 done
426 $(MKDIR) $(DESTDIR)$(mandir)/man1
427 $(INSTALL_DATA) $(srcdir)/rdoff/*.1 $(DESTDIR)$(mandir)/man1/
429 doc:
430 $(MAKE) -C doc all
432 doc_install install_doc:
433 $(MAKE) -C doc install
435 everything: all manpages doc rdf
437 install_everything: everything install install_doc install_rdf
439 dist:
440 $(MAKE) alldeps
441 $(MAKE) spotless perlreq manpages spec
442 autoheader
443 autoconf
444 $(RM_RF) ./autom4te*.cache
446 tar: dist
447 tar -cvj --exclude CVS -C .. -f ../nasm-`cat version`-`date +%Y%m%d`.tar.bz2 `basename \`pwd\``
449 spec: nasm.spec
451 ALLPERLSRC := $(shell find $(srcdir) -type f -name '*.p[lh]')
453 perlbreq.si: $(ALLPERLSRC)
454 sed -n -r -e 's/^[[:space:]]*use[[:space:]]+([^[:space:];]+).*$$/BuildRequires: perl(\1)/p' $(ALLPERLSRC) | \
455 sed -r -e '/perl\((strict|warnings|Win32.*)\)/d' | \
456 sort | uniq > perlbreq.si || ( rm -f perlbreq.si ; false )
458 nasm.spec: nasm.spec.in nasm.spec.sed version.sed perlbreq.si
459 sed -f version.sed -f nasm.spec.sed \
460 < nasm.spec.in > nasm.spec || ( rm -f nasm.spec ; false )
462 splint:
463 splint -weak *.c
465 test: nasm$(X)
466 cd test && $(RUNPERL) performtest.pl --nasm=../nasm *.asm
468 golden: nasm$(X)
469 cd test && $(RUNPERL) performtest.pl --golden --nasm=../nasm *.asm
472 # Rules to run autoreconf if necessary
474 configure: configure.ac aclocal.m4
475 autoreconf
477 config.status: configure
478 @if [ ! -f config.status ]; then \
479 echo "*** ERROR: Need to run configure!" 1>&2 ; \
480 exit 1; \
482 sh config.status --recheck
484 Makefile: config.status Makefile.in doc/Makefile.in
485 sh config.status
487 doc/Makefile: Makefile
489 config/config.h: config.status
492 # Does this version of this file have external dependencies? This definition
493 # will be automatically updated by mkdep.pl as needed.
495 EXTERNAL_DEPENDENCIES = 1
498 # Generate dependency information for this Makefile only.
499 # If this Makefile has external dependency information, then
500 # the dependency information will remain external, so it doesn't
501 # pollute the git logs.
503 Makefile.dep: $(PERLREQ) tools/mkdep.pl config.status
504 $(RUNPERL) tools/mkdep.pl -M Makefile.in -- $(DEPDIRS)
506 dep: Makefile.dep
509 # This build dependencies in *ALL* makefiles, and forces all
510 # dependencies to be inserted inline. For that reason, it should only
511 # be invoked manually or via "make dist". It should be run before
512 # creating release archives.
514 alldeps: $(PERLREQ) tools/syncfiles.pl tools/mkdep.pl
515 $(RUNPERL) tools/syncfiles.pl Makefile.in Mkfiles/*.mak
516 $(RUNPERL) tools/mkdep.pl -i -M Makefile.in Mkfiles/*.mak -- \
517 $(DEPDIRS)
518 $(RM_F) *.dep
519 if [ -f config.status ]; then \
520 if [ $(EXTERNAL_DEPENDENCIES) -eq 1 ]; then \
521 sh config.status --recheck; \
522 fi; \
523 sh config.status; \
526 # Strip internal dependency information from all Makefiles; this makes
527 # the output good for git checkin
528 cleandeps: $(PERLREQ) tools/syncfiles.pl tools/mkdep.pl
529 $(RUNPERL) tools/syncfiles.pl Makefile.in Mkfiles/*.mak
530 $(RUNPERL) tools/mkdep.pl -e -M Makefile.in Mkfiles/*.mak -- \
531 $(DEPDIRS)
532 $(RM_F) *.dep
533 if [ -f config.status ]; then \
534 if [ $(EXTERNAL_DEPENDENCIES) -eq 0 ]; then \
535 sh config.status --recheck; \
536 fi; \
537 sh config.status; \
540 #-- Magic hints to mkdep.pl --#
541 # @object-ending: ".$(O)"
542 # @path-separator: "/"
543 # @external: "Makefile.dep"
544 # @include-command: "-include"
545 # @selfrule: "1"
546 #-- Everything below is generated by mkdep.pl - do not edit --#
547 -include Makefile.dep