]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - libctf/Makefile.am
Update year range in copyright notice of binutils files
[thirdparty/binutils-gdb.git] / libctf / Makefile.am
CommitLineData
0e65dfba
NA
1## Process this file with automake to produce Makefile.in.
2#
250d07de 3# Copyright (C) 2019-2021 Free Software Foundation, Inc.
0e65dfba
NA
4#
5# This file is free software; you can redistribute it and/or modify
6# it under the terms of the GNU General Public License as published by
7# the Free Software Foundation; either version 2 of the License, or
8# (at your option) any later version.
9#
10# This program is distributed in the hope that it will be useful,
11# but WITHOUT ANY WARRANTY; without even the implied warranty of
12# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13# GNU General Public License for more details.
14#
15# You should have received a copy of the GNU General Public License
16# along with this program; see the file COPYING. If not see
17# <http://www.gnu.org/licenses/>.
18#
19
87279e3c 20ACLOCAL_AMFLAGS = -I .. -I ../config -I ../bfd
0e65dfba
NA
21
22AUTOMAKE_OPTIONS = foreign no-texinfo.tex
23
a0486bac
JM
24# This is where we get zlib from. zlibdir is -L../zlib and zlibinc is
25# -I../zlib, unless we were configured with --with-system-zlib, in which
26# case both are empty.
27ZLIB = @zlibdir@ -lz
28ZLIBINC = @zlibinc@
29
87279e3c 30INCDIR = $(srcdir)/../include
987cf30a 31AM_CPPFLAGS = -D_GNU_SOURCE -I$(srcdir) -I$(srcdir)/../include -I$(srcdir)/../bfd -I../bfd @INCINTL@
a0486bac 32AM_CFLAGS = -std=gnu99 @ac_libctf_warn_cflags@ @warn@ @c_warn@ @WARN_PEDANTIC@ @WERROR@ $(ZLIBINC)
0e65dfba 33
87279e3c
NA
34if INSTALL_LIBBFD
35lib_LTLIBRARIES = libctf.la libctf-nobfd.la
36include_HEADERS = $(INCDIR)/ctf.h $(INCDIR)/ctf-api.h
37else
38include_HEADERS =
39noinst_LTLIBRARIES = libctf.la libctf-nobfd.la
40endif
0e65dfba 41
87279e3c
NA
42libctf_nobfd_la_LIBADD = @SHARED_LIBADD@ $(ZLIB)
43libctf_nobfd_la_LDFLAGS = -version-info 0:0:0 @SHARED_LDFLAGS@ @VERSION_FLAGS@
8d2229ad 44libctf_nobfd_la_CPPFLAGS = $(AM_CPPFLAGS) -DNOBFD=1
87279e3c 45libctf_nobfd_la_SOURCES = ctf-archive.c ctf-dump.c ctf-create.c ctf-decl.c ctf-error.c \
0f0c11f7
NA
46 ctf-hash.c ctf-labels.c ctf-dedup.c ctf-link.c ctf-lookup.c \
47 ctf-open.c ctf-sha1.c ctf-string.c ctf-subr.c ctf-types.c \
48 ctf-util.c
6b22174f 49if NEED_CTF_QSORT_R
87279e3c 50libctf_nobfd_la_SOURCES += ctf-qsort_r.c
6b22174f 51endif
87279e3c
NA
52
53libctf_la_LIBADD = @BFD_LIBADD@ $(libctf_nobfd_la_LIBADD)
8d2229ad 54libctf_la_CPPFLAGS = $(AM_CPPFLAGS) -DNOBFD=0
87279e3c
NA
55libctf_la_DEPENDENCIES = @BFD_DEPENDENCIES@
56libctf_la_LDFLAGS = $(libctf_nobfd_la_LDFLAGS)
57libctf_la_SOURCES = $(libctf_nobfd_la_SOURCES) ctf-open-bfd.c