1
## Makefile for the gettext-runtime/lib subdirectory of GNU gettext
2
## Copyright (C) 1995-1998, 2000-2004 Free Software Foundation, Inc.
4
## This program is free software; you can redistribute it and/or modify
5
## it under the terms of the GNU General Public License as published by
6
## the Free Software Foundation; either version 2, or (at your option)
9
## This program is distributed in the hope that it will be useful,
10
## but WITHOUT ANY WARRANTY; without even the implied warranty of
11
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
## GNU General Public License for more details.
14
## You should have received a copy of the GNU General Public License
15
## along with this program; if not, write to the Free Software
16
## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18
## Process this file with automake to produce Makefile.in.
20
AUTOMAKE_OPTIONS = 1.5 gnits no-dependencies
24
noinst_LIBRARIES = libgrt.a
26
# Sources that are compiled on all platforms.
29
../../gettext-tools/lib/basename.h ../../gettext-tools/lib/basename.c \
30
../../gettext-tools/lib/closeout.h ../../gettext-tools/lib/closeout.c \
31
../../gettext-tools/lib/error.h ../../gettext-tools/lib/error.c \
32
../../gettext-tools/lib/exit.h \
33
../../gettext-tools/lib/fwriteerror.h ../../gettext-tools/lib/fwriteerror.c \
34
../../gettext-tools/lib/getopt.h ../../gettext-tools/lib/getopt.c ../../gettext-tools/lib/getopt1.c \
35
../../gettext-tools/lib/pathmax.h \
36
../../gettext-tools/lib/progname.h ../../gettext-tools/lib/progname.c ../../gettext-tools/lib/progreloc.c \
37
../../gettext-tools/lib/strtoul.c \
38
../../gettext-tools/lib/unlocked-io.h \
39
../../gettext-tools/lib/xalloc.h ../../gettext-tools/lib/xmalloc.c ../../gettext-tools/lib/xstrdup.c \
40
../../gettext-tools/lib/xreadlink.h ../../gettext-tools/lib/xreadlink.c
42
# Sources that are compiled only on platforms that lack the functions.
46
../../gettext-tools/lib/canonicalize.h canonicalize.c \
49
../../gettext-tools/lib/relocatable.h relocatable.c \
50
../../gettext-tools/lib/setenv.h setenv.c unsetenv.c \
53
# How to build libgrt.a.
55
libgrt_a_LIBADD = @LIBOBJS@
60
-I../intl -I$(srcdir)/../intl \
61
-I../../gettext-tools/lib -I$(srcdir)/../../gettext-tools/lib
63
DEFS = -DDEPENDS_ON_LIBINTL=1 @DEFS@
65
# List of files to be distributed.
67
EXTRA_DIST += $(LIBADD_SOURCE)
70
# >>> gnulib module stdbool.
71
EXTRA_DIST += ../../gettext-tools/lib/stdbool_.h
73
# The following is needed in order to create an <stdbool.h> when the system
74
# doesn't have one that works.
75
all-local $(libgrt_a_OBJECTS): @STDBOOL_H@
76
stdbool.h: ../../gettext-tools/lib/stdbool_.h
77
sed -e 's/@''HAVE__BOOL''@/@HAVE__BOOL@/g' < $(srcdir)/../../gettext-tools/lib/stdbool_.h > stdbool.h
78
MOSTLYCLEANFILES += stdbool.h
79
# <<< gnulib module stdbool.
82
# >>> gnulib module alloca.
83
EXTRA_DIST += ../../gettext-tools/lib/alloca_.h
85
# The following is needed in order to create an <alloca.h> when the system
86
# doesn't have one that works with the given compiler.
87
all-local $(libgrt_a_OBJECTS): @ALLOCA_H@
88
alloca.h: ../../gettext-tools/lib/alloca_.h
89
cp $(srcdir)/../../gettext-tools/lib/alloca_.h alloca.h
90
MOSTLYCLEANFILES += alloca.h
91
# <<< gnulib module alloca.
96
EXTRA_DIST += Makefile.vms
101
EXTRA_DIST += Makefile.msvc