1 # Makefile.in generated automatically by automake 1.4 from Makefile.am
3 # Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
4 # This Makefile.in is free software; the Free Software Foundation
5 # gives unlimited permission to copy and/or distribute it,
6 # with or without modifications, as long as this notice is preserved.
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
10 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
13 # don't enforce GNU packaging standards
19 top_srcdir = @top_srcdir@
22 exec_prefix = @exec_prefix@
26 libexecdir = @libexecdir@
28 sysconfdir = @sysconfdir@
29 sharedstatedir = @sharedstatedir@
30 localstatedir = @localstatedir@
34 includedir = @includedir@
35 oldincludedir = /usr/include
39 pkgdatadir = $(datadir)/@PACKAGE@
40 pkglibdir = $(libdir)/@PACKAGE@
41 pkgincludedir = $(includedir)/@PACKAGE@
48 AUTOHEADER = @AUTOHEADER@
51 INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS)
52 INSTALL_DATA = @INSTALL_DATA@
53 INSTALL_SCRIPT = @INSTALL_SCRIPT@
54 transform = @program_transform_name@
68 AUTOMAKE_OPTIONS = foreign no-dependencies
72 data_DATA = magic magic.mime magic.mgc magic.mime.mgc
74 MAGIC = @datadir@/magic
75 CPPFLAGS = -DMAGIC='"$(MAGIC)"'
76 @FSECT5_TRUE@man_MAGIC = magic.5
77 @FSECT5_FALSE@man_MAGIC = magic.4
79 man_MANS = file.1 $(man_MAGIC)
81 file_SOURCES = file.c apprentice.c fsmagic.c softmagic.c ascmagic.c compress.c is_tar.c readelf.c print.c file.h names.h patchlevel.h readelf.h tar.h
84 EXTRA_DIST = LEGAL.NOTICE MAINT PORTING Makefile.std magic2mime Localstuff Header $(magic_FRAGMENTS) file.man magic.man
87 CLEANFILES = $(man_MANS) magic magic.mgc magic.mime.mgc
89 magic_FRAGMENTS = Magdir/acorn Magdir/adi Magdir/adventure Magdir/allegro Magdir/alliant Magdir/alpha Magdir/amanda Magdir/amigaos Magdir/animation Magdir/apl Magdir/apple Magdir/applix Magdir/archive Magdir/asterix Magdir/att3b Magdir/audio Magdir/blender Magdir/blit Magdir/bsdi Magdir/c-lang Magdir/cddb Magdir/chi Magdir/cisco Magdir/citrus Magdir/claris Magdir/clipper Magdir/commands Magdir/compress Magdir/console Magdir/convex Magdir/ctags Magdir/cvs Magdir/database Magdir/diamond Magdir/diff Magdir/digital Magdir/dolby Magdir/dump Magdir/dyadic Magdir/editors Magdir/elf Magdir/encore Magdir/epoc Magdir/filesystems Magdir/flash Magdir/fonts Magdir/frame Magdir/freebsd Magdir/fsav Magdir/gimp Magdir/gnu Magdir/grace Magdir/gringotts Magdir/hitachi-sh Magdir/hp Magdir/ibm370 Magdir/ibm6000 Magdir/iff Magdir/images Magdir/impulse Magdir/intel Magdir/interleaf Magdir/island Magdir/ispell Magdir/java Magdir/jpeg Magdir/karma Magdir/lecter Magdir/lex Magdir/lif Magdir/linux Magdir/lisp Magdir/mach Magdir/macintosh Magdir/magic Magdir/mail.news Magdir/maple Magdir/mathematica Magdir/mcrypt Magdir/mime Magdir/mips Magdir/mirage Magdir/mkid Magdir/mmdf Magdir/mlssa Magdir/modem Magdir/motorola Magdir/msdos Magdir/msvc Magdir/natinst Magdir/ncr Magdir/netbsd Magdir/netscape Magdir/news Magdir/nitpicker Magdir/octave Magdir/olf Magdir/os2 Magdir/os9 Magdir/osf1 Magdir/palm Magdir/parix Magdir/pbm Magdir/pdf Magdir/pdp Magdir/perl Magdir/pgp Magdir/pkgadd Magdir/plus5 Magdir/printer Magdir/project Magdir/psdbms Magdir/pulsar Magdir/pyramid Magdir/python Magdir/riff Magdir/rpm Magdir/rtf Magdir/sc Magdir/sccs Magdir/sendmail Magdir/sequent Magdir/sgml Magdir/sharc Magdir/sketch Magdir/smalltalk Magdir/sniffer Magdir/softquad Magdir/spectrum Magdir/sun Magdir/sysex Magdir/teapot Magdir/terminfo Magdir/tex Magdir/tgif Magdir/ti-8x Magdir/timezone Magdir/troff Magdir/tuxedo Magdir/typeset Magdir/unknown Magdir/uuencode Magdir/varied.out Magdir/vax Magdir/vicar Magdir/visx Magdir/vms Magdir/vmware Magdir/vorbis Magdir/vxl Magdir/wordperfect Magdir/xdelta Magdir/xenix Magdir/zilog Magdir/zyxel
91 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
92 mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
93 CONFIG_HEADER = config.h
95 PROGRAMS = $(bin_PROGRAMS)
98 DEFS = @DEFS@ -I. -I$(srcdir) -I.
101 file_OBJECTS = file.o apprentice.o fsmagic.o softmagic.o ascmagic.o \
102 compress.o is_tar.o readelf.o print.o
103 file_LDADD = $(LDADD)
107 COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
109 LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
110 man1dir = $(mandir)/man1
111 man4dir = $(mandir)/man4
112 man5dir = $(mandir)/man5
118 DIST_COMMON = README ./stamp-h.in Makefile.am Makefile.in acconfig.h \
119 acinclude.m4 aclocal.m4 config.h.in configure configure.in install-sh \
120 missing mkinstalldirs
123 DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
127 SOURCES = $(file_SOURCES)
128 OBJECTS = $(file_OBJECTS)
132 .SUFFIXES: .S .c .o .s
133 $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
134 cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile
136 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
138 && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
140 $(ACLOCAL_M4): configure.in acinclude.m4
141 cd $(srcdir) && $(ACLOCAL)
143 config.status: $(srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
144 $(SHELL) ./config.status --recheck
145 $(srcdir)/configure: $(srcdir)/configure.in $(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES)
146 cd $(srcdir) && $(AUTOCONF)
149 @if test ! -f $@; then \
153 stamp-h: $(srcdir)/config.h.in $(top_builddir)/config.status
155 && CONFIG_FILES= CONFIG_HEADERS=config.h \
156 $(SHELL) ./config.status
157 @echo timestamp > stamp-h 2> /dev/null
158 $(srcdir)/config.h.in: $(srcdir)/stamp-h.in
159 @if test ! -f $@; then \
160 rm -f $(srcdir)/stamp-h.in; \
161 $(MAKE) $(srcdir)/stamp-h.in; \
163 $(srcdir)/stamp-h.in: $(top_srcdir)/configure.in $(ACLOCAL_M4) acconfig.h
164 cd $(top_srcdir) && $(AUTOHEADER)
165 @echo timestamp > $(srcdir)/stamp-h.in 2> /dev/null
174 maintainer-clean-hdr:
176 mostlyclean-binPROGRAMS:
179 -test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS)
181 distclean-binPROGRAMS:
183 maintainer-clean-binPROGRAMS:
185 install-binPROGRAMS: $(bin_PROGRAMS)
187 $(mkinstalldirs) $(DESTDIR)$(bindir)
188 @list='$(bin_PROGRAMS)'; for p in $$list; do \
189 if test -f $$p; then \
190 echo " $(INSTALL_PROGRAM) $$p $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`"; \
191 $(INSTALL_PROGRAM) $$p $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \
195 uninstall-binPROGRAMS:
197 list='$(bin_PROGRAMS)'; for p in $$list; do \
198 rm -f $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \
211 -rm -f *.o core *.core
218 maintainer-clean-compile:
220 file: $(file_OBJECTS) $(file_DEPENDENCIES)
222 $(LINK) $(file_LDFLAGS) $(file_OBJECTS) $(file_LDADD) $(LIBS)
225 $(mkinstalldirs) $(DESTDIR)$(man1dir)
226 @list='$(man1_MANS)'; \
227 l2='$(man_MANS)'; for i in $$l2; do \
229 *.1*) list="$$list $$i" ;; \
232 for i in $$list; do \
233 if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \
235 ext=`echo $$i | sed -e 's/^.*\\.//'`; \
236 inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
237 inst=`echo $$inst | sed '$(transform)'`.$$ext; \
238 echo " $(INSTALL_DATA) $$file $(DESTDIR)$(man1dir)/$$inst"; \
239 $(INSTALL_DATA) $$file $(DESTDIR)$(man1dir)/$$inst; \
243 @list='$(man1_MANS)'; \
244 l2='$(man_MANS)'; for i in $$l2; do \
246 *.1*) list="$$list $$i" ;; \
249 for i in $$list; do \
250 ext=`echo $$i | sed -e 's/^.*\\.//'`; \
251 inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
252 inst=`echo $$inst | sed '$(transform)'`.$$ext; \
253 echo " rm -f $(DESTDIR)$(man1dir)/$$inst"; \
254 rm -f $(DESTDIR)$(man1dir)/$$inst; \
258 $(mkinstalldirs) $(DESTDIR)$(man4dir)
259 @list='$(man4_MANS)'; \
260 l2='$(man_MANS)'; for i in $$l2; do \
262 *.4*) list="$$list $$i" ;; \
265 for i in $$list; do \
266 if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \
268 ext=`echo $$i | sed -e 's/^.*\\.//'`; \
269 inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
270 inst=`echo $$inst | sed '$(transform)'`.$$ext; \
271 echo " $(INSTALL_DATA) $$file $(DESTDIR)$(man4dir)/$$inst"; \
272 $(INSTALL_DATA) $$file $(DESTDIR)$(man4dir)/$$inst; \
276 @list='$(man4_MANS)'; \
277 l2='$(man_MANS)'; for i in $$l2; do \
279 *.4*) list="$$list $$i" ;; \
282 for i in $$list; do \
283 ext=`echo $$i | sed -e 's/^.*\\.//'`; \
284 inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
285 inst=`echo $$inst | sed '$(transform)'`.$$ext; \
286 echo " rm -f $(DESTDIR)$(man4dir)/$$inst"; \
287 rm -f $(DESTDIR)$(man4dir)/$$inst; \
291 $(mkinstalldirs) $(DESTDIR)$(man5dir)
292 @list='$(man5_MANS)'; \
293 l2='$(man_MANS)'; for i in $$l2; do \
295 *.5*) list="$$list $$i" ;; \
298 for i in $$list; do \
299 if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \
301 ext=`echo $$i | sed -e 's/^.*\\.//'`; \
302 inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
303 inst=`echo $$inst | sed '$(transform)'`.$$ext; \
304 echo " $(INSTALL_DATA) $$file $(DESTDIR)$(man5dir)/$$inst"; \
305 $(INSTALL_DATA) $$file $(DESTDIR)$(man5dir)/$$inst; \
309 @list='$(man5_MANS)'; \
310 l2='$(man_MANS)'; for i in $$l2; do \
312 *.5*) list="$$list $$i" ;; \
315 for i in $$list; do \
316 ext=`echo $$i | sed -e 's/^.*\\.//'`; \
317 inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
318 inst=`echo $$inst | sed '$(transform)'`.$$ext; \
319 echo " rm -f $(DESTDIR)$(man5dir)/$$inst"; \
320 rm -f $(DESTDIR)$(man5dir)/$$inst; \
324 $(MAKE) $(AM_MAKEFLAGS) install-man1 install-man4 install-man5
327 $(MAKE) $(AM_MAKEFLAGS) uninstall-man1 uninstall-man4 uninstall-man5
329 install-dataDATA: $(data_DATA)
331 $(mkinstalldirs) $(DESTDIR)$(datadir)
332 @list='$(data_DATA)'; for p in $$list; do \
333 if test -f $(srcdir)/$$p; then \
334 echo " $(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(datadir)/$$p"; \
335 $(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(datadir)/$$p; \
336 else if test -f $$p; then \
337 echo " $(INSTALL_DATA) $$p $(DESTDIR)$(datadir)/$$p"; \
338 $(INSTALL_DATA) $$p $(DESTDIR)$(datadir)/$$p; \
344 list='$(data_DATA)'; for p in $$list; do \
345 rm -f $(DESTDIR)$(datadir)/$$p; \
350 ID: $(HEADERS) $(SOURCES) $(LISP)
351 list='$(SOURCES) $(HEADERS)'; \
352 unique=`for i in $$list; do echo $$i; done | \
353 awk ' { files[$$0] = 1; } \
354 END { for (i in files) print i; }'`; \
355 here=`pwd` && cd $(srcdir) \
356 && mkid -f$$here/ID $$unique $(LISP)
358 TAGS: $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) $(LISP)
361 list='$(SOURCES) $(HEADERS)'; \
362 unique=`for i in $$list; do echo $$i; done | \
363 awk ' { files[$$0] = 1; } \
364 END { for (i in files) print i; }'`; \
365 test -z "$(ETAGS_ARGS)config.h.in$$unique$(LISP)$$tags" \
366 || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags config.h.in $$unique $(LISP) -o $$here/TAGS)
375 maintainer-clean-tags:
377 distdir = $(PACKAGE)-$(VERSION)
378 top_distdir = $(distdir)
380 # This target untars the dist file and tries a VPATH configuration. Then
381 # it guarantees that the distribution is self-contained by making another
385 GZIP=$(GZIP_ENV) $(TAR) zxf $(distdir).tar.gz
386 mkdir $(distdir)/=build
387 mkdir $(distdir)/=inst
388 dc_install_base=`cd $(distdir)/=inst && pwd`; \
389 cd $(distdir)/=build \
390 && ../configure --srcdir=.. --prefix=$$dc_install_base \
391 && $(MAKE) $(AM_MAKEFLAGS) \
392 && $(MAKE) $(AM_MAKEFLAGS) dvi \
393 && $(MAKE) $(AM_MAKEFLAGS) check \
394 && $(MAKE) $(AM_MAKEFLAGS) install \
395 && $(MAKE) $(AM_MAKEFLAGS) installcheck \
396 && $(MAKE) $(AM_MAKEFLAGS) dist
398 @banner="$(distdir).tar.gz is ready for distribution"; \
399 dashes=`echo "$$banner" | sed s/./=/g`; \
404 -chmod -R a+r $(distdir)
405 GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir)
408 -chmod -R a+r $(distdir)
409 GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir)
411 distdir: $(DISTFILES)
414 -chmod 777 $(distdir)
415 $(mkinstalldirs) $(distdir)/Magdir
416 @for file in $(DISTFILES); do \
418 if test -d $$d/$$file; then \
419 cp -pr $$/$$file $(distdir)/$$file; \
421 test -f $(distdir)/$$file \
422 || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
423 || cp -p $$d/$$file $(distdir)/$$file || :; \
433 installcheck: installcheck-am
434 all-recursive-am: config.h
435 $(MAKE) $(AM_MAKEFLAGS) all-recursive
437 install-exec-am: install-binPROGRAMS
438 install-exec: install-exec-am
440 install-data-am: install-man install-dataDATA
441 install-data: install-data-am
444 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
446 uninstall-am: uninstall-binPROGRAMS uninstall-man uninstall-dataDATA
447 uninstall: uninstall-am
448 all-am: Makefile $(PROGRAMS) $(MANS) $(DATA) config.h
451 $(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
453 $(mkinstalldirs) $(DESTDIR)$(bindir) $(DESTDIR)$(mandir)/man1 \
454 $(DESTDIR)$(mandir)/man4 $(DESTDIR)$(mandir)/man5 \
461 -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
464 -rm -f Makefile $(CONFIG_CLEAN_FILES)
465 -rm -f config.cache config.log stamp-h stamp-h[0-9]*
467 maintainer-clean-generic:
468 mostlyclean-am: mostlyclean-hdr mostlyclean-binPROGRAMS \
469 mostlyclean-compile mostlyclean-tags \
472 mostlyclean: mostlyclean-am
474 clean-am: clean-hdr clean-binPROGRAMS clean-compile clean-tags \
475 clean-generic mostlyclean-am
479 distclean-am: distclean-hdr distclean-binPROGRAMS distclean-compile \
480 distclean-tags distclean-generic clean-am
482 distclean: distclean-am
485 maintainer-clean-am: maintainer-clean-hdr maintainer-clean-binPROGRAMS \
486 maintainer-clean-compile maintainer-clean-tags \
487 maintainer-clean-generic distclean-am
488 @echo "This command is intended for maintainers to use;"
489 @echo "it deletes files that may require special tools to rebuild."
491 maintainer-clean: maintainer-clean-am
494 .PHONY: mostlyclean-hdr distclean-hdr clean-hdr maintainer-clean-hdr \
495 mostlyclean-binPROGRAMS distclean-binPROGRAMS clean-binPROGRAMS \
496 maintainer-clean-binPROGRAMS uninstall-binPROGRAMS install-binPROGRAMS \
497 mostlyclean-compile distclean-compile clean-compile \
498 maintainer-clean-compile install-man1 uninstall-man1 install-man4 \
499 uninstall-man4 install-man5 uninstall-man5 install-man uninstall-man \
500 uninstall-dataDATA install-dataDATA tags mostlyclean-tags \
501 distclean-tags clean-tags maintainer-clean-tags distdir info-am info \
502 dvi-am dvi check check-am installcheck-am installcheck all-recursive-am \
503 install-exec-am install-exec install-data-am install-data install-am \
504 install uninstall-am uninstall all-redirect all-am all installdirs \
505 mostlyclean-generic distclean-generic clean-generic \
506 maintainer-clean-generic clean mostlyclean distclean maintainer-clean
509 magic: Header Localstuff $(magic_FRAGMENTS)
510 cat $(srcdir)/Header $(srcdir)/Localstuff > $@
511 for frag in $(magic_FRAGMENTS); do \
512 if test -f $(srcdir)/$$frag; then \
513 f=$(srcdir)/$$frag; \
520 magic.mgc: magic file
523 magic.mime.mgc: magic.mime file
524 ./file -C -m $(srcdir)/magic.mime
526 file.1: Makefile file.man
528 sed -e s@__CSECTION__@1@g \
529 -e s@__FSECTION__@${fsect}@g \
530 -e s@__VERSION__@${VERSION}@g \
531 -e s@__MAGIC__@${MAGIC}@g $(srcdir)/file.man > $@
533 magic.${fsect}: Makefile magic.man
535 sed -e s@__CSECTION__@1@g \
536 -e s@__FSECTION__@${fsect}@g \
537 -e s@__VERSION__@${VERSION}@g \
538 -e s@__MAGIC__@${MAGIC}@g $(srcdir)/magic.man > $@
540 # Tell versions [3.59,3.63) of GNU make to not export all variables.
541 # Otherwise a system limit (for SysV at least) may be exceeded.