diff options
author | Tom Tromey <tromey@redhat.com> | 1998-04-22 07:33:42 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 1998-04-22 07:33:42 +0000 |
commit | 16a02269fc8d2cf0f25b40d16a70087bb315a653 (patch) | |
tree | ec21066ad4af150303e3fe7bbbd4b32399449c96 /gprof/Makefile.am | |
parent | 1a9136e2253b2464a36cb9deabfc5da70900f036 (diff) | |
download | gdb-16a02269fc8d2cf0f25b40d16a70087bb315a653.zip gdb-16a02269fc8d2cf0f25b40d16a70087bb315a653.tar.gz gdb-16a02269fc8d2cf0f25b40d16a70087bb315a653.tar.bz2 |
* gprof.h: Added includes and defines for gettext.
* configure.in (ALL_LINGUAS): New macro.
Call CY_GNU_GETTEXT. Create po/Makefile.in and po/Makefile.
* acconfig.h (ENABLE_NLS, HAVE_CATGETS, HAVE_GETTEXT, HAVE_STPCPY,
HAVE_LC_MESSAGES): Define.
* gprof.c (main): Call setlocale, bindtextdomain, textdomain.
* Makefile.am (SUBDIRS): New macro.
(INCLUDES): Look in intl dirs for headers. Define LOCALEDIR.
(gprof_DEPENDENCIES): Added INTLDEPS.
(gprof_LDADD): Added INTLLLIBS.
(POTFILES): New macro.
(po/POTFILES.in): New target.
* Many files: Wrap user-visible strings with gettext invocation.
Diffstat (limited to 'gprof/Makefile.am')
-rw-r--r-- | gprof/Makefile.am | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/gprof/Makefile.am b/gprof/Makefile.am index 2e98d24..ae5cc28 100644 --- a/gprof/Makefile.am +++ b/gprof/Makefile.am @@ -4,17 +4,20 @@ AUTOMAKE_OPTIONS = cygnus SUFFIXES = .m -INCLUDES = -D_GNU_SOURCE -DDEBUG -I../bfd -I$(srcdir)/../include -I$(srcdir)/../bfd +SUBDIRS = po + +INCLUDES = -D_GNU_SOURCE -DDEBUG -I../bfd -I$(srcdir)/../include -I$(srcdir)/../bfd -I$(srcdir)/../intl -I../intl -DLOCALEDIR="\"$(prefix)/share/locale\"" bin_PROGRAMS = gprof -gprof_SOURCES = basic_blocks.c call_graph.c cg_arcs.c cg_dfn.c \ +## Convenience var listing pure sources. +sources = basic_blocks.c call_graph.c cg_arcs.c cg_dfn.c \ cg_print.c core.c gmon_io.c gprof.c hertz.c hist.c source.c \ search_list.c symtab.c sym_ids.c utils.c \ - flat_bl.c bsd_callg_bl.c fsf_callg_bl.c \ i386.c alpha.c vax.c tahoe.c sparc.c -gprof_DEPENDENCIES = ../bfd/libbfd.la ../libiberty/libiberty.a -gprof_LDADD = ../bfd/libbfd.la ../libiberty/libiberty.a +gprof_SOURCES = $(sources) flat_bl.c bsd_callg_blc. fsf_callg_bl.c +gprof_DEPENDENCIES = ../bfd/libbfd.la ../libiberty/libiberty.a $(INTLDEPS) +gprof_LDADD = ../bfd/libbfd.la ../libiberty/libiberty.a $(INTLLIBS) noinst_HEADERS = \ basic_blocks.h call_graph.h cg_arcs.h cg_dfn.h cg_print.h \ @@ -32,6 +35,11 @@ diststuff: $(BUILT_SOURCES) info FUNCTION=`(echo $*|sed -e 's,.*/,,g' -e 's/_bl//')`_blurb \ FILE=$*.m $(srcdir)/$*.m +POTFILES = $(sources) $(noinst_HEADERS) +po/POTFILES.in: @MAINT@ Makefile + for file in $(POTFILES); do echo $$file; done | sort > tmp \ + && mv tmp $(srcdir)/po/POTFILES.in + info_TEXINFOS = gprof.texi man_MANS = gprof.1 |