1 # Process this with automake to create Makefile.in
3 ACLOCAL_AMFLAGS = -I ../config
5 # Work around what appears to be a GNU make bug handling MAKEFLAGS
6 # values defined in terms of make variables, as is the case for CC and
7 # friends when we are called from the top level Makefile.
9 "AR_FLAGS=$(AR_FLAGS)" \
10 "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
12 "CXXFLAGS=$(CXXFLAGS)" \
13 "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
14 "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
15 "INSTALL=$(INSTALL)" \
16 "INSTALL_DATA=$(INSTALL_DATA)" \
17 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
18 "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
19 "JC1FLAGS=$(JC1FLAGS)" \
20 "LDFLAGS=$(LDFLAGS)" \
21 "LIBCFLAGS=$(LIBCFLAGS)" \
22 "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
24 "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
25 "PICFLAG=$(PICFLAG)" \
26 "PICFLAG_FOR_TARGET=$(PICFLAG_FOR_TARGET)" \
28 "exec_prefix=$(exec_prefix)" \
29 "infodir=$(infodir)" \
37 "LIBCFLAGS=$(LIBCFLAGS)" \
39 "PICFLAG=$(PICFLAG)" \
43 AM_CPPFLAGS = -I. -I$(top_srcdir) $(ZINCS) -I$(top_srcdir)/../include
45 LIBIBERTY = ../libiberty/libiberty.a
47 bin_PROGRAMS = fastjar grepjar
48 fastjar_SOURCES = jartool.c dostime.c compress.c pushback.c shift.c jartool.h \
49 zipfile.h dostime.h compress.h pushback.h shift.h
50 fastjar_LDADD = $(ZLIBS) $(LIBIBERTY)
51 fastjar_DEPENDENCIES = $(ZDEPS) $(LIBIBERTY)
52 fastjar_CPPFLAGS = $(AM_CPPFLAGS) -DWITH_SHIFT_DOWN
54 grepjar_SOURCES = jargrep.c dostime.c compress.c pushback.c jartool.h \
55 zipfile.h dostime.h compress.h pushback.h
56 grepjar_LDADD = $(ZLIBS) $(LIBIBERTY)
57 grepjar_DEPENDENCIES = $(ZDEPS) $(LIBIBERTY)
59 AM_CFLAGS = @fastjar_warn_cflags@
60 AM_MAKEINFOFLAGS = -I $(srcdir)/../gcc/doc/include
62 TEXINFO_TEX = ../gcc/doc/include/texinfo.tex
63 info_TEXINFOS = fastjar.texi
65 ../gcc/doc/include/gcc-common.texi \
66 ../gcc/doc/include/gpl.texi
67 man_MANS = fastjar.1 grepjar.1
68 EXTRA_DIST = $(man_MANS)
70 TEXI2POD = perl $(srcdir)/../contrib/texi2pod.pl
71 POD2MAN = pod2man --center="GNU" --release="gcc-@gcc_version@"
74 -($(POD2MAN) --section=1 $< > $(@).T$$$$ && \
75 mv -f $(@).T$$$$ $@) || \
76 (rm -f $(@).T$$$$ && exit 1)
78 .INTERMEDIATE: fastjar.pod grepjar.pod
80 fastjar.pod: $(srcdir)/fastjar.texi
81 -$(TEXI2POD) -D fastjar $< > $@
83 grepjar.pod: $(srcdir)/fastjar.texi
84 -$(TEXI2POD) -D grepjar $< > $@
87 # The following commands allow us to release tarballs with the man pages
88 # and info documentation prebuilt. This feature is enabled via
89 # --enable-generated-files-in-srcdir in the configure script.
92 STAMP_GENINSRC = stamp-geninsrc
97 all-local: $(STAMP_GENINSRC)
99 stamp-geninsrc: fastjar.1 grepjar.1 fastjar.info
100 -cp -p $(top_builddir)/fastjar.1 $(srcdir)/fastjar.1
101 -cp -p $(top_builddir)/grepjar.1 $(srcdir)/grepjar.1
102 -cp -p $(top_builddir)/fastjar.info $(srcdir)/fastjar.info
105 CLEANFILES = stamp-geninsrc fastjar.info
106 MAINTAINERCLEANFILES = $(srcdir)/fastjar.1 \
107 $(srcdir)/grepjar.1 \
108 $(srcdir)/fastjar.info