| 1 |
SUBDIRS = gnulib lou_maketable.d |
| 2 |
|
| 3 |
AM_CPPFLAGS = \ |
| 4 |
$(WARN_CFLAGS) \ |
| 5 |
-I$(top_srcdir)/liblouis \ |
| 6 |
-I$(top_srcdir)/tools/gnulib \ |
| 7 |
-I$(top_builddir)/tools/gnulib |
| 8 |
|
| 9 |
lou_checkyaml_CPPFLAGS = $(AM_CPPFLAGS) $(YAML_CFLAGS) |
| 10 |
|
| 11 |
LDADD = \ |
| 12 |
$(top_builddir)/liblouis/liblouis.la \ |
| 13 |
$(top_builddir)/tools/gnulib/libgnutools.la \ |
| 14 |
libbrlcheck.la \ |
| 15 |
$(LTLIBINTL) $(LIBFUZZER_NO_MAIN) |
| 16 |
|
| 17 |
AM_LDFLAGS = |
| 18 |
|
| 19 |
# Pass x86_64 and/or arm64 in compiler and linker flags if asked |
| 20 |
if CLANG_ARCH_X86_64 |
| 21 |
AM_CPPFLAGS += -arch x86_64 |
| 22 |
AM_LDFLAGS += -arch x86_64 |
| 23 |
endif |
| 24 |
if CLANG_ARCH_ARM64 |
| 25 |
AM_CPPFLAGS += -arch arm64 |
| 26 |
AM_LDFLAGS += -arch arm64 |
| 27 |
endif |
| 28 |
|
| 29 |
# libbrlcheck is a convenience library that contains functionality to |
| 30 |
# check a translation. This is mostly needed for the tests in ../tests |
| 31 |
# but it is also needed for lou_checkyaml. So this functionality is |
| 32 |
# packaged up in what automake calls a convenience library, a lib that |
| 33 |
# is solely built at compile time but never installed. |
| 34 |
noinst_LTLIBRARIES = libbrlcheck.la |
| 35 |
libbrlcheck_la_SOURCES = \ |
| 36 |
brl_checks.h \ |
| 37 |
brl_checks.c |
| 38 |
|
| 39 |
# libbrlcheck depends on the liblouis shared lib. Apparently the |
| 40 |
# following is needed to make sure the symbols are resolved from the |
| 41 |
# liblouis library. Otherwise we get missing symbol errors when |
| 42 |
# compiling the test suite, which depends on libbrlcheck. |
| 43 |
libbrlcheck_la_LIBADD = \ |
| 44 |
$(top_builddir)/liblouis/liblouis.la \ |
| 45 |
$(top_builddir)/tools/gnulib/libgnutools.la |
| 46 |
|
| 47 |
lou_checkyaml_LDADD = $(LDADD) $(YAML_LIBS) |
| 48 |
|
| 49 |
bin_PROGRAMS = \ |
| 50 |
lou_allround \ |
| 51 |
lou_checkhyphens \ |
| 52 |
lou_checktable \ |
| 53 |
lou_debug \ |
| 54 |
lou_translate \ |
| 55 |
lou_trace \ |
| 56 |
lou_tableinfo |
| 57 |
|
| 58 |
# install lou_checkyaml only if libyaml is found |
| 59 |
if WITH_YAML |
| 60 |
bin_PROGRAMS += lou_checkyaml |
| 61 |
else |
| 62 |
noinst_PROGRAMS = lou_checkyaml |
| 63 |
endif |
| 64 |
|
| 65 |
lou_allround_SOURCES = lou_allround.c |
| 66 |
lou_checkhyphens_SOURCES = lou_checkhyphens.c |
| 67 |
lou_checktable_SOURCES = lou_checktable.c |
| 68 |
lou_debug_SOURCES = lou_debug.c |
| 69 |
lou_translate_SOURCES = lou_translate.c |
| 70 |
lou_trace_SOURCES = lou_trace.c |
| 71 |
lou_checkyaml_SOURCES = lou_checkyaml.c |
| 72 |
lou_tableinfo_SOURCES = lou_tableinfo.c |
| 73 |
|
| 74 |
if !CROSS_COMPILING |
| 75 |
dist_bin_SCRIPTS = \ |
| 76 |
lou_maketable.d/lou_maketable |
| 77 |
nobase_dist_bin_SCRIPTS = \ |
| 78 |
lou_maketable.d/export_chunked_words.py \ |
| 79 |
lou_maketable.d/generate_alphabet.py \ |
| 80 |
lou_maketable.d/lou_maketable.mk \ |
| 81 |
lou_maketable.d/make_suggestions.py \ |
| 82 |
lou_maketable.d/submit_rows.py \ |
| 83 |
lou_maketable.d/submit_rows.sh \ |
| 84 |
lou_maketable.d/submit_rules.py \ |
| 85 |
lou_maketable.d/submit_rules.sh \ |
| 86 |
lou_maketable.d/substrings.pl \ |
| 87 |
lou_maketable.d/utils.py \ |
| 88 |
lou_maketable.d/wrap_patgen.sh |
| 89 |
endif |
| 90 |
|
| 91 |
# package the lou_maketable wrapper in the tar ball |
| 92 |
EXTRA_DIST = lou_maketable |
| 93 |
|
| 94 |
if HAVE_SOURCE_FORMATTER |
| 95 |
format-sources-local: |
| 96 |
for file in $(SOURCES); do $(SOURCE_FORMATTER) -i $$file; done |
| 97 |
endif |