1 ## Makefile for the gettext-runtime/lib subdirectory of GNU gettext
2 ## Copyright (C) 1995-1998, 2000-2005 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
25 noinst_LIBRARIES = libgrt.a
27 # Sources that are compiled on all platforms.
30 ../../gettext-tools/lib/allocsa.h ../../gettext-tools/lib/allocsa.c \
31 ../../gettext-tools/lib/basename.h ../../gettext-tools/lib/basename.c \
32 ../../gettext-tools/lib/closeout.h ../../gettext-tools/lib/closeout.c \
33 ../../gettext-tools/lib/exit.h \
34 ../../gettext-tools/lib/fwriteerror.h ../../gettext-tools/lib/fwriteerror.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/unlocked-io.h \
38 ../../gettext-tools/lib/xalloc.h ../../gettext-tools/lib/xmalloc.c ../../gettext-tools/lib/xstrdup.c \
39 ../../gettext-tools/lib/xreadlink.h ../../gettext-tools/lib/xreadlink.c
41 # Sources that are compiled only on platforms that lack the functions.
45 ../../gettext-tools/lib/canonicalize.h canonicalize.c \
47 getopt.c getopt1.c ../../gettext-tools/lib/getopt_int.h \
50 ../../gettext-tools/lib/relocatable.h relocatable.c \
51 ../../gettext-tools/lib/setenv.h setenv.c unsetenv.c \
55 # How to build libgrt.a.
57 libgrt_a_LIBADD = @LIBOBJS@
62 -I../intl -I$(srcdir)/../intl \
63 -I../../gettext-tools/lib -I$(srcdir)/../../gettext-tools/lib
65 DEFS = -DDEPENDS_ON_LIBINTL=1 @DEFS@
67 # List of files to be distributed.
69 EXTRA_DIST += $(LIBADD_SOURCE)
72 # >>> gnulib module stdbool.
73 EXTRA_DIST += ../../gettext-tools/lib/stdbool_.h
75 # The following is needed in order to create an <stdbool.h> when the system
76 # doesn't have one that works.
77 all-local $(libgrt_a_OBJECTS): @STDBOOL_H@
78 stdbool.h: ../../gettext-tools/lib/stdbool_.h
79 sed -e 's/@''HAVE__BOOL''@/@HAVE__BOOL@/g' < $(srcdir)/../../gettext-tools/lib/stdbool_.h > stdbool.h
80 MOSTLYCLEANFILES += stdbool.h
81 # <<< gnulib module stdbool.
84 # >>> gnulib module alloca.
85 EXTRA_DIST += ../../gettext-tools/lib/alloca_.h
87 # The following is needed in order to create an <alloca.h> when the system
88 # doesn't have one that works with the given compiler.
89 all-local $(libgrt_a_OBJECTS): @ALLOCA_H@
90 alloca.h: ../../gettext-tools/lib/alloca_.h
91 cp $(srcdir)/../../gettext-tools/lib/alloca_.h alloca.h
92 MOSTLYCLEANFILES += alloca.h
93 # <<< gnulib module alloca.
96 # >>> gnulib module getopt.
97 BUILT_SOURCES += $(GETOPT_H)
98 EXTRA_DIST += ../../gettext-tools/lib/getopt_.h ../../gettext-tools/lib/getopt_int.h
100 # The following is needed in order to create a <getopt.h> when the system
101 # doesn't have one that works.
102 all-local $(libgettextlib_la_OBJECTS): @GETOPT_H@
103 getopt.h: ../../gettext-tools/lib/getopt_.h
104 cp $(srcdir)/../../gettext-tools/lib/getopt_.h getopt.h
105 MOSTLYCLEANFILES += getopt.h
106 # <<< gnulib module getopt.
111 EXTRA_DIST += Makefile.vms
116 EXTRA_DIST += Makefile.msvc