cord.am raw
1 ## This file is processed with `automake`.
2
3 # Info (`current:revision:age`) for the Libtool versioning system.
4 # These numbers should be updated at most once just before the release,
5 # and, optionally, at most once during the development (after the release).
6 LIBCORD_VER_INFO = 6:1:5
7
8 lib_LTLIBRARIES += libcord.la
9
10 libcord_la_LIBADD = libgc.la
11 libcord_la_LDFLAGS = -version-info $(LIBCORD_VER_INFO) -no-undefined
12 libcord_la_CPPFLAGS = $(AM_CPPFLAGS)
13
14 libcord_la_SOURCES = \
15 cord/cordbscs.c \
16 cord/cordprnt.c \
17 cord/cordxtra.c
18
19 TESTS += cordtest$(EXEEXT)
20 check_PROGRAMS += cordtest
21 cordtest_SOURCES = cord/tests/cordtest.c
22 cordtest_LDADD = $(top_builddir)/libcord.la
23
24 ## In case of static libraries build, `libgc.a` file is already referenced in
25 ## `dependency_libs` attribute of `libcord.la` file.
26 if ENABLE_SHARED
27 cordtest_LDADD += $(top_builddir)/libgc.la
28 endif
29
30 EXTRA_DIST += \
31 cord/tests/de.c \
32 cord/tests/de_cmds.h \
33 cord/tests/de_win.c \
34 cord/tests/de_win.h \
35 cord/tests/de_win.rc
36
37 pkginclude_HEADERS += \
38 include/gc/cord.h \
39 include/gc/cord_pos.h \
40 include/gc/ec.h
41