1 # Process this with automake to create Makefile.in
3 ## We definitely don't want dependency tracking when using automake 1.4.
4 AUTOMAKE_OPTIONS = no-dependencies
6 # Work around what appears to be a GNU make bug handling MAKEFLAGS
7 # values defined in terms of make variables, as is the case for CC and
8 # friends when we are called from the top level Makefile.
10 "AR_FLAGS=$(AR_FLAGS)" \
11 "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
13 "CXXFLAGS=$(CXXFLAGS)" \
14 "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
15 "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
16 "INSTALL=$(INSTALL)" \
17 "INSTALL_DATA=$(INSTALL_DATA)" \
18 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
19 "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
20 "JC1FLAGS=$(JC1FLAGS)" \
21 "LDFLAGS=$(LDFLAGS)" \
22 "LIBCFLAGS=$(LIBCFLAGS)" \
23 "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
25 "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
26 "PICFLAG=$(PICFLAG)" \
27 "PICFLAG_FOR_TARGET=$(PICFLAG_FOR_TARGET)" \
29 "exec_prefix=$(exec_prefix)" \
30 "infodir=$(infodir)" \
38 "LIBCFLAGS=$(LIBCFLAGS)" \
40 "PICFLAG=$(PICFLAG)" \
44 AM_CPPFLAGS = -I. -I$(top_srcdir) $(ZINCS) -I$(top_srcdir)/../include
46 LIBIBERTY = ../libiberty/libiberty.a
48 bin_PROGRAMS = fastjar grepjar
49 fastjar_SOURCES = jartool.c dostime.c compress.c pushback.c shift.c jartool.h \
50 zipfile.h dostime.h compress.h pushback.h shift.h
51 fastjar_LDADD = $(ZLIBS) $(LIBIBERTY)
52 fastjar_DEPENDENCIES = $(ZDEPS) $(LIBIBERTY)
53 fastjar_CPPFLAGS = $(AM_CPPFLAGS) -DWITH_SHIFT_DOWN
55 grepjar_SOURCES = jargrep.c dostime.c compress.c pushback.c jartool.h \
56 zipfile.h dostime.h compress.h pushback.h
57 grepjar_LDADD = $(ZLIBS) $(LIBIBERTY)
58 grepjar_DEPENDENCIES = $(ZDEPS) $(LIBIBERTY)
60 AM_CFLAGS = @fastjar_warn_cflags@
61 AM_MAKEINFOFLAGS = -I $(srcdir)/../gcc/doc/include
63 TEXINFO_TEX = ../gcc/doc/include/texinfo.tex
64 info_TEXINFOS = fastjar.texi
66 ../gcc/doc/include/gcc-common.texi \
67 ../gcc/doc/include/gpl.texi
68 man_MANS = fastjar.1 grepjar.1
69 EXTRA_DIST = $(man_MANS)
71 TEXI2POD = perl $(srcdir)/../contrib/texi2pod.pl
72 POD2MAN = pod2man --center="GNU" --release="gcc-@gcc_version@"
75 -($(POD2MAN) --section=1 $< > $(@).T$$$$ && \
76 mv -f $(@).T$$$$ $@) || \
77 (rm -f $(@).T$$$$ && exit 1)
79 .INTERMEDIATE: fastjar.pod grepjar.pod
81 fastjar.pod: $(srcdir)/fastjar.texi
82 -$(TEXI2POD) -D fastjar $< > $@
84 grepjar.pod: $(srcdir)/fastjar.texi
85 -$(TEXI2POD) -D grepjar $< > $@
88 # The following commands allow us to release tarballs with the man pages
89 # and info documentation prebuilt. This feature is enabled via
90 # --enable-generated-files-in-srcdir in the configure script.
93 STAMP_GENINSRC = stamp-geninsrc
98 all-local: $(STAMP_GENINSRC)
100 stamp-geninsrc: fastjar.1 grepjar.1 fastjar.info
101 -cp -p $(top_builddir)/fastjar.1 $(srcdir)/fastjar.1
102 -cp -p $(top_builddir)/grepjar.1 $(srcdir)/grepjar.1
103 -cp -p $(top_builddir)/fastjar.info $(srcdir)/fastjar.info
106 CLEANFILES = stamp-geninsrc fastjar.info
107 MAINTAINERCLEANFILES = $(srcdir)/fastjar.1 \
108 $(srcdir)/grepjar.1 \
109 $(srcdir)/fastjar.info