BR 3392597: the system malloc() can return NULL
[nasm.git] / Makefile.in
blobb9a9917eba5339a4dab72f6a6b3ef80b5bd4f184
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 ALL_LDFLAGS = $(ALL_CFLAGS) $(LDFLAGS)
34 LIBS = @LIBS@
36 AR = @AR@
37 RANLIB = @RANLIB@
38 STRIP = @STRIP@
40 PERL = perl
41 PERLFLAGS = -I$(srcdir)/perllib -I$(srcdir)
42 RUNPERL = $(PERL) $(PERLFLAGS)
44 PYTHON3 = python3
46 INSTALL = @INSTALL@
47 INSTALL_PROGRAM = @INSTALL_PROGRAM@
48 INSTALL_DATA = @INSTALL_DATA@
50 NROFF = @NROFF@
51 ASCIIDOC = @ASCIIDOC@
52 XMLTO = @XMLTO@
54 MAKENSIS = makensis
56 MKDIR = mkdir -p
57 RM_F = rm -f
58 RM_RF = rm -rf
59 LN_S = @LN_S@
60 FIND = find
62 # Binary suffixes
63 O = @OBJEXT@
64 X = @EXEEXT@
65 A = @LIBEXT@
67 # Debug stuff
68 ifeq ($(TRACE),1)
69 CFLAGS += -DNASM_TRACE
70 endif
72 .SUFFIXES:
73 .SUFFIXES: $(X) .$(O) .$(A) .xml .1 .c .i .s .txt
75 .PHONY: all doc rdf install clean distclean cleaner spotless install_rdf test
76 .PHONY: install_doc everything install_everything strip perlreq dist tags TAGS
77 .PHONY: manpages nsis
79 .c.$(O):
80 $(CC) -c $(ALL_CFLAGS) -o $@ $<
82 .c.s:
83 $(CC) -S $(ALL_CFLAGS) -o $@ $<
85 .c.i:
86 $(CC) -E $(ALL_CFLAGS) -o $@ $<
88 .txt.xml:
89 $(ASCIIDOC) -b docbook -d manpage -o $@ $<
91 .xml.1:
92 $(XMLTO) man --skip-validation $< 2>/dev/null
94 #-- Begin File Lists --#
95 NASM = asm/nasm.$(O)
96 NDISASM = disasm/ndisasm.$(O)
98 LIBOBJ = stdlib/snprintf.$(O) stdlib/vsnprintf.$(O) stdlib/strlcpy.$(O) \
99 stdlib/strnlen.$(O) stdlib/strrchrnul.$(O) \
101 nasmlib/ver.$(O) \
102 nasmlib/alloc.$(O) nasmlib/asprintf.$(O) nasmlib/errfile.$(O) \
103 nasmlib/crc64.$(O) nasmlib/md5c.$(O) \
104 nasmlib/string.$(O) nasmlib/nctype.$(O) \
105 nasmlib/file.$(O) nasmlib/mmap.$(O) nasmlib/ilog2.$(O) \
106 nasmlib/realpath.$(O) nasmlib/path.$(O) \
107 nasmlib/filename.$(O) \
108 nasmlib/zerobuf.$(O) nasmlib/readnum.$(O) nasmlib/bsi.$(O) \
109 nasmlib/rbtree.$(O) nasmlib/hashtbl.$(O) \
110 nasmlib/raa.$(O) nasmlib/saa.$(O) \
111 nasmlib/strlist.$(O) \
112 nasmlib/perfhash.$(O) nasmlib/badenum.$(O) \
114 common/common.$(O) \
116 x86/insnsa.$(O) x86/insnsb.$(O) x86/insnsd.$(O) x86/insnsn.$(O) \
117 x86/regs.$(O) x86/regvals.$(O) x86/regflags.$(O) x86/regdis.$(O) \
118 x86/disp8.$(O) x86/iflag.$(O) \
120 asm/error.$(O) asm/warnings.$(O) \
121 asm/float.$(O) \
122 asm/directiv.$(O) asm/directbl.$(O) \
123 asm/pragma.$(O) \
124 asm/assemble.$(O) asm/labels.$(O) asm/parser.$(O) \
125 asm/preproc.$(O) asm/quote.$(O) asm/pptok.$(O) \
126 asm/listing.$(O) asm/eval.$(O) asm/exprlib.$(O) asm/exprdump.$(O) \
127 asm/stdscan.$(O) \
128 asm/strfunc.$(O) asm/tokhash.$(O) \
129 asm/segalloc.$(O) \
130 asm/preproc-nop.$(O) \
131 asm/rdstrnum.$(O) \
132 asm/srcfile.$(O) \
133 macros/macros.$(O) \
135 output/outform.$(O) output/outlib.$(O) output/legacy.$(O) \
136 output/nulldbg.$(O) output/nullout.$(O) \
137 output/outbin.$(O) output/outaout.$(O) output/outcoff.$(O) \
138 output/outelf.$(O) \
139 output/outobj.$(O) output/outas86.$(O) output/outrdf2.$(O) \
140 output/outdbg.$(O) output/outieee.$(O) output/outmacho.$(O) \
141 output/codeview.$(O) \
143 disasm/disasm.$(O) disasm/sync.$(O)
145 SUBDIRS = stdlib nasmlib output asm disasm x86 common macros
146 XSUBDIRS = test doc nsis rdoff
147 DEPDIRS = . include config x86 rdoff $(SUBDIRS)
148 #-- End File Lists --#
150 all: nasm$(X) ndisasm$(X) rdf
152 NASMLIB = libnasm.$(A)
154 $(NASMLIB): $(LIBOBJ)
155 $(RM_F) $(NASMLIB)
156 $(AR) cq $(NASMLIB) $(LIBOBJ)
157 $(RANLIB) $(NASMLIB)
159 nasm$(X): $(NASM) $(NASMLIB)
160 $(CC) $(ALL_CFLAGS) $(LDFLAGS) -o nasm$(X) $(NASM) $(NASMLIB) $(LIBS)
162 ndisasm$(X): $(NDISASM) $(NASMLIB)
163 $(CC) $(ALL_CFLAGS) $(LDFLAGS) -o ndisasm$(X) $(NDISASM) $(NASMLIB) $(LIBS)
165 #-- Begin Generated File Rules --#
167 # These source files are automagically generated from data files using
168 # Perl scripts. They're distributed, though, so it isn't necessary to
169 # have Perl just to recompile NASM from the distribution.
171 # Perl-generated source files
172 PERLREQ = x86/insnsb.c x86/insnsa.c x86/insnsd.c x86/insnsi.h x86/insnsn.c \
173 x86/regs.c x86/regs.h x86/regflags.c x86/regdis.c x86/regdis.h \
174 x86/regvals.c asm/tokhash.c asm/tokens.h asm/pptok.h asm/pptok.c \
175 x86/iflag.c x86/iflaggen.h \
176 macros/macros.c \
177 asm/pptok.ph asm/directbl.c asm/directiv.h \
178 asm/warnings.c include/warnings.h \
179 version.h version.mac version.mak nsis/version.nsh
181 INSDEP = x86/insns.dat x86/insns.pl x86/insns-iflags.ph x86/iflags.ph
183 x86/iflag.c: $(INSDEP)
184 $(RUNPERL) $(srcdir)/x86/insns.pl -fc \
185 $(srcdir)/x86/insns.dat x86/iflag.c
186 x86/iflaggen.h: $(INSDEP)
187 $(RUNPERL) $(srcdir)/x86/insns.pl -fh \
188 $(srcdir)/x86/insns.dat x86/iflaggen.h
189 x86/insnsb.c: $(INSDEP)
190 $(RUNPERL) $(srcdir)/x86/insns.pl -b \
191 $(srcdir)/x86/insns.dat x86/insnsb.c
192 x86/insnsa.c: $(INSDEP)
193 $(RUNPERL) $(srcdir)/x86/insns.pl -a \
194 $(srcdir)/x86/insns.dat x86/insnsa.c
195 x86/insnsd.c: $(INSDEP)
196 $(RUNPERL) $(srcdir)/x86/insns.pl -d \
197 $(srcdir)/x86/insns.dat x86/insnsd.c
198 x86/insnsi.h: $(INSDEP)
199 $(RUNPERL) $(srcdir)/x86/insns.pl -i \
200 $(srcdir)/x86/insns.dat x86/insnsi.h
201 x86/insnsn.c: $(INSDEP)
202 $(RUNPERL) $(srcdir)/x86/insns.pl -n \
203 $(srcdir)/x86/insns.dat x86/insnsn.c
205 # These files contains all the standard macros that are derived from
206 # the version number.
207 version.h: version version.pl
208 $(RUNPERL) $(srcdir)/version.pl h < $(srcdir)/version > version.h
209 version.mac: version version.pl
210 $(RUNPERL) $(srcdir)/version.pl mac < $(srcdir)/version > version.mac
211 version.sed: version version.pl
212 $(RUNPERL) $(srcdir)/version.pl sed < $(srcdir)/version > version.sed
213 version.mak: version version.pl
214 $(RUNPERL) $(srcdir)/version.pl make < $(srcdir)/version > version.mak
215 nsis/version.nsh: version version.pl
216 $(RUNPERL) $(srcdir)/version.pl nsis < $(srcdir)/version > nsis/version.nsh
218 # This source file is generated from the standard macros file
219 # `standard.mac' by another Perl script. Again, it's part of the
220 # standard distribution.
221 macros/macros.c: macros/macros.pl asm/pptok.ph version.mac \
222 $(srcdir)/macros/*.mac $(srcdir)/output/*.mac
223 $(RUNPERL) $(srcdir)/macros/macros.pl version.mac \
224 $(srcdir)/macros/*.mac $(srcdir)/output/*.mac
226 # These source files are generated from regs.dat by yet another
227 # perl script.
228 x86/regs.c: x86/regs.dat x86/regs.pl
229 $(RUNPERL) $(srcdir)/x86/regs.pl c \
230 $(srcdir)/x86/regs.dat > x86/regs.c
231 x86/regflags.c: x86/regs.dat x86/regs.pl
232 $(RUNPERL) $(srcdir)/x86/regs.pl fc \
233 $(srcdir)/x86/regs.dat > x86/regflags.c
234 x86/regdis.c: x86/regs.dat x86/regs.pl
235 $(RUNPERL) $(srcdir)/x86/regs.pl dc \
236 $(srcdir)/x86/regs.dat > x86/regdis.c
237 x86/regdis.h: x86/regs.dat x86/regs.pl
238 $(RUNPERL) $(srcdir)/x86/regs.pl dh \
239 $(srcdir)/x86/regs.dat > x86/regdis.h
240 x86/regvals.c: x86/regs.dat x86/regs.pl
241 $(RUNPERL) $(srcdir)/x86/regs.pl vc \
242 $(srcdir)/x86/regs.dat > x86/regvals.c
243 x86/regs.h: x86/regs.dat x86/regs.pl
244 $(RUNPERL) $(srcdir)/x86/regs.pl h \
245 $(srcdir)/x86/regs.dat > x86/regs.h
247 # Extract warnings from source code. Since this depends on
248 # ALL the source files, this is only done on demand.
249 WARNFILES = asm/warnings.c include/warnings.h doc/warnings.src
251 warnings:
252 rm -f $(WARNFILES)
253 $(MAKE) $(WARNFILES)
255 asm/warnings.c: asm/warnings.pl
256 $(RUNPERL) $(srcdir)/asm/warnings.pl c asm/warnings.c $(srcdir)
258 include/warnings.h: asm/warnings.pl
259 $(RUNPERL) $(srcdir)/asm/warnings.pl h include/warnings.h $(srcdir)
261 doc/warnings.src: asm/warnings.pl
262 $(RUNPERL) $(srcdir)/asm/warnings.pl doc doc/warnings.src $(srcdir)
264 # Assembler token hash
265 asm/tokhash.c: x86/insns.dat x86/regs.dat asm/tokens.dat asm/tokhash.pl \
266 perllib/phash.ph
267 $(RUNPERL) $(srcdir)/asm/tokhash.pl c \
268 $(srcdir)/x86/insns.dat $(srcdir)/x86/regs.dat \
269 $(srcdir)/asm/tokens.dat > asm/tokhash.c
271 # Assembler token metadata
272 asm/tokens.h: x86/insns.dat x86/regs.dat asm/tokens.dat asm/tokhash.pl \
273 perllib/phash.ph
274 $(RUNPERL) $(srcdir)/asm/tokhash.pl h \
275 $(srcdir)/x86/insns.dat $(srcdir)/x86/regs.dat \
276 $(srcdir)/asm/tokens.dat > asm/tokens.h
278 # Preprocessor token hash
279 asm/pptok.h: asm/pptok.dat asm/pptok.pl perllib/phash.ph
280 $(RUNPERL) $(srcdir)/asm/pptok.pl h \
281 $(srcdir)/asm/pptok.dat asm/pptok.h
282 asm/pptok.c: asm/pptok.dat asm/pptok.pl perllib/phash.ph
283 $(RUNPERL) $(srcdir)/asm/pptok.pl c \
284 $(srcdir)/asm/pptok.dat asm/pptok.c
285 asm/pptok.ph: asm/pptok.dat asm/pptok.pl perllib/phash.ph
286 $(RUNPERL) $(srcdir)/asm/pptok.pl ph \
287 $(srcdir)/asm/pptok.dat asm/pptok.ph
289 # Directives hash
290 asm/directiv.h: asm/directiv.dat nasmlib/perfhash.pl perllib/phash.ph
291 $(RUNPERL) $(srcdir)/nasmlib/perfhash.pl h \
292 $(srcdir)/asm/directiv.dat asm/directiv.h
293 asm/directbl.c: asm/directiv.dat nasmlib/perfhash.pl perllib/phash.ph
294 $(RUNPERL) $(srcdir)/nasmlib/perfhash.pl c \
295 $(srcdir)/asm/directiv.dat asm/directbl.c
297 #-- End Generated File Rules --#
299 perlreq: $(PERLREQ)
301 # This rule is only used for RDOFF
302 .$(O)$(X):
303 $(CC) $(ALL_CFLAGS) -o $@ $< $(LDFLAGS) $(RDFLIB) $(NASMLIB) $(LIBS)
305 RDFLN = cd rdoff && ln -s
306 RDFLNPFX =
308 #-- Begin RDOFF Shared Rules --#
310 RDFLIBOBJ = rdoff/rdoff.$(O) rdoff/rdfload.$(O) rdoff/symtab.$(O) \
311 rdoff/collectn.$(O) rdoff/rdlib.$(O) rdoff/segtab.$(O) \
312 rdoff/hash.$(O)
314 RDFPROGS = rdoff/rdfdump$(X) rdoff/ldrdf$(X) rdoff/rdx$(X) rdoff/rdflib$(X) \
315 rdoff/rdf2bin$(X)
316 RDF2BINLINKS = rdoff/rdf2com$(X) rdoff/rdf2ith$(X) \
317 rdoff/rdf2ihx$(X) rdoff/rdf2srec$(X)
319 RDFLIB = rdoff/librdoff.$(A)
320 RDFLIBS = $(RDFLIB) $(NASMLIB)
322 rdoff/rdfdump$(X): rdoff/rdfdump.$(O) $(RDFLIBS)
323 rdoff/ldrdf$(X): rdoff/ldrdf.$(O) $(RDFLIBS)
324 rdoff/rdx$(X): rdoff/rdx.$(O) $(RDFLIBS)
325 rdoff/rdflib$(X): rdoff/rdflib.$(O) $(RDFLIBS)
326 rdoff/rdf2bin$(X): rdoff/rdf2bin.$(O) $(RDFLIBS)
327 rdoff/rdf2com$(X): rdoff/rdf2bin$(X)
328 $(RM_F) rdoff/rdf2com$(X)
329 $(RDFLN) $(RDFLNPFX)rdf2bin$(X) $(RDFLNPFX)rdf2com$(X)
330 rdoff/rdf2ith$(X): rdoff/rdf2bin$(X)
331 $(RM_F) rdoff/rdf2ith$(X)
332 $(RDFLN) $(RDFLNPFX)rdf2bin$(X) $(RDFLNPFX)rdf2ith$(X)
333 rdoff/rdf2ihx$(X): rdoff/rdf2bin$(X)
334 $(RM_F) rdoff/rdf2ihx$(X)
335 $(RDFLN) $(RDFLNPFX)rdf2bin$(X) $(RDFLNPFX)rdf2ihx$(X)
336 rdoff/rdf2srec$(X): rdoff/rdf2bin$(X)
337 $(RM_F) rdoff/rdf2srec$(X)
338 $(RDFLN) $(RDFLNPFX)rdf2bin$(X) $(RDFLNPFX)rdf2srec$(X)
340 #-- End RDOFF Shared Rules --#
342 rdf: $(RDFPROGS) $(RDF2BINLINKS)
344 $(RDFLIB): $(RDFLIBOBJ)
345 $(RM_F) $(RDFLIB)
346 $(AR) cq $(RDFLIB) $(RDFLIBOBJ)
347 $(RANLIB) $(RDFLIB)
349 #-- Begin NSIS Rules --#
351 # NSIS is not built except by explicit request, as it only applies to
352 # Windows platforms
353 nsis/arch.nsh: nsis/getpearch.pl nasm$(X)
354 $(PERL) $(srcdir)/nsis/getpearch.pl nasm$(X) > nsis/arch.nsh
356 # Should only be done after "make everything".
357 # The use of redirection here keeps makensis from moving the cwd to the
358 # source directory.
359 nsis: nsis/nasm.nsi nsis/arch.nsh nsis/version.nsh
360 $(MAKENSIS) -Dsrcdir="$(srcdir)" -Dobjdir="$(objdir)" - < nsis/nasm.nsi
362 #-- End NSIS Rules --#
364 # Generated manpages, also pregenerated for distribution
365 manpages: nasm.1 ndisasm.1
367 install: nasm$(X) ndisasm$(X)
368 $(MKDIR) $(DESTDIR)$(bindir)
369 $(INSTALL_PROGRAM) nasm$(X) $(DESTDIR)$(bindir)/nasm$(X)
370 $(INSTALL_PROGRAM) ndisasm$(X) $(DESTDIR)$(bindir)/ndisasm$(X)
371 $(MKDIR) $(DESTDIR)$(mandir)/man1
372 $(INSTALL_DATA) $(srcdir)/nasm.1 $(DESTDIR)$(mandir)/man1/nasm.1
373 $(INSTALL_DATA) $(srcdir)/ndisasm.1 $(DESTDIR)$(mandir)/man1/ndisasm.1
375 clean:
376 for d in . $(SUBDIRS) $(XSUBDIRS); do \
377 $(RM_F) "$$d"/*.$(O) "$$d"/*.s "$$d"/*.i "$$d"/*.$(A) ; \
378 done
379 $(RM_F) nasm$(X) ndisasm$(X)
380 $(RM_F) nasm-*-installer-*.exe
381 $(RM_F) tags TAGS
382 $(RM_F) nsis/arch.nsh
383 $(RM_F) perlbreq.si
384 $(RM_F) $(RDFPROGS) $(RDF2BINLINKS)
386 distclean: clean
387 $(RM_F) config.log config.status config/config.h
388 for d in . $(SUBDIRS) $(XSUBDIRS); do \
389 $(RM_F) "$$d"/*~ "$$d"/*.bak "$$d"/*.lst "$$d"/*.bin ; \
390 done
391 $(RM_F) test/*.$(O)
392 $(RM_RF) autom4te*.cache
393 $(RM_F) Makefile *.dep
395 cleaner: clean
396 $(RM_F) $(PERLREQ) *.1 nasm.spec
397 $(MAKE) -C doc clean
398 $(RM_F) *.dep
400 spotless: distclean cleaner
401 $(RM_F) doc/Makefile
403 strip:
404 $(STRIP) --strip-unneeded nasm$(X) ndisasm$(X)
406 TAGS:
407 $(RM_F) TAGS
408 $(FIND) . -name '*.[hcS]' -print | xargs etags -a
410 tags:
411 $(RM_F) tags
412 $(FIND) . -name '*.[hcS]' -print | xargs ctags -a
414 cscope:
415 $(RM_F) cscope.out cscope.files
416 $(FIND) . -name '*.[hcS]' -print > cscope.files
417 cscope -b -f cscope.out
419 rdf_install install_rdf install_rdoff:
420 $(MKDIR) $(DESTDIR)$(bindir)
421 for f in $(RDFPROGS); do \
422 $(INSTALL_PROGRAM) "$$f" '$(DESTDIR)$(bindir)'/ ; \
423 done
424 cd '$(DESTDIR)$(bindir)' && \
425 for f in $(RDF2BINLINKS); do \
426 bn=`basename "$$f"` && $(RM_F) "$$bn" && \
427 $(LN_S) rdf2bin$(X) "$$bn" ; \
428 done
429 $(MKDIR) $(DESTDIR)$(mandir)/man1
430 $(INSTALL_DATA) $(srcdir)/rdoff/*.1 $(DESTDIR)$(mandir)/man1/
432 doc: doc/warnings.src
433 $(MAKE) -C doc all
435 doc_install install_doc:
436 $(MAKE) -C doc install
438 everything: all manpages doc rdf
440 install_everything: everything install install_doc install_rdf
442 dist:
443 $(MAKE) alldeps
444 $(MAKE) spotless perlreq manpages spec
445 autoheader
446 autoconf
447 $(RM_RF) ./autom4te*.cache
449 tar: dist
450 tar -cvj --exclude CVS -C .. -f ../nasm-`cat version`-`date +%Y%m%d`.tar.bz2 `basename \`pwd\``
452 spec: nasm.spec
454 ALLPERLSRC := $(shell find $(srcdir) -type f -name '*.p[lh]')
456 perlbreq.si: $(ALLPERLSRC)
457 sed -n -r -e 's/^[[:space:]]*use[[:space:]]+([^[:space:];]+).*$$/BuildRequires: perl(\1)/p' $(ALLPERLSRC) | \
458 sed -r -e '/perl\((strict|warnings|Win32.*)\)/d' | \
459 sort | uniq > perlbreq.si || ( rm -f perlbreq.si ; false )
461 nasm.spec: nasm.spec.in nasm.spec.sed version.sed perlbreq.si
462 sed -f version.sed -f nasm.spec.sed \
463 < nasm.spec.in > nasm.spec || ( rm -f nasm.spec ; false )
465 splint:
466 splint -weak *.c
468 test: nasm$(X)
469 cd test && $(RUNPERL) performtest.pl --nasm=../nasm *.asm
471 golden: nasm$(X)
472 cd test && $(RUNPERL) performtest.pl --golden --nasm=../nasm *.asm
474 travis: nasm$(X)
475 $(PYTHON3) travis/nasm-t.py run
478 # Rules to run autogen if necessary
480 configure: configure.ac autoconf/aclocal.m4
481 sh autogen.sh --recheck
483 config.status: configure
484 @if [ ! -f config.status ]; then \
485 echo "*** ERROR: Need to run configure!" 1>&2 ; \
486 exit 1; \
488 sh config.status --recheck
490 Makefile: config.status Makefile.in doc/Makefile.in
491 sh config.status
493 doc/Makefile: Makefile
495 config/config.h: config.status
498 # Does this version of this file have external dependencies? This definition
499 # will be automatically updated by mkdep.pl as needed.
501 EXTERNAL_DEPENDENCIES = 1
504 # Generate dependency information for this Makefile only.
505 # If this Makefile has external dependency information, then
506 # the dependency information will remain external, so it doesn't
507 # pollute the git logs.
509 Makefile.dep: $(PERLREQ) tools/mkdep.pl config.status
510 $(RUNPERL) tools/mkdep.pl -M Makefile.in -- $(DEPDIRS)
512 dep: Makefile.dep
515 # This build dependencies in *ALL* makefiles, and forces all
516 # dependencies to be inserted inline. For that reason, it should only
517 # be invoked manually or via "make dist". It should be run before
518 # creating release archives.
520 alldeps: $(PERLREQ) tools/syncfiles.pl tools/mkdep.pl
521 $(RUNPERL) tools/syncfiles.pl Makefile.in Mkfiles/*.mak
522 $(RUNPERL) tools/mkdep.pl -i -M Makefile.in Mkfiles/*.mak -- \
523 $(DEPDIRS)
524 $(RM_F) *.dep
525 if [ -f config.status ]; then \
526 if [ $(EXTERNAL_DEPENDENCIES) -eq 1 ]; then \
527 sh config.status --recheck; \
528 fi; \
529 sh config.status; \
532 # Strip internal dependency information from all Makefiles; this makes
533 # the output good for git checkin
534 cleandeps: $(PERLREQ) tools/syncfiles.pl tools/mkdep.pl
535 $(RUNPERL) tools/syncfiles.pl Makefile.in Mkfiles/*.mak
536 $(RUNPERL) tools/mkdep.pl -e -M Makefile.in Mkfiles/*.mak -- \
537 $(DEPDIRS)
538 $(RM_F) *.dep
539 if [ -f config.status ]; then \
540 if [ $(EXTERNAL_DEPENDENCIES) -eq 0 ]; then \
541 sh config.status --recheck; \
542 fi; \
543 sh config.status; \
546 #-- Magic hints to mkdep.pl --#
547 # @object-ending: ".$(O)"
548 # @path-separator: "/"
549 # @external: "Makefile.dep"
550 # @include-command: "-include"
551 # @selfrule: "1"
552 #-- Everything below is generated by mkdep.pl - do not edit --#
553 -include Makefile.dep