Makefile.in 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252
  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. COMPILE = $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(DEFS-$@) $(INCLUDES)
  48. HEADERS = \
  49. gmo.h \
  50. gettextP.h \
  51. hash-string.h \
  52. loadinfo.h \
  53. plural-exp.h \
  54. eval-plural.h \
  55. localcharset.h \
  56. relocatable.h \
  57. libgnuintl.h
  58. SOURCES = \
  59. bindtextdom.c \
  60. dcgettext.c \
  61. dgettext.c \
  62. gettext.c \
  63. finddomain.c \
  64. loadmsgcat.c \
  65. localealias.c \
  66. textdomain.c \
  67. l10nflist.c \
  68. explodename.c \
  69. dcigettext.c \
  70. dcngettext.c \
  71. dngettext.c \
  72. ngettext.c \
  73. plural.y \
  74. plural-exp.c \
  75. localcharset.c \
  76. relocatable.c \
  77. localename.c \
  78. log.c \
  79. osdep.c \
  80. intl-compat.c
  81. OBJECTS = \
  82. bindtextdom.o \
  83. dcgettext.o \
  84. dgettext.o \
  85. gettext.o \
  86. finddomain.o \
  87. loadmsgcat.o \
  88. localealias.o \
  89. textdomain.o \
  90. l10nflist.o \
  91. explodename.o \
  92. dcigettext.o \
  93. dcngettext.o \
  94. dngettext.o \
  95. ngettext.o \
  96. plural.o \
  97. plural-exp.o \
  98. localcharset.o \
  99. relocatable.o \
  100. localename.o \
  101. log.o \
  102. osdep.o \
  103. intl-compat.o
  104. DEFS-dcigettext.o = -DLOCALEDIR="\"$(localedir)\""
  105. DEFS-localealias.o = -DLOCALE_ALIAS_PATH="\"$(aliaspath)\""
  106. DEFS-localcharset.o = -DLIBDIR="\"$(libdir)\""
  107. DEFS-relocatable.o = -DINSTALLDIR="\"$(libdir)\""
  108. all: all-@USE_INCLUDED_LIBINTL@
  109. all-yes: libintl.a libintl.h config.intl
  110. all-no: # nothing
  111. libintl.a: $(OBJECTS)
  112. rm -f $@
  113. $(AR) cru $@ $(OBJECTS)
  114. $(RANLIB) $@
  115. libintl.h: $(srcdir)/libgnuintl.h
  116. cp $(srcdir)/libgnuintl.h $@
  117. .SUFFIXES:
  118. .SUFFIXES: .c .y .o
  119. .c.o:
  120. $(COMPILE) $<
  121. .y.c:
  122. $(YACC) $(YFLAGS) --output $@ $<
  123. rm -f $*.h
  124. INCLUDES = -I. -I$(srcdir)
  125. check: all
  126. # The installation targets have been disabled.
  127. install: install-exec install-data
  128. install-exec: all
  129. install-data: all
  130. install-strip: install
  131. installdirs:
  132. installcheck:
  133. uninstall:
  134. .PHONY: info dvi ps pdf html
  135. .PHONY: install-info install-dvi install-ps install-pdf install-html
  136. info dvi ps pdf html:
  137. install-info install-dvi install-ps install-pdf install-html:
  138. $(OBJECTS): config.h libintl.h
  139. bindtextdom.o dcgettext.o dcigettext.o dcngettext.o dgettext.o \
  140. dngettext.o finddomain.o gettext.o intl-compat.o loadmsgcat.o \
  141. localealias.o ngettext.o textdomain.o: gettextP.h gmo.h loadinfo.h
  142. dcigettext.o loadmsgcat.o: hash-string.h
  143. explodename.o l10nflist.o: loadinfo.h
  144. dcigettext.o loadmsgcat.o plural.o plural-exp.o: plural-exp.h
  145. dcigettext.o: eval-plural.h
  146. localcharset.o: localcharset.h
  147. localealias.o localcharset.o relocatable.o: relocatable.h
  148. tags: TAGS
  149. TAGS: $(HEADERS) $(SOURCES)
  150. here=`pwd`; cd $(srcdir) && \
  151. etags -o $$here/TAGS $(HEADERS) $(SOURCES)
  152. ctags: CTAGS
  153. CTAGS: $(HEADERS) $(SOURCES)
  154. here=`pwd`; cd $(srcdir) && \
  155. ctags -o $$here/CTAGS $(HEADERS) $(SOURCES)
  156. id: ID
  157. ID: $(HEADERS) $(SOURCES)
  158. here=`pwd`; cd $(srcdir) && \
  159. mkid -f$$here/ID $(HEADERS) $(SOURCES)
  160. mostlyclean:
  161. rm -f *.a *.la *.o *.obj *.lo core core.* libintl.h
  162. clean: mostlyclean
  163. distclean: clean
  164. rm -f config.status config.cache config.log config.intl config.h
  165. rm -f Makefile ID TAGS
  166. maintainer-clean: distclean
  167. # The 'make dist' targets have been disabled; the GNU toolchain handles this
  168. # with a script maintained separately from the Makefile.
  169. dist:
  170. distdir:
  171. # Rules to rebuild the configuration
  172. Makefile: $(srcdir)/Makefile.in config.status
  173. $(SHELL) ./config.status Makefile
  174. config.intl: $(srcdir)/config.intl.in config.status
  175. $(SHELL) ./config.status config.intl
  176. config.status: $(srcdir)/configure
  177. $(SHELL) ./config.status --recheck
  178. $(srcdir)/configure: @MAINT@ $(srcdir)/aclocal.m4 $(srcdir)/configure.ac
  179. cd $(srcdir) && $(AUTOCONF)
  180. aclocal_deps = \
  181. $(srcdir)/configure.ac \
  182. $(srcdir)/../config/codeset.m4 \
  183. $(srcdir)/../config/gettext.m4 \
  184. $(srcdir)/../config/glibc21.m4 \
  185. $(srcdir)/../config/iconv.m4 \
  186. $(srcdir)/../config/intdiv0.m4 \
  187. $(srcdir)/../config/inttypes-pri.m4 \
  188. $(srcdir)/../config/inttypes.m4 \
  189. $(srcdir)/../config/inttypes_h.m4 \
  190. $(srcdir)/../config/lcmessage.m4 \
  191. $(srcdir)/../config/lib-ld.m4 \
  192. $(srcdir)/../config/lib-link.m4 \
  193. $(srcdir)/../config/lib-prefix.m4 \
  194. $(srcdir)/../config/nls.m4 \
  195. $(srcdir)/../config/po.m4 \
  196. $(srcdir)/../config/progtest.m4 \
  197. $(srcdir)/../config/stdint_h.m4 \
  198. $(srcdir)/../config/uintmax_t.m4 \
  199. $(srcdir)/../config/ulonglong.m4
  200. $(srcdir)/aclocal.m4: @MAINT@ $(aclocal_deps)
  201. cd $(srcdir) && $(ACLOCAL) -I ../config
  202. config.h: stamp-h1
  203. test -f config.h || (rm -f stamp-h1 && $(MAKE) stamp-h1)
  204. stamp-h1: $(srcdir)/config.h.in config.status
  205. -rm -f stamp-h1
  206. $(SHELL) ./config.status config.h
  207. $(srcdir)/config.h.in: @MAINT@ $(srcdir)/aclocal.m4 $(srcdir)/configure.ac
  208. cd $(srcdir) && $(AUTOHEADER)
  209. -rm -f stamp-h1
  210. # Tell versions [3.59,3.63) of GNU make not to export all variables.
  211. # Otherwise a system limit (for SysV at least) may be exceeded.
  212. .NOEXPORT: