xref: /freebsd/contrib/expat/lib/Makefile.am (revision 7ef62cebc2f965b0f640263e179276928885e33d)
1#
2#                          __  __            _
3#                       ___\ \/ /_ __   __ _| |_
4#                      / _ \\  /| '_ \ / _` | __|
5#                     |  __//  \| |_) | (_| | |_
6#                      \___/_/\_\ .__/ \__,_|\__|
7#                               |_| XML parser
8#
9# Copyright (c) 2017-2022 Sebastian Pipping <sebastian@pipping.org>
10# Copyright (c) 2017      Tomasz Kłoczko <kloczek@fedoraproject.org>
11# Copyright (c) 2019      David Loffredo <loffredo@steptools.com>
12# Licensed under the MIT license:
13#
14# Permission is  hereby granted,  free of charge,  to any  person obtaining
15# a  copy  of  this  software   and  associated  documentation  files  (the
16# "Software"),  to  deal in  the  Software  without restriction,  including
17# without  limitation the  rights  to use,  copy,  modify, merge,  publish,
18# distribute, sublicense, and/or sell copies of the Software, and to permit
19# persons  to whom  the Software  is  furnished to  do so,  subject to  the
20# following conditions:
21#
22# The above copyright  notice and this permission notice  shall be included
23# in all copies or substantial portions of the Software.
24#
25# THE  SOFTWARE  IS  PROVIDED  "AS  IS",  WITHOUT  WARRANTY  OF  ANY  KIND,
26# EXPRESS  OR IMPLIED,  INCLUDING  BUT  NOT LIMITED  TO  THE WARRANTIES  OF
27# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
28# NO EVENT SHALL THE AUTHORS OR  COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
29# DAMAGES OR  OTHER LIABILITY, WHETHER  IN AN  ACTION OF CONTRACT,  TORT OR
30# OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
31# USE OR OTHER DEALINGS IN THE SOFTWARE.
32
33include_HEADERS = \
34    ../expat_config.h \
35    expat.h \
36    expat_external.h
37
38lib_LTLIBRARIES = libexpat.la
39noinst_LTLIBRARIES = libexpatinternal.la
40
41libexpat_la_LDFLAGS = \
42    @AM_LDFLAGS@ \
43    @LIBM@ \
44    -no-undefined \
45    -version-info @LIBCURRENT@:@LIBREVISION@:@LIBAGE@
46
47libexpat_la_SOURCES =
48
49# This layer of indirection allows
50# the test suite to access internal symbols
51# despite compiling with -fvisibility=hidden
52libexpatinternal_la_SOURCES = \
53    xmlparse.c \
54    xmltok.c \
55    xmlrole.c
56
57libexpat_la_LIBADD = libexpatinternal.la
58
59doc_DATA = \
60    ../AUTHORS \
61    ../Changes
62
63install-data-hook:
64	cd "$(DESTDIR)$(docdir)" && $(am__mv) Changes changelog
65
66uninstall-local:
67	$(RM) "$(DESTDIR)$(docdir)/changelog"
68
69EXTRA_DIST = \
70    ascii.h \
71    asciitab.h \
72    expat_external.h \
73    expat.h \
74    iasciitab.h \
75    internal.h \
76    latin1tab.h \
77    libexpat.def.cmake \
78    nametab.h \
79    siphash.h \
80    utf8tab.h \
81    winconfig.h \
82    xmlrole.h \
83    xmltok.h \
84    xmltok_impl.c \
85    xmltok_impl.h \
86    xmltok_ns.c
87