| 1 | # Process this with automake to create Makefile.in
|
|---|
| 2 |
|
|---|
| 3 | ## We definitely don't want dependency tracking when using automake 1.4.
|
|---|
| 4 | AUTOMAKE_OPTIONS = no-dependencies
|
|---|
| 5 |
|
|---|
| 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.
|
|---|
| 9 | AM_MAKEFLAGS = \
|
|---|
| 10 | "AR_FLAGS=$(AR_FLAGS)" \
|
|---|
| 11 | "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
|
|---|
| 12 | "CFLAGS=$(CFLAGS)" \
|
|---|
| 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)" \
|
|---|
| 24 | "MAKE=$(MAKE)" \
|
|---|
| 25 | "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
|
|---|
| 26 | "PICFLAG=$(PICFLAG)" \
|
|---|
| 27 | "PICFLAG_FOR_TARGET=$(PICFLAG_FOR_TARGET)" \
|
|---|
| 28 | "SHELL=$(SHELL)" \
|
|---|
| 29 | "exec_prefix=$(exec_prefix)" \
|
|---|
| 30 | "infodir=$(infodir)" \
|
|---|
| 31 | "libdir=$(libdir)" \
|
|---|
| 32 | "prefix=$(prefix)" \
|
|---|
| 33 | "AR=$(AR)" \
|
|---|
| 34 | "AS=$(AS)" \
|
|---|
| 35 | "CC=$(CC)" \
|
|---|
| 36 | "CXX=$(CXX)" \
|
|---|
| 37 | "LD=$(LD)" \
|
|---|
| 38 | "LIBCFLAGS=$(LIBCFLAGS)" \
|
|---|
| 39 | "NM=$(NM)" \
|
|---|
| 40 | "PICFLAG=$(PICFLAG)" \
|
|---|
| 41 | "RANLIB=$(RANLIB)" \
|
|---|
| 42 | "DESTDIR=$(DESTDIR)"
|
|---|
| 43 |
|
|---|
| 44 | INCLUDES = -I. -I$(top_srcdir) $(ZINCS) -I$(top_srcdir)/../include
|
|---|
| 45 |
|
|---|
| 46 | LIBIBERTY = ../libiberty/libiberty.a
|
|---|
| 47 |
|
|---|
| 48 | bin_PROGRAMS = jar grepjar
|
|---|
| 49 | jar_SOURCES = jartool.c dostime.c compress.c pushback.c jartool.h \
|
|---|
| 50 | zipfile.h dostime.h compress.h pushback.h
|
|---|
| 51 | jar_LDADD = $(ZLIBS) $(LIBIBERTY)
|
|---|
| 52 | jar_DEPENDENCIES = $(ZDEPS) $(LIBIBERTY)
|
|---|
| 53 |
|
|---|
| 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)
|
|---|
| 58 |
|
|---|
| 59 | AM_CFLAGS = @fastjar_warn_cflags@
|
|---|
| 60 |
|
|---|
| 61 | TEXINFO_TEX = ../gcc/doc/include/texinfo.tex
|
|---|
| 62 | info_TEXINFOS = fastjar.texi
|
|---|
| 63 | fastjar_TEXINFOS = \
|
|---|
| 64 | ../gcc/doc/include/gcc-common.texi \
|
|---|
| 65 | ../gcc/doc/include/gpl.texi
|
|---|
| 66 | man_MANS = jar.1 grepjar.1
|
|---|
| 67 | EXTRA_DIST = $(man_MANS)
|
|---|
| 68 |
|
|---|
| 69 | ## This is a hack. We can't set AM_MAKEINFOFLAGS, since that isn't
|
|---|
| 70 | ## available in 1.4. Nor can we override or append to MAKEINFO or
|
|---|
| 71 | ## MAKEINFOFLAGS, since these are overridden by the top-level
|
|---|
| 72 | ## Makefile. So, we just duplicate the rules. FIXME: remove this
|
|---|
| 73 | ## when we upgrade automake. Note that we don't include $(srcdir) in
|
|---|
| 74 | ## my_makei_flags; makeinfo is run in srcdir.
|
|---|
| 75 | my_makei_flags += -I ../gcc/doc/include
|
|---|
| 76 | fastjar.info: fastjar.texi $(fastjar_TEXINFOS)
|
|---|
| 77 | @cd $(srcdir) && rm -f $@ $@-[0-9] $@-[0-9][0-9]
|
|---|
| 78 | cd $(srcdir) \
|
|---|
| 79 | && $(MAKEINFO) $(my_makei_flags) `echo $< | sed 's,.*/,,'`
|
|---|
| 80 |
|
|---|
| 81 |
|
|---|
| 82 | TEXI2POD = perl $(srcdir)/../contrib/texi2pod.pl
|
|---|
| 83 | POD2MAN = pod2man --center="GNU" --release="gcc-@gcc_version@"
|
|---|
| 84 |
|
|---|
| 85 | $(srcdir)/jar.1: $(srcdir)/fastjar.texi
|
|---|
| 86 | -$(TEXI2POD) -D jar < $(srcdir)/fastjar.texi > fastjar.pod
|
|---|
| 87 | -($(POD2MAN) --section=1 fastjar.pod > jar.1.T$$$$ && \
|
|---|
| 88 | mv -f jar.1.T$$$$ $(srcdir)/jar.1) || \
|
|---|
| 89 | (rm -f jar.1.T$$$$ && exit 1)
|
|---|
| 90 | -rm -f fastjar.pod
|
|---|
| 91 |
|
|---|
| 92 | $(srcdir)/grepjar.1: $(srcdir)/fastjar.texi
|
|---|
| 93 | -$(TEXI2POD) -D grepjar < $(srcdir)/fastjar.texi > grepjar.pod
|
|---|
| 94 | -($(POD2MAN) --section=1 grepjar.pod > grepjar.1.T$$$$ && \
|
|---|
| 95 | mv -f grepjar.1.T$$$$ $(srcdir)/grepjar.1) || \
|
|---|
| 96 | (rm -f grepjar.1.T$$$$ && exit 1)
|
|---|
| 97 | -rm -f grepjar.pod
|
|---|