1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93
|
# Makefile.am - Top level automakefile for libuninameslist
SUBDIRS = .
if ENABLE_PYLIB
SUBDIRS += py
endif
SUBDIRS += tests
DIST_SUBDIRS = . py tests
man_MANS = libuninameslist.3
test_programs = call-test0 call-test1 call-test2
if WANTLIBOFR
test_programs += call-test3 call-test4 call-test5
endif
test_programs += call-test6
# The braces around ACLOCAL_FLAGS below instead of parentheses are intentional!
# Otherwise autoreconf misparses the line.
ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
AM_CFLAGS = $(WCFLAGS) $(UN_CFLAGS)
AM_LDFLAGS = $(WUNLIB) $(UN_LIB) -no-undefined
LIBTOOL_DEPS = @LIBTOOL_DEPS@
EXTRA_DIST = LICENSE README.md m4/ax_check_compile_flag.m4 tests/call-test.c \
py/setup.py py/uninameslist.py libuninameslist.3
EXTRA_PROGRAMS = buildnameslist
buildnameslist_SOURCES = buildnameslist.c
buildnameslist.$(OBJEXT): buildnameslist.h
noinst_PROGRAMS = buildnameslist
nodist_EXTRA_DATA = NamesList.txt ListeDesNoms.txt buildnameslist.h .git/*
DISTCLEANFILES = libuninameslist.pc
DISTCHECK_CONFIGURE_FLAGS = --enable-frenchlib --enable-pylib
lib_LTLIBRARIES = libuninameslist.la
if WANTLIBOFR
lib_LTLIBRARIES += libuninameslist-fr.la
endif
libuninameslist_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(UN_VERSION)
libuninameslist_la_SOURCES = nameslist.c
libuninameslist_la.$(OBJEXT): uninameslist.h nameslist-dll.h
if WANTLIBOFR
libuninameslist_fr_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(FR_VERSION)
libuninameslist_fr_la_SOURCES = nameslist-fr.c
libuninameslist_fr_la.$(OBJEXT): uninameslist-fr.h nameslist-dll.h
man_MANS += libuninameslist-fr.3
else
EXTRA_DIST += nameslist-fr.c uninameslist-fr.h libuninameslist-fr.3
endif
include_HEADERS = uninameslist.h
if WANTLIBOFR
include_HEADERS += uninameslist-fr.h
endif
noinst_HEADERS = nameslist-dll.h
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = libuninameslist.pc
buildnameslist.h:
echo 'const char NL_VERSION[] = "$(NL_VERSION)";' > buildnameslist.h
echo 'const char NFR_VERSION[] = "$(NFR_VERSION)";' >> buildnameslist.h
libtool: $(LIBTOOL_DEPS)
$(SHELL) ./config.status libtool
NamesList.txt:
$(WGET) "http://www.unicode.org/Public/11.0.0/ucd/NamesList.txt" -O NamesList.txt
ListeDesNoms.txt:
$(WGET) "http://hapax.qc.ca/ListeNoms-10.0.0.txt" -O ListeDesNoms.txt
# test: run all tests in cwd and subdirs
test: $(TEST_PROGS)
.PHONY: test
# run make test as part of make check
check-local: test
CLEANFILES = NamesList.txt ListeDesNoms.latin1 ListeDesNoms.txt buildnameslist buildnameslist.h
MAINTAINERCLEANFILES = \
$(GITIGNORE_MAINTAINERCLEANFILES_TOPLEVEL) \
$(GITIGNORE_MAINTAINERCLEANFILES_MAKEFILE_IN) \
$(GITIGNORE_MAINTAINERCLEANFILES_M4_GETTEXT) \
$(GITIGNORE_MAINTAINERCLEANFILES_M4_LIBTOOL)
-include $(top_srcdir)/git.mk
|