Makefile.in 6.7 KB

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