include $(top_srcdir)/common.make SUBDIRS = modules public_headers = \ translate-common.h \ translate-pair.h \ translate-service.h \ translate-session.h \ translate-util.h \ translate.h BUILT_SOURCES = \ translate-rfc3066-private.h \ translate-sgml-entities-private.h lib_LTLIBRARIES = libtranslate.la libtranslate_la_SOURCES = \ $(public_headers) \ $(BUILT_SOURCES) \ translate-pair-private.h \ translate-pair.c \ translate-service-private.h \ translate-service.c \ translate-session.c \ translate-util.c \ translate.c # Before making a release, the version info (which is in the form # CURRENT:REVISION:AGE) should be modified as follows: # # If interfaces have been added, but binary compatibility has been # preserved, increment CURRENT and AGE, and set REVISION to 0. # # If binary compatibility has been broken, increment CURRENT, and set # REVISION and AGE to 0. # # If the interfaces are the same as the previous version, increment # REVISION. libtranslate_la_LDFLAGS = -version-info 0:0:0 \ $(GLIB_LIBS) $(GMODULE_LIBS) $(GTHREAD_LIBS) libtranslate_la_CPPFLAGS = $(WARN_CFLAGS) $(GLIB_CFLAGS) $(GMODULE_CFLAGS) $(GTHREAD_CFLAGS) \ -DG_LOG_DOMAIN="\"$(PACKAGE)\"" \ -DMODULESDIR="\"$(modulesdir)\"" pkginclude_HEADERS = $(public_headers) bin_PROGRAMS = translate translate_SOURCES = translate-cli.c translate_LDADD = libtranslate.la translate_CPPFLAGS = $(WARN_CFLAGS) $(GLIB_CFLAGS) \ -DG_LOG_DOMAIN="\"translate\"" entity_sets = \ xhtml-lat1.ent \ xhtml-special.ent \ xhtml-symbol.ent EXTRA_DIST = \ $(entity_sets) \ ent2h.sh \ lang2h.sh \ sample-text.input \ sample-text.expected \ test-translate.sh MAINTAINERCLEANFILES = $(BUILT_SOURCES) translate-sgml-entities-private.h: ent2h.sh $(entity_sets) ./ent2h.sh $(entity_sets) > $@ translate-rfc3066-private.h: $(top_srcdir)/data/iso639-2 $(top_srcdir)/data/rfc3066.sh lang2h.sh $(top_srcdir)/data/rfc3066.sh < $(top_srcdir)/data/iso639-2 | ./lang2h.sh > $@ if WITH_REGRESSION_TESTS tests = test-util.stamp noinst_PROGRAMS = test-util noinst_DATA = $(tests) test_util_SOURCES = test-util.c test_util_LDADD = libtranslate.la test_util_CPPFLAGS = $(WARN_CFLAGS) $(GLIB_CFLAGS) test-util.stamp: test-util ./test-util @touch test-util.stamp MOSTLYCLEANFILES = $(tests) endif # the translate test is slow, so we only run it on demand (make check) TESTS = test-translate.sh