| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
PACKAGE = gsmlib |
| 19 |
VERSION = 1.10 |
| 20 |
|
| 21 |
SHELL = /bin/sh |
| 22 |
|
| 23 |
srcdir = . |
| 24 |
top_srcdir = .. |
| 25 |
top_builddir = .. |
| 26 |
|
| 27 |
|
| 28 |
prefix = /usr/local |
| 29 |
exec_prefix = ${prefix} |
| 30 |
transform = s,x,x, |
| 31 |
libdir = $(exec_prefix)/lib |
| 32 |
includedir = $(prefix)/include |
| 33 |
datadir = $(prefix)/share |
| 34 |
localedir = $(datadir)/locale |
| 35 |
gnulocaledir = $(prefix)/share/locale |
| 36 |
gettextsrcdir = ${prefix}/share/gettext/intl |
| 37 |
aliaspath = $(localedir):. |
| 38 |
subdir = intl |
| 39 |
|
| 40 |
INSTALL = /bin/install -c |
| 41 |
INSTALL_DATA = ${INSTALL} -m 644 |
| 42 |
MKINSTALLDIRS = $(top_builddir)/scripts/mkinstalldirs |
| 43 |
|
| 44 |
l = @l@ |
| 45 |
|
| 46 |
AR = ar |
| 47 |
CC = gcc |
| 48 |
LIBTOOL = $(SHELL) $(top_builddir)/libtool |
| 49 |
RANLIB = ranlib |
| 50 |
|
| 51 |
DEFS = -DGNULOCALEDIR=\"$(gnulocaledir)\" \ |
| 52 |
-DLOCALE_ALIAS_PATH=\"$(aliaspath)\" -DHAVE_CONFIG_H |
| 53 |
CPPFLAGS = |
| 54 |
CFLAGS = -D_REENTRANT -g -O2 |
| 55 |
LDFLAGS = |
| 56 |
|
| 57 |
COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) $(XCFLAGS) |
| 58 |
|
| 59 |
HEADERS = $(COMHDRS) libgettext.h loadinfo.h |
| 60 |
COMHDRS = gettext.h gettextP.h hash-string.h |
| 61 |
SOURCES = $(COMSRCS) intl-compat.c cat-compat.c |
| 62 |
COMSRCS = bindtextdom.c dcgettext.c dgettext.c gettext.c \ |
| 63 |
finddomain.c loadmsgcat.c localealias.c textdomain.c l10nflist.c \ |
| 64 |
explodename.c |
| 65 |
OBJECTS = bindtextdom.$lo dcgettext.$lo dgettext.$lo gettext.$lo \ |
| 66 |
finddomain.$lo loadmsgcat.$lo localealias.$lo textdomain.$lo l10nflist.$lo \ |
| 67 |
explodename.$lo |
| 68 |
CATOBJS = cat-compat.$lo ../po/cat-id-tbl.$lo |
| 69 |
GETTOBJS = intl-compat.$lo |
| 70 |
DISTFILES.common = ChangeLog Makefile.in linux-msg.sed po2tbl.sed.in \ |
| 71 |
xopen-msg.sed $(HEADERS) $(SOURCES) |
| 72 |
DISTFILES.normal = VERSION |
| 73 |
DISTFILES.gettext = libintl.glibc intlh.inst.in |
| 74 |
|
| 75 |
.SUFFIXES: |
| 76 |
.SUFFIXES: .c .o .lo |
| 77 |
.c.o: |
| 78 |
$(COMPILE) $< |
| 79 |
.c.lo: |
| 80 |
$(LIBTOOL) --mode=compile $(COMPILE) $< |
| 81 |
|
| 82 |
INCLUDES = -I.. -I. -I$(top_srcdir)/intl -I$(top_srcdir)/lib |
| 83 |
|
| 84 |
all: all-no |
| 85 |
|
| 86 |
all-yes: libintl.$la intlh.inst |
| 87 |
all-no: |
| 88 |
|
| 89 |
libintl.a: $(OBJECTS) |
| 90 |
rm -f $@ |
| 91 |
$(AR) cru $@ $(OBJECTS) |
| 92 |
$(RANLIB) $@ |
| 93 |
|
| 94 |
libintl.la: $(OBJECTS) |
| 95 |
$(LIBTOOL) --mode=link $(CC) $(LDFLAGS) -o $@ $(OBJECTS) \ |
| 96 |
-version-info 1:0 -rpath $(libdir) |
| 97 |
|
| 98 |
../po/cat-id-tbl.$lo: ../po/cat-id-tbl.c $(top_srcdir)/po/$(PACKAGE).pot |
| 99 |
cd ../po && $(MAKE) cat-id-tbl.$lo |
| 100 |
|
| 101 |
check: all |
| 102 |
|
| 103 |
|
| 104 |
|
| 105 |
|
| 106 |
|
| 107 |
|
| 108 |
|
| 109 |
|
| 110 |
|
| 111 |
|
| 112 |
install: install-exec install-data |
| 113 |
install-exec: all |
| 114 |
if test "$(PACKAGE)" = "gettext" \ |
| 115 |
&& test '' = '$(GETTOBJS)'; then \ |
| 116 |
if test -r $(MKINSTALLDIRS); then \ |
| 117 |
$(MKINSTALLDIRS) $(libdir) $(includedir); \ |
| 118 |
else \ |
| 119 |
$(top_srcdir)/mkinstalldirs $(libdir) $(includedir); \ |
| 120 |
fi; \ |
| 121 |
$(INSTALL_DATA) intlh.inst $(includedir)/libintl.h; \ |
| 122 |
$(INSTALL_DATA) libintl.a $(libdir)/libintl.a; \ |
| 123 |
else \ |
| 124 |
: ; \ |
| 125 |
fi |
| 126 |
install-data: all |
| 127 |
if test "$(PACKAGE)" = "gettext"; then \ |
| 128 |
if test -r $(MKINSTALLDIRS); then \ |
| 129 |
$(MKINSTALLDIRS) $(gettextsrcdir); \ |
| 130 |
else \ |
| 131 |
$(top_srcdir)/mkinstalldirs $(gettextsrcdir); \ |
| 132 |
fi; \ |
| 133 |
$(INSTALL_DATA) VERSION $(gettextsrcdir)/VERSION; \ |
| 134 |
dists="$(DISTFILES.common)"; \ |
| 135 |
for file in $$dists; do \ |
| 136 |
$(INSTALL_DATA) $(srcdir)/$$file $(gettextsrcdir)/$$file; \ |
| 137 |
done; \ |
| 138 |
else \ |
| 139 |
: ; \ |
| 140 |
fi |
| 141 |
|
| 142 |
|
| 143 |
installcheck: |
| 144 |
|
| 145 |
uninstall: |
| 146 |
dists="$(DISTFILES.common)"; \ |
| 147 |
for file in $$dists; do \ |
| 148 |
rm -f $(gettextsrcdir)/$$file; \ |
| 149 |
done |
| 150 |
|
| 151 |
info dvi: |
| 152 |
|
| 153 |
$(OBJECTS): ../gsm_config.h libgettext.h |
| 154 |
bindtextdom.$lo finddomain.$lo loadmsgcat.$lo: gettextP.h gettext.h loadinfo.h |
| 155 |
dcgettext.$lo: gettextP.h gettext.h hash-string.h loadinfo.h |
| 156 |
|
| 157 |
tags: TAGS |
| 158 |
|
| 159 |
TAGS: $(HEADERS) $(SOURCES) |
| 160 |
here=`pwd`; cd $(srcdir) && etags -o $$here/TAGS $(HEADERS) $(SOURCES) |
| 161 |
|
| 162 |
id: ID |
| 163 |
|
| 164 |
ID: $(HEADERS) $(SOURCES) |
| 165 |
here=`pwd`; cd $(srcdir) && mkid -f$$here/ID $(HEADERS) $(SOURCES) |
| 166 |
|
| 167 |
|
| 168 |
mostlyclean: |
| 169 |
rm -f *.a *.o *.lo core core.* |
| 170 |
|
| 171 |
clean: mostlyclean |
| 172 |
|
| 173 |
distclean: clean |
| 174 |
rm -f Makefile ID TAGS po2msg.sed po2tbl.sed |
| 175 |
|
| 176 |
maintainer-clean: distclean |
| 177 |
@echo "This command is intended for maintainers to use;" |
| 178 |
@echo "it deletes files that may require special tools to rebuild." |
| 179 |
|
| 180 |
|
| 181 |
|
| 182 |
|
| 183 |
distdir = ../$(PACKAGE)-$(VERSION)/$(subdir) |
| 184 |
dist distdir: Makefile $(DISTFILES) |
| 185 |
if test "$(PACKAGE)" = gettext; then \ |
| 186 |
additional="$(DISTFILES.gettext)"; \ |
| 187 |
else \ |
| 188 |
additional="$(DISTFILES.normal)"; \ |
| 189 |
fi; \ |
| 190 |
for file in $(DISTFILES.common) $$additional; do \ |
| 191 |
ln $(srcdir)/$$file $(distdir) 2> /dev/null \ |
| 192 |
|| cp -p $(srcdir)/$$file $(distdir); \ |
| 193 |
done |
| 194 |
|
| 195 |
dist-libc: |
| 196 |
tar zcvf intl-glibc.tar.gz $(COMSRCS) $(COMHDRS) libintl.h.glibc |
| 197 |
|
| 198 |
Makefile: Makefile.in ../config.status |
| 199 |
cd .. \ |
| 200 |
&& CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status |
| 201 |
|
| 202 |
|
| 203 |
|
| 204 |
|
| 205 |
@[email protected]: intlh.inst.in ../config.status |
| 206 |
@GT_YES@ cd .. \ |
| 207 |
@GT_YES@ && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= \ |
| 208 |
@GT_YES@ $(SHELL) ./config.status |
| 209 |
@[email protected]: intlh.inst |
| 210 |
@[email protected]: |
| 211 |
|
| 212 |
|
| 213 |
|
| 214 |
.NOEXPORT: |