xref: /freebsd/contrib/expat/lib/Makefile.am (revision ffd294a1f4c23863c3e515d16dce31d5509bcb01)
1#
2#                          __  __            _
3#                       ___\ \/ /_ __   __ _| |_
4#                      / _ \\  /| '_ \ / _` | __|
5#                     |  __//  \| |_) | (_| | |_
6#                      \___/_/\_\ .__/ \__,_|\__|
7#                               |_| XML parser
8#
9# Copyright (c) 2017-2024 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
39if WITH_TESTS
40noinst_LTLIBRARIES = libtestpat.la
41endif
42
43libexpat_la_LDFLAGS = \
44    @AM_LDFLAGS@ \
45    @LIBM@ \
46    -no-undefined \
47    -version-info @LIBCURRENT@:@LIBREVISION@:@LIBAGE@
48
49libexpat_la_SOURCES = \
50    xmlparse.c \
51    xmltok.c \
52    xmlrole.c
53
54if WITH_TESTS
55libtestpat_la_CPPFLAGS = -DXML_TESTING
56
57libtestpat_la_SOURCES = $(libexpat_la_SOURCES)
58endif
59
60doc_DATA = \
61    ../AUTHORS \
62    ../Changes
63
64install-data-hook:
65	cd "$(DESTDIR)$(docdir)" && $(am__mv) Changes changelog
66
67uninstall-local:
68	$(RM) "$(DESTDIR)$(docdir)/changelog"
69
70EXTRA_DIST = \
71    ascii.h \
72    asciitab.h \
73    expat_external.h \
74    expat.h \
75    iasciitab.h \
76    internal.h \
77    latin1tab.h \
78    libexpat.def.cmake \
79    nametab.h \
80    siphash.h \
81    utf8tab.h \
82    winconfig.h \
83    xmlrole.h \
84    xmltok.h \
85    xmltok_impl.c \
86    xmltok_impl.h \
87    xmltok_ns.c
88