Makefile.in 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261
  1. # Makefile for directory with message catalog handling library of GNU gettext
  2. # Copyright (C) 1995-1998, 2000-2003 Free Software Foundation, Inc.
  3. #
  4. # This program is free software; you can redistribute it and/or modify it
  5. # under the terms of the GNU Library General Public License as published
  6. # by the Free Software Foundation; either version 2, or (at your option)
  7. # any later version.
  8. #
  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 GNU
  12. # Library General Public License for more details.
  13. #
  14. # You should have received a copy of the GNU Library General Public
  15. # License along with this program; if not, write to the Free Software
  16. # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301,
  17. # USA.
  18. # This Makefile has been modified from the original shipped with
  19. # gettext 0.12.1 to remove the ability to install libintl (which
  20. # we do not need nor want), the ability to build a shared library
  21. # (likewise), and a large number of heinous kludges.
  22. SHELL = @SHELL@
  23. srcdir = @srcdir@
  24. VPATH = $(srcdir)
  25. prefix = @prefix@
  26. exec_prefix = @exec_prefix@
  27. transform = @program_transform_name@
  28. libdir = @libdir@
  29. includedir = @includedir@
  30. datarootdir = @datarootdir@
  31. datadir = @datadir@
  32. localedir = $(datadir)/locale
  33. aliaspath = $(localedir)
  34. AR = ar
  35. ACLOCAL = @ACLOCAL@
  36. AUTOCONF = @AUTOCONF@
  37. AUTOHEADER = @AUTOHEADER@
  38. CC = @CC@
  39. RANLIB = @RANLIB@
  40. YACC = @INTLBISON@ -y -d
  41. YFLAGS = --name-prefix=__gettext
  42. CPPFLAGS = @CPPFLAGS@
  43. CFLAGS = @CFLAGS@
  44. LDFLAGS = @LDFLAGS@
  45. LIBS = @LIBS@
  46. DEFS = -DHAVE_CONFIG_H
  47. PICFLAG = @PICFLAG@
  48. COMPILE = $(CC) -c $(CPPFLAGS) $(CFLAGS) $(PICFLAG) $(DEFS) $(DEFS-$@) $(INCLUDES)
  49. HEADERS = \
  50. gmo.h \
  51. gettextP.h \
  52. hash-string.h \
  53. loadinfo.h \
  54. plural-config.h \
  55. plural-exp.h \
  56. eval-plural.h \
  57. localcharset.h \
  58. relocatable.h \
  59. libgnuintl.h
  60. SOURCES = \
  61. bindtextdom.c \
  62. dcgettext.c \
  63. dgettext.c \
  64. gettext.c \
  65. finddomain.c \
  66. loadmsgcat.c \
  67. localealias.c \
  68. textdomain.c \
  69. l10nflist.c \
  70. explodename.c \
  71. dcigettext.c \
  72. dcngettext.c \
  73. dngettext.c \
  74. ngettext.c \
  75. plural.y \
  76. plural-exp.c \
  77. localcharset.c \
  78. relocatable.c \
  79. localename.c \
  80. log.c \
  81. osdep.c \
  82. intl-compat.c
  83. OBJECTS = \
  84. bindtextdom.o \
  85. dcgettext.o \
  86. dgettext.o \
  87. gettext.o \
  88. finddomain.o \
  89. loadmsgcat.o \
  90. localealias.o \
  91. textdomain.o \
  92. l10nflist.o \
  93. explodename.o \
  94. dcigettext.o \
  95. dcngettext.o \
  96. dngettext.o \
  97. ngettext.o \
  98. plural.o \
  99. plural-exp.o \
  100. localcharset.o \
  101. relocatable.o \
  102. localename.o \
  103. log.o \
  104. osdep.o \
  105. intl-compat.o
  106. DEFS-dcigettext.o = -DLOCALEDIR="\"$(localedir)\""
  107. DEFS-localealias.o = -DLOCALE_ALIAS_PATH="\"$(aliaspath)\""
  108. DEFS-localcharset.o = -DLIBDIR="\"$(libdir)\""
  109. DEFS-relocatable.o = -DINSTALLDIR="\"$(libdir)\""
  110. all: all-@USE_INCLUDED_LIBINTL@
  111. all-yes: libintl.a libintl.h config.intl
  112. all-no: # nothing
  113. libintl.a: $(OBJECTS)
  114. rm -f $@
  115. $(AR) cru $@ $(OBJECTS)
  116. $(RANLIB) $@
  117. libintl.h: $(srcdir)/libgnuintl.h
  118. cp $(srcdir)/libgnuintl.h $@
  119. .SUFFIXES:
  120. .SUFFIXES: .c .y .o
  121. .c.o:
  122. $(COMPILE) $<
  123. .y.c:
  124. @BISON3_YES@ echo '#define USE_BISON3' > $(patsubst %.c,%-config.h,$@)
  125. @BISON3_YES@ sed 's,%pure_parser,,;s,^/\* BISON3 \(.*\) \*/$$,\1,' $< > $@.y
  126. @BISON3_YES@ $(YACC) $(YFLAGS) --output $@.c $@.y
  127. @BISON3_YES@ sed 's/\.c\.y"/.y"/' $@.c > $@
  128. @BISON3_YES@ rm -f $@.c $@.y $@.h
  129. @BISON3_NO@ echo '/* #define USE_BISON3 */' > $(patsubst %.c,%-config.h,$@)
  130. @BISON3_NO@ $(YACC) $(YFLAGS) --output $@ $<
  131. rm -f $*.h
  132. INCLUDES = -I. -I$(srcdir)
  133. check: all
  134. # The installation targets have been disabled.
  135. install: install-exec install-data
  136. install-exec: all
  137. install-data: all
  138. install-strip: install
  139. installdirs:
  140. installcheck:
  141. uninstall:
  142. .PHONY: info dvi ps pdf html
  143. .PHONY: install-info install-dvi install-ps install-pdf install-html
  144. info dvi ps pdf html:
  145. install-info install-dvi install-ps install-pdf install-html:
  146. $(OBJECTS): config.h libintl.h
  147. bindtextdom.o dcgettext.o dcigettext.o dcngettext.o dgettext.o \
  148. dngettext.o finddomain.o gettext.o intl-compat.o loadmsgcat.o \
  149. localealias.o ngettext.o textdomain.o: gettextP.h gmo.h loadinfo.h
  150. dcigettext.o loadmsgcat.o: hash-string.h
  151. explodename.o l10nflist.o: loadinfo.h
  152. dcigettext.o loadmsgcat.o plural.o plural-exp.o: plural-exp.h plural-config.h
  153. dcigettext.o: eval-plural.h
  154. localcharset.o: localcharset.h
  155. localealias.o localcharset.o relocatable.o: relocatable.h
  156. tags: TAGS
  157. TAGS: $(HEADERS) $(SOURCES)
  158. here=`pwd`; cd $(srcdir) && \
  159. etags -o $$here/TAGS $(HEADERS) $(SOURCES)
  160. ctags: CTAGS
  161. CTAGS: $(HEADERS) $(SOURCES)
  162. here=`pwd`; cd $(srcdir) && \
  163. ctags -o $$here/CTAGS $(HEADERS) $(SOURCES)
  164. id: ID
  165. ID: $(HEADERS) $(SOURCES)
  166. here=`pwd`; cd $(srcdir) && \
  167. mkid -f$$here/ID $(HEADERS) $(SOURCES)
  168. mostlyclean:
  169. rm -f *.a *.la *.o *.obj *.lo core core.* libintl.h
  170. clean: mostlyclean
  171. distclean: clean
  172. rm -f config.status config.cache config.log config.intl config.h
  173. rm -f Makefile ID TAGS
  174. maintainer-clean: distclean
  175. # The 'make dist' targets have been disabled; the GNU toolchain handles this
  176. # with a script maintained separately from the Makefile.
  177. dist:
  178. distdir:
  179. # Rules to rebuild the configuration
  180. Makefile: $(srcdir)/Makefile.in config.status
  181. $(SHELL) ./config.status Makefile
  182. config.intl: $(srcdir)/config.intl.in config.status
  183. $(SHELL) ./config.status config.intl
  184. config.status: $(srcdir)/configure
  185. $(SHELL) ./config.status --recheck
  186. $(srcdir)/configure: @MAINT@ $(srcdir)/aclocal.m4 $(srcdir)/configure.ac
  187. cd $(srcdir) && $(AUTOCONF)
  188. aclocal_deps = \
  189. $(srcdir)/configure.ac \
  190. $(srcdir)/../config/codeset.m4 \
  191. $(srcdir)/../config/gettext.m4 \
  192. $(srcdir)/../config/glibc21.m4 \
  193. $(srcdir)/../config/iconv.m4 \
  194. $(srcdir)/../config/intdiv0.m4 \
  195. $(srcdir)/../config/inttypes-pri.m4 \
  196. $(srcdir)/../config/inttypes.m4 \
  197. $(srcdir)/../config/inttypes_h.m4 \
  198. $(srcdir)/../config/lcmessage.m4 \
  199. $(srcdir)/../config/lib-ld.m4 \
  200. $(srcdir)/../config/lib-link.m4 \
  201. $(srcdir)/../config/lib-prefix.m4 \
  202. $(srcdir)/../config/nls.m4 \
  203. $(srcdir)/../config/po.m4 \
  204. $(srcdir)/../config/progtest.m4 \
  205. $(srcdir)/../config/stdint_h.m4 \
  206. $(srcdir)/../config/uintmax_t.m4 \
  207. $(srcdir)/../config/ulonglong.m4
  208. $(srcdir)/aclocal.m4: @MAINT@ $(aclocal_deps)
  209. cd $(srcdir) && $(ACLOCAL) -I ../config
  210. config.h: stamp-h1
  211. test -f config.h || (rm -f stamp-h1 && $(MAKE) stamp-h1)
  212. plural-config.h: plural.c
  213. stamp-h1: $(srcdir)/config.h.in config.status
  214. -rm -f stamp-h1
  215. $(SHELL) ./config.status config.h
  216. $(srcdir)/config.h.in: @MAINT@ $(srcdir)/aclocal.m4 $(srcdir)/configure.ac
  217. cd $(srcdir) && $(AUTOHEADER)
  218. -rm -f stamp-h1
  219. # Tell versions [3.59,3.63) of GNU make not to export all variables.
  220. # Otherwise a system limit (for SysV at least) may be exceeded.
  221. .NOEXPORT: