rbtree: add rb_search_exact()
[nasm.git] / Makefile.in
blob8c8e1d54e9587786b0cd52bd4f69aa74ec68bbdd
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 # Optional tools
51 NROFF = @NROFF@
52 ASCIIDOC = @ASCIIDOC@
53 XMLTO = @XMLTO@
54 MAKENSIS = @MAKENSIS@
55 XZ = @XZ@
57 # Optional targets
58 MANPAGES = @MANPAGES@
59 NSIS = @NSIS@
61 MKDIR_P = @MKDIR_P@
62 RM_F = rm -f
63 RM_RF = rm -rf
64 LN_S = @LN_S@
65 FIND = find
67 # Binary suffixes
68 O = @OBJEXT@
69 X = @EXEEXT@
70 A = @LIBEXT@
72 # Debug stuff
73 ifeq ($(TRACE),1)
74 CFLAGS += -DNASM_TRACE
75 endif
77 .SUFFIXES:
78 .SUFFIXES: $(X) .$(O) .$(A) .xml .1 .c .i .s .txt
80 .PHONY: all doc rdf install clean distclean cleaner spotless install_rdf test
81 .PHONY: install_doc everything install_everything strip perlreq dist tags TAGS
82 .PHONY: nothing manpages nsis
84 .c.$(O):
85 $(CC) -c $(ALL_CFLAGS) -o $@ $<
87 .c.s:
88 $(CC) -S $(ALL_CFLAGS) -o $@ $<
90 .c.i:
91 $(CC) -E $(ALL_CFLAGS) -o $@ $<
93 .txt.xml:
94 $(ASCIIDOC) -b docbook -d manpage -o $@ $<
96 .xml.1:
97 $(XMLTO) man --skip-validation $< 2>/dev/null
99 #-- Begin File Lists --#
100 NASM = asm/nasm.$(O)
101 NDISASM = disasm/ndisasm.$(O)
103 LIBOBJ = stdlib/snprintf.$(O) stdlib/vsnprintf.$(O) stdlib/strlcpy.$(O) \
104 stdlib/strnlen.$(O) stdlib/strrchrnul.$(O) \
106 nasmlib/ver.$(O) \
107 nasmlib/alloc.$(O) nasmlib/asprintf.$(O) nasmlib/errfile.$(O) \
108 nasmlib/crc64.$(O) nasmlib/md5c.$(O) \
109 nasmlib/string.$(O) nasmlib/nctype.$(O) \
110 nasmlib/file.$(O) nasmlib/mmap.$(O) nasmlib/ilog2.$(O) \
111 nasmlib/realpath.$(O) nasmlib/path.$(O) \
112 nasmlib/filename.$(O) nasmlib/rlimit.$(O) \
113 nasmlib/zerobuf.$(O) nasmlib/readnum.$(O) nasmlib/bsi.$(O) \
114 nasmlib/rbtree.$(O) nasmlib/hashtbl.$(O) \
115 nasmlib/raa.$(O) nasmlib/saa.$(O) \
116 nasmlib/strlist.$(O) \
117 nasmlib/perfhash.$(O) nasmlib/badenum.$(O) \
119 common/common.$(O) \
121 x86/insnsa.$(O) x86/insnsb.$(O) x86/insnsd.$(O) x86/insnsn.$(O) \
122 x86/regs.$(O) x86/regvals.$(O) x86/regflags.$(O) x86/regdis.$(O) \
123 x86/disp8.$(O) x86/iflag.$(O) \
125 asm/error.$(O) asm/warnings.$(O) \
126 asm/floats.$(O) \
127 asm/directiv.$(O) asm/directbl.$(O) \
128 asm/pragma.$(O) \
129 asm/assemble.$(O) asm/labels.$(O) asm/parser.$(O) \
130 asm/preproc.$(O) asm/quote.$(O) asm/pptok.$(O) \
131 asm/listing.$(O) asm/eval.$(O) asm/exprlib.$(O) asm/exprdump.$(O) \
132 asm/stdscan.$(O) \
133 asm/strfunc.$(O) asm/tokhash.$(O) \
134 asm/segalloc.$(O) \
135 asm/preproc-nop.$(O) \
136 asm/rdstrnum.$(O) \
137 asm/srcfile.$(O) \
138 macros/macros.$(O) \
140 output/outform.$(O) output/outlib.$(O) output/legacy.$(O) \
141 output/nulldbg.$(O) output/nullout.$(O) \
142 output/outbin.$(O) output/outaout.$(O) output/outcoff.$(O) \
143 output/outelf.$(O) \
144 output/outobj.$(O) output/outas86.$(O) output/outrdf2.$(O) \
145 output/outdbg.$(O) output/outieee.$(O) output/outmacho.$(O) \
146 output/codeview.$(O) \
148 disasm/disasm.$(O) disasm/sync.$(O)
150 SUBDIRS = stdlib nasmlib output asm disasm x86 common macros
151 XSUBDIRS = test doc nsis rdoff
152 DEPDIRS = . include config x86 rdoff $(SUBDIRS)
153 #-- End File Lists --#
155 all: dirs
156 $(MAKE) nasm$(X) ndisasm$(X) rdf
158 NASMLIB = libnasm.$(A)
160 dirs:
161 $(MKDIR_P) $(SUBDIRS) $(XSUBDIRS)
163 $(NASMLIB): $(LIBOBJ)
164 $(RM_F) $(NASMLIB)
165 $(AR) cq $(NASMLIB) $(LIBOBJ)
166 $(RANLIB) $(NASMLIB)
168 nasm$(X): $(NASM) $(NASMLIB)
169 $(CC) $(ALL_LDFLAGS) -o nasm$(X) $(NASM) $(NASMLIB) $(LIBS)
171 ndisasm$(X): $(NDISASM) $(NASMLIB)
172 $(CC) $(ALL_LDFLAGS) -o ndisasm$(X) $(NDISASM) $(NASMLIB) $(LIBS)
174 #-- Begin Generated File Rules --#
176 # These source files are automagically generated from data files using
177 # Perl scripts. They're distributed, though, so it isn't necessary to
178 # have Perl just to recompile NASM from the distribution.
180 # Perl-generated source files
181 PERLREQ = x86/insnsb.c x86/insnsa.c x86/insnsd.c x86/insnsi.h x86/insnsn.c \
182 x86/regs.c x86/regs.h x86/regflags.c x86/regdis.c x86/regdis.h \
183 x86/regvals.c asm/tokhash.c asm/tokens.h asm/pptok.h asm/pptok.c \
184 x86/iflag.c x86/iflaggen.h \
185 macros/macros.c \
186 asm/pptok.ph asm/directbl.c asm/directiv.h \
187 asm/warnings.c include/warnings.h doc/warnings.src \
188 version.h version.mac version.mak nsis/version.nsh
190 INSDEP = x86/insns.dat x86/insns.pl x86/insns-iflags.ph x86/iflags.ph
192 x86/iflag.c: $(INSDEP)
193 $(RUNPERL) $(srcdir)/x86/insns.pl -fc \
194 $(srcdir)/x86/insns.dat x86/iflag.c
195 x86/iflaggen.h: $(INSDEP)
196 $(RUNPERL) $(srcdir)/x86/insns.pl -fh \
197 $(srcdir)/x86/insns.dat x86/iflaggen.h
198 x86/insnsb.c: $(INSDEP)
199 $(RUNPERL) $(srcdir)/x86/insns.pl -b \
200 $(srcdir)/x86/insns.dat x86/insnsb.c
201 x86/insnsa.c: $(INSDEP)
202 $(RUNPERL) $(srcdir)/x86/insns.pl -a \
203 $(srcdir)/x86/insns.dat x86/insnsa.c
204 x86/insnsd.c: $(INSDEP)
205 $(RUNPERL) $(srcdir)/x86/insns.pl -d \
206 $(srcdir)/x86/insns.dat x86/insnsd.c
207 x86/insnsi.h: $(INSDEP)
208 $(RUNPERL) $(srcdir)/x86/insns.pl -i \
209 $(srcdir)/x86/insns.dat x86/insnsi.h
210 x86/insnsn.c: $(INSDEP)
211 $(RUNPERL) $(srcdir)/x86/insns.pl -n \
212 $(srcdir)/x86/insns.dat x86/insnsn.c
214 # These files contains all the standard macros that are derived from
215 # the version number.
216 version.h: version version.pl
217 $(RUNPERL) $(srcdir)/version.pl h < $(srcdir)/version > version.h
218 version.mac: version version.pl
219 $(RUNPERL) $(srcdir)/version.pl mac < $(srcdir)/version > version.mac
220 version.sed: version version.pl
221 $(RUNPERL) $(srcdir)/version.pl sed < $(srcdir)/version > version.sed
222 version.mak: version version.pl
223 $(RUNPERL) $(srcdir)/version.pl make < $(srcdir)/version > version.mak
224 nsis/version.nsh: version version.pl
225 $(RUNPERL) $(srcdir)/version.pl nsis < $(srcdir)/version > nsis/version.nsh
227 # This source file is generated from the standard macros file
228 # `standard.mac' by another Perl script. Again, it's part of the
229 # standard distribution.
230 macros/macros.c: macros/macros.pl asm/pptok.ph version.mac \
231 $(srcdir)/macros/*.mac $(srcdir)/output/*.mac
232 $(RUNPERL) $(srcdir)/macros/macros.pl version.mac \
233 $(srcdir)/macros/*.mac $(srcdir)/output/*.mac
235 # These source files are generated from regs.dat by yet another
236 # perl script.
237 x86/regs.c: x86/regs.dat x86/regs.pl
238 $(RUNPERL) $(srcdir)/x86/regs.pl c \
239 $(srcdir)/x86/regs.dat > x86/regs.c
240 x86/regflags.c: x86/regs.dat x86/regs.pl
241 $(RUNPERL) $(srcdir)/x86/regs.pl fc \
242 $(srcdir)/x86/regs.dat > x86/regflags.c
243 x86/regdis.c: x86/regs.dat x86/regs.pl
244 $(RUNPERL) $(srcdir)/x86/regs.pl dc \
245 $(srcdir)/x86/regs.dat > x86/regdis.c
246 x86/regdis.h: x86/regs.dat x86/regs.pl
247 $(RUNPERL) $(srcdir)/x86/regs.pl dh \
248 $(srcdir)/x86/regs.dat > x86/regdis.h
249 x86/regvals.c: x86/regs.dat x86/regs.pl
250 $(RUNPERL) $(srcdir)/x86/regs.pl vc \
251 $(srcdir)/x86/regs.dat > x86/regvals.c
252 x86/regs.h: x86/regs.dat x86/regs.pl
253 $(RUNPERL) $(srcdir)/x86/regs.pl h \
254 $(srcdir)/x86/regs.dat > x86/regs.h
256 # Extract warnings from source code. Since this depends on
257 # ALL the source files, this is only done on demand.
258 WARNFILES = asm/warnings.c include/warnings.h doc/warnings.src
260 warnings:
261 $(RM_F) $(WARNFILES)
262 $(MAKE) $(WARNFILES)
264 asm/warnings.c: asm/warnings.pl
265 $(RUNPERL) $(srcdir)/asm/warnings.pl c asm/warnings.c $(srcdir)
267 include/warnings.h: asm/warnings.pl
268 $(RUNPERL) $(srcdir)/asm/warnings.pl h include/warnings.h $(srcdir)
270 doc/warnings.src: asm/warnings.pl
271 $(RUNPERL) $(srcdir)/asm/warnings.pl doc doc/warnings.src $(srcdir)
273 # Assembler token hash
274 asm/tokhash.c: x86/insns.dat x86/regs.dat asm/tokens.dat asm/tokhash.pl \
275 perllib/phash.ph
276 $(RUNPERL) $(srcdir)/asm/tokhash.pl c \
277 $(srcdir)/x86/insns.dat $(srcdir)/x86/regs.dat \
278 $(srcdir)/asm/tokens.dat > asm/tokhash.c
280 # Assembler token metadata
281 asm/tokens.h: x86/insns.dat x86/regs.dat asm/tokens.dat asm/tokhash.pl \
282 perllib/phash.ph
283 $(RUNPERL) $(srcdir)/asm/tokhash.pl h \
284 $(srcdir)/x86/insns.dat $(srcdir)/x86/regs.dat \
285 $(srcdir)/asm/tokens.dat > asm/tokens.h
287 # Preprocessor token hash
288 asm/pptok.h: asm/pptok.dat asm/pptok.pl perllib/phash.ph
289 $(RUNPERL) $(srcdir)/asm/pptok.pl h \
290 $(srcdir)/asm/pptok.dat asm/pptok.h
291 asm/pptok.c: asm/pptok.dat asm/pptok.pl perllib/phash.ph
292 $(RUNPERL) $(srcdir)/asm/pptok.pl c \
293 $(srcdir)/asm/pptok.dat asm/pptok.c
294 asm/pptok.ph: asm/pptok.dat asm/pptok.pl perllib/phash.ph
295 $(RUNPERL) $(srcdir)/asm/pptok.pl ph \
296 $(srcdir)/asm/pptok.dat asm/pptok.ph
298 # Directives hash
299 asm/directiv.h: asm/directiv.dat nasmlib/perfhash.pl perllib/phash.ph
300 $(RUNPERL) $(srcdir)/nasmlib/perfhash.pl h \
301 $(srcdir)/asm/directiv.dat asm/directiv.h
302 asm/directbl.c: asm/directiv.dat nasmlib/perfhash.pl perllib/phash.ph
303 $(RUNPERL) $(srcdir)/nasmlib/perfhash.pl c \
304 $(srcdir)/asm/directiv.dat asm/directbl.c
306 #-- End Generated File Rules --#
308 perlreq: $(PERLREQ)
310 # This rule is only used for RDOFF
311 .$(O)$(X):
312 $(CC) $(ALL_LDFLAGS) -o $@ $< $(RDFLIB) $(NASMLIB) $(LIBS)
314 RDFLN = cd rdoff && ln -s
315 RDFLNPFX =
317 #-- Begin RDOFF Shared Rules --#
319 RDFLIBOBJ = rdoff/rdoff.$(O) rdoff/rdfload.$(O) rdoff/symtab.$(O) \
320 rdoff/collectn.$(O) rdoff/rdlib.$(O) rdoff/segtab.$(O) \
321 rdoff/hash.$(O)
323 RDFPROGS = rdoff/rdfdump$(X) rdoff/ldrdf$(X) rdoff/rdx$(X) rdoff/rdflib$(X) \
324 rdoff/rdf2bin$(X)
325 RDF2BINLINKS = rdoff/rdf2com$(X) rdoff/rdf2ith$(X) \
326 rdoff/rdf2ihx$(X) rdoff/rdf2srec$(X)
328 RDFLIB = rdoff/librdoff.$(A)
329 RDFLIBS = $(RDFLIB) $(NASMLIB)
331 rdoff/rdfdump$(X): rdoff/rdfdump.$(O) $(RDFLIBS)
332 rdoff/ldrdf$(X): rdoff/ldrdf.$(O) $(RDFLIBS)
333 rdoff/rdx$(X): rdoff/rdx.$(O) $(RDFLIBS)
334 rdoff/rdflib$(X): rdoff/rdflib.$(O) $(RDFLIBS)
335 rdoff/rdf2bin$(X): rdoff/rdf2bin.$(O) $(RDFLIBS)
336 rdoff/rdf2com$(X): rdoff/rdf2bin$(X)
337 $(RM_F) rdoff/rdf2com$(X)
338 $(RDFLN) $(RDFLNPFX)rdf2bin$(X) $(RDFLNPFX)rdf2com$(X)
339 rdoff/rdf2ith$(X): rdoff/rdf2bin$(X)
340 $(RM_F) rdoff/rdf2ith$(X)
341 $(RDFLN) $(RDFLNPFX)rdf2bin$(X) $(RDFLNPFX)rdf2ith$(X)
342 rdoff/rdf2ihx$(X): rdoff/rdf2bin$(X)
343 $(RM_F) rdoff/rdf2ihx$(X)
344 $(RDFLN) $(RDFLNPFX)rdf2bin$(X) $(RDFLNPFX)rdf2ihx$(X)
345 rdoff/rdf2srec$(X): rdoff/rdf2bin$(X)
346 $(RM_F) rdoff/rdf2srec$(X)
347 $(RDFLN) $(RDFLNPFX)rdf2bin$(X) $(RDFLNPFX)rdf2srec$(X)
349 #-- End RDOFF Shared Rules --#
351 rdf: $(RDFPROGS) $(RDF2BINLINKS)
353 $(RDFLIB): $(RDFLIBOBJ)
354 $(RM_F) $(RDFLIB)
355 $(AR) cq $(RDFLIB) $(RDFLIBOBJ)
356 $(RANLIB) $(RDFLIB)
358 #-- Begin NSIS Rules --#
360 nsis/arch.nsh: nsis/getpearch.pl nasm$(X)
361 $(PERL) $(srcdir)/nsis/getpearch.pl nasm$(X) > nsis/arch.nsh
363 # Should only be done after "make everything".
364 # The use of redirection here keeps makensis from moving the cwd to the
365 # source directory.
366 nsis: nsis/nasm.nsi nsis/arch.nsh nsis/version.nsh
367 $(MAKENSIS) -Dsrcdir="$(srcdir)" -Dobjdir="$(objdir)" - < nsis/nasm.nsi
369 #-- End NSIS Rules --#
371 # Generated manpages, also pregenerated for distribution
372 manpages: nasm.1 ndisasm.1
374 install: nasm$(X) ndisasm$(X)
375 $(MKDIR_P) $(DESTDIR)$(bindir)
376 $(INSTALL_PROGRAM) nasm$(X) $(DESTDIR)$(bindir)/nasm$(X)
377 $(INSTALL_PROGRAM) ndisasm$(X) $(DESTDIR)$(bindir)/ndisasm$(X)
378 $(MKDIR_P) $(DESTDIR)$(mandir)/man1
379 $(INSTALL_DATA) $(srcdir)/nasm.1 $(DESTDIR)$(mandir)/man1/nasm.1
380 $(INSTALL_DATA) $(srcdir)/ndisasm.1 $(DESTDIR)$(mandir)/man1/ndisasm.1
382 clean:
383 for d in . $(SUBDIRS) $(XSUBDIRS); do \
384 $(RM_F) "$$d"/*.$(O) "$$d"/*.s "$$d"/*.i "$$d"/*.$(A) ; \
385 done
386 $(RM_F) nasm$(X) ndisasm$(X)
387 $(RM_F) nasm-*-installer-*.exe
388 $(RM_F) tags TAGS
389 $(RM_F) nsis/arch.nsh
390 $(RM_F) perlbreq.si
391 $(RM_F) $(RDFPROGS) $(RDF2BINLINKS)
393 distclean: clean
394 $(RM_F) config.log config.status config/config.h
395 for d in . $(SUBDIRS) $(XSUBDIRS); do \
396 $(RM_F) "$$d"/.\# "$$d"/\# "$$d"/*~ "$$d"/*.bak \
397 "$$d"/*.lst "$$d"/*.bin ; \
398 done
399 $(RM_F) test/*.$(O)
400 $(RM_RF) autom4te*.cache
401 $(RM_F) Makefile *.dep
403 cleaner: clean
404 $(RM_F) $(PERLREQ) *.1 nasm.spec
405 $(MAKE) -C doc clean
406 $(RM_F) *.dep
408 spotless: distclean cleaner
409 $(RM_F) doc/Makefile
411 strip:
412 $(STRIP) --strip-unneeded nasm$(X) ndisasm$(X)
414 TAGS:
415 $(RM_F) TAGS
416 $(FIND) . -name '*.[hcS]' -print | xargs etags -a
418 tags:
419 $(RM_F) tags
420 $(FIND) . -name '*.[hcS]' -print | xargs ctags -a
422 cscope:
423 $(RM_F) cscope.out cscope.files
424 $(FIND) . -name '*.[hcS]' -print > cscope.files
425 cscope -b -f cscope.out
427 rdf_install install_rdf install_rdoff:
428 $(MKDIR_P) $(DESTDIR)$(bindir)
429 for f in $(RDFPROGS); do \
430 $(INSTALL_PROGRAM) "$$f" '$(DESTDIR)$(bindir)'/ ; \
431 done
432 cd '$(DESTDIR)$(bindir)' && \
433 for f in $(RDF2BINLINKS); do \
434 bn=`basename "$$f"` && $(RM_F) "$$bn" && \
435 $(LN_S) rdf2bin$(X) "$$bn" ; \
436 done
437 $(MKDIR_P) $(DESTDIR)$(mandir)/man1
438 $(INSTALL_DATA) $(srcdir)/rdoff/*.1 $(DESTDIR)$(mandir)/man1/
440 doc: doc/warnings.src
441 $(MAKE) -C doc all
443 doc_install install_doc:
444 $(MAKE) -C doc install
446 # Dummy target to prevent accidental invocation of the default "all" target
447 nothing:
449 always_everything: dirs
450 $(MAKE) all doc
452 everything: always_everything
453 $(MAKE) $(MANPAGES) $(NSIS) nothing
455 install_everything: everything install install_doc install_rdf
457 dist:
458 $(MAKE) alldeps
459 $(MAKE) spotless perlreq manpages spec $(MANPAGES)
460 autoheader
461 autoconf
462 $(RM_RF) ./autom4te*.cache
464 tar: dist
465 tar -cv --exclude CVS -C .. -f - | \
466 $(XZ) -9e > \
467 ../nasm-`cat version`-`date +%Y%m%d`.tar.xz `basename \`pwd\``
469 spec: nasm.spec
471 ALLPERLSRC := $(shell find $(srcdir) -type f -name '*.p[lh]')
473 perlbreq.si: $(ALLPERLSRC)
474 sed -n -r -e 's/^[[:space:]]*use[[:space:]]+([^[:space:];]+).*$$/BuildRequires: perl(\1)/p' $(ALLPERLSRC) | \
475 sed -r -e '/perl\((strict|warnings|Win32.*)\)/d' | \
476 sort | uniq > perlbreq.si
478 nasm.spec: nasm.spec.in nasm.spec.sed version.sed perlbreq.si
479 sed -f version.sed -f nasm.spec.sed \
480 < nasm.spec.in > nasm.spec
482 splint:
483 splint -weak *.c
485 test: nasm$(X)
486 cd test && $(RUNPERL) performtest.pl --nasm=../nasm *.asm
488 golden: nasm$(X)
489 cd test && $(RUNPERL) performtest.pl --golden --nasm=../nasm *.asm
491 travis: nasm$(X)
492 $(PYTHON3) travis/nasm-t.py run
495 # Rules to run autogen if necessary
497 configure: configure.ac autoconf/aclocal.m4
498 sh autogen.sh --recheck
500 config.status: configure
501 @if [ ! -f config.status ]; then \
502 echo "*** ERROR: Need to run configure!" 1>&2 ; \
503 exit 1; \
505 sh config.status --recheck
507 Makefile: config.status Makefile.in doc/Makefile.in
508 sh config.status
510 doc/Makefile: Makefile
512 config/config.h: config.status
515 # Dummy rules that changes make behavior
516 # (at end to avoid confusing non-GNU makes)
518 .SECONDARY:
520 .DELETE_ON_ERROR:
523 # Does this version of this file have external dependencies? This definition
524 # will be automatically updated by mkdep.pl as needed.
526 EXTERNAL_DEPENDENCIES = 1
529 # Generate dependency information for this Makefile only.
530 # If this Makefile has external dependency information, then
531 # the dependency information will remain external, so it doesn't
532 # pollute the git logs.
534 Makefile.dep: $(PERLREQ) tools/mkdep.pl config.status
535 $(RUNPERL) tools/mkdep.pl -M Makefile.in -- $(DEPDIRS)
537 dep: Makefile.dep
540 # This build dependencies in *ALL* makefiles, and forces all
541 # dependencies to be inserted inline. For that reason, it should only
542 # be invoked manually or via "make dist". It should be run before
543 # creating release archives.
545 alldeps: $(PERLREQ) tools/syncfiles.pl tools/mkdep.pl
546 $(RUNPERL) tools/syncfiles.pl Makefile.in Mkfiles/*.mak
547 $(RUNPERL) tools/mkdep.pl -i -M Makefile.in Mkfiles/*.mak -- \
548 $(DEPDIRS)
549 $(RM_F) *.dep
550 if [ -f config.status ]; then \
551 sh config.status; \
554 # Strip internal dependency information from all Makefiles; this makes
555 # the output good for git checkin
556 cleandeps: $(PERLREQ) tools/syncfiles.pl tools/mkdep.pl
557 $(RUNPERL) tools/syncfiles.pl Makefile.in Mkfiles/*.mak
558 $(RUNPERL) tools/mkdep.pl -e -M Makefile.in Mkfiles/*.mak -- \
559 $(DEPDIRS)
560 $(RM_F) *.dep
561 if [ -f config.status ]; then \
562 sh config.status; \
565 #-- Magic hints to mkdep.pl --#
566 # @object-ending: ".$(O)"
567 # @path-separator: "/"
568 # @external: "Makefile.dep"
569 # @include-command: "include"
570 # @selfrule: "1"
571 #-- Everything below is generated by mkdep.pl - do not edit --#
572 include Makefile.dep