1# Process this with automake to create Makefile.in 2 3## We definitely don't want dependency tracking when using automake 1.4. 4AUTOMAKE_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. 9AM_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 44INCLUDES = -I. -I$(top_srcdir) $(ZINCS) -I$(top_srcdir)/../include 45 46LIBIBERTY = ../libiberty/libiberty.a 47 48bin_PROGRAMS = jar grepjar 49jar_SOURCES = jartool.c dostime.c compress.c pushback.c jartool.h \ 50zipfile.h dostime.h compress.h pushback.h 51jar_LDADD = $(ZLIBS) $(LIBIBERTY) 52jar_DEPENDENCIES = $(ZDEPS) $(LIBIBERTY) 53 54grepjar_SOURCES = jargrep.c dostime.c compress.c pushback.c jartool.h \ 55zipfile.h dostime.h compress.h pushback.h 56grepjar_LDADD = $(ZLIBS) $(LIBIBERTY) 57grepjar_DEPENDENCIES = $(ZDEPS) $(LIBIBERTY) 58 59AM_CFLAGS = @fastjar_warn_cflags@ 60AM_MAKEINFOFLAGS = -I $(srcdir)/../gcc/doc/include 61 62TEXINFO_TEX = ../gcc/doc/include/texinfo.tex 63info_TEXINFOS = fastjar.texi 64fastjar_TEXINFOS = \ 65 ../gcc/doc/include/gcc-common.texi \ 66 ../gcc/doc/include/gpl.texi 67man_MANS = jar.1 grepjar.1 68EXTRA_DIST = $(man_MANS) 69 70TEXI2POD = perl $(srcdir)/../contrib/texi2pod.pl 71POD2MAN = pod2man --center="GNU" --release="gcc-@gcc_version@" 72 73%.1: %.pod 74 -($(POD2MAN) --section=1 $< > $(@).T$$$$ && \ 75 mv -f $(@).T$$$$ $@) || \ 76 (rm -f $(@).T$$$$ && exit 1) 77 78.INTERMEDIATE: jar.pod grepjar.pod 79 80jar.pod: $(srcdir)/fastjar.texi 81 -$(TEXI2POD) -D jar $< > $@ 82 83grepjar.pod: $(srcdir)/fastjar.texi 84 -$(TEXI2POD) -D grepjar $< > $@ 85 86# GCC LOCAL CHANGE 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. 90 91if GENINSRC 92STAMP_GENINSRC = stamp-geninsrc 93else 94STAMP_GENINSRC = 95endif 96 97all-local: $(STAMP_GENINSRC) 98 99stamp-geninsrc: jar.1 grepjar.1 fastjar.info 100 -cp -p $(top_builddir)/jar.1 $(srcdir)/jar.1 101 -cp -p $(top_builddir)/grepjar.1 $(srcdir)/grepjar.1 102 -cp -p $(top_builddir)/fastjar.info $(srcdir)/fastjar.info 103 touch $@ 104 105CLEANFILES = stamp-geninsrc 106MAINTAINERCLEANFILES = $(srcdir)/jar.1 \ 107 $(srcdir)/grepjar.1 \ 108 $(srcdir)/fastjar.info 109