summaryrefslogtreecommitdiffstats
path: root/gettext-runtime/lib/Makefile.am
blob: 38f41dc99fb36ecddc783ac00dc4d05258c7dbf6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
## Makefile for the gettext-runtime/lib subdirectory of GNU gettext
## Copyright (C) 1995-1998, 2000-2006 Free Software Foundation, Inc.
##
## This program is free software; you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by
## the Free Software Foundation; either version 2, or (at your option)
## any later version.
##
## This program is distributed in the hope that it will be useful,
## but WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
## along with this program; if not, write to the Free Software Foundation,
## Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

## Process this file with automake to produce Makefile.in.

AUTOMAKE_OPTIONS = 1.5 gnits no-dependencies
EXTRA_DIST =
BUILT_SOURCES =
MOSTLYCLEANFILES =

noinst_LIBRARIES = libgrt.a

# Sources that are compiled on all platforms.

libgrt_a_SOURCES = \
  ../../gettext-tools/lib/allocsa.h ../../gettext-tools/lib/allocsa.c \
  ../../gettext-tools/lib/basename.h ../../gettext-tools/lib/basename.c \
  ../../gettext-tools/lib/c-ctype.h ../../gettext-tools/lib/c-ctype.c \
  ../../gettext-tools/lib/c-strcase.h ../../gettext-tools/lib/c-strcasecmp.c \
  ../../gettext-tools/lib/closeout.h ../../gettext-tools/lib/closeout.c \
  ../../gettext-tools/lib/exit.h \
  ../../gettext-tools/lib/fwriteerror.h ../../gettext-tools/lib/fwriteerror.c \
  ../../gettext-tools/lib/gettext.h \
  ../../gettext-tools/lib/iconvstring.h ../../gettext-tools/lib/iconvstring.c \
  ../../gettext-tools/lib/localcharset.h ../../gettext-tools/lib/localcharset.c \
  ../../gettext-tools/lib/pathmax.h \
  ../../gettext-tools/lib/progname.h ../../gettext-tools/lib/progname.c ../../gettext-tools/lib/progreloc.c \
  ../../gettext-tools/lib/propername.h ../../gettext-tools/lib/propername.c \
  ../../gettext-tools/lib/strstr.h \
  ../../gettext-tools/lib/unlocked-io.h \
  ../../gettext-tools/lib/xalloc.h ../../gettext-tools/lib/xmalloc.c ../../gettext-tools/lib/xstrdup.c \
  ../../gettext-tools/lib/xreadlink.h ../../gettext-tools/lib/xreadlink.c

# Sources that are compiled only on platforms that lack the functions.

LIBADD_SOURCE = \
  atexit.c \
  ../../gettext-tools/lib/canonicalize.h canonicalize.c \
  error.h error.c \
  getopt.c getopt1.c ../../gettext-tools/lib/getopt_int.h \
  memmove.c \
  readlink.c \
  ../../gettext-tools/lib/relocatable.h relocatable.c \
  ../../gettext-tools/lib/setenv.h setenv.c unsetenv.c \
  strerror.c \
  strtoul.c

# How to build libgrt.a.

libgrt_a_LIBADD = @LIBOBJS@

AM_CPPFLAGS = \
  -I. -I$(srcdir) \
  -I.. \
  -I../intl -I$(srcdir)/../intl \
  -I../../gettext-tools/lib -I$(srcdir)/../../gettext-tools/lib

DEFS = -DEXEEXT=\"$(EXEEXT)\" -DDEPENDS_ON_LIBINTL=1 @DEFS@

# List of files to be distributed.

EXTRA_DIST += $(LIBADD_SOURCE)


# >>> gnulib module stdbool.
BUILT_SOURCES += $(STDBOOL_H)
EXTRA_DIST += ../../gettext-tools/lib/stdbool_.h

# The following is needed in order to create an <stdbool.h> when the system
# doesn't have one that works.
stdbool.h: ../../gettext-tools/lib/stdbool_.h
	sed -e 's/@''HAVE__BOOL''@/@HAVE__BOOL@/g' < $(srcdir)/../../gettext-tools/lib/stdbool_.h > stdbool.h
MOSTLYCLEANFILES += stdbool.h
# <<< gnulib module stdbool.


# >>> gnulib module alloca.
BUILT_SOURCES += $(ALLOCA_H)
EXTRA_DIST += ../../gettext-tools/lib/alloca_.h

# The following is needed in order to create an <alloca.h> when the system
# doesn't have one that works with the given compiler.
alloca.h: ../../gettext-tools/lib/alloca_.h
	cp $(srcdir)/../../gettext-tools/lib/alloca_.h alloca.h
MOSTLYCLEANFILES += alloca.h
# <<< gnulib module alloca.


# >>> gnulib module getopt.
BUILT_SOURCES += $(GETOPT_H)
EXTRA_DIST += ../../gettext-tools/lib/getopt_.h ../../gettext-tools/lib/getopt_int.h

# The following is needed in order to create a <getopt.h> when the system
# doesn't have one that works.
getopt.h: ../../gettext-tools/lib/getopt_.h
	cp $(srcdir)/../../gettext-tools/lib/getopt_.h getopt.h
MOSTLYCLEANFILES += getopt.h
# <<< gnulib module getopt.


# >>> gnulib module localcharset.
DEFS += -DLIBDIR=\"$(libdir)\"
# <<< gnulib module localcharset.