Update Traditional Chinese translation for the binutils sub-directory.
[deliverable/binutils-gdb.git] / libctf / Makefile.am
index 5fe2c95901d61b99d2904d33af891f9e8eb2f5e3..c672d07e142bc07c4ac1e1d32315b10d70860dfa 100644 (file)
@@ -1,6 +1,6 @@
 ## Process this file with automake to produce Makefile.in.
 #
-#   Copyright (C) 2019 Free Software Foundation, Inc.
+#   Copyright (C) 2019-2020 Free Software Foundation, Inc.
 #
 # This file is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
 # <http://www.gnu.org/licenses/>.
 #
 
-ACLOCAL_AMFLAGS = -I .. -I ../config
+ACLOCAL_AMFLAGS = -I .. -I ../config -I ../bfd
 
 AUTOMAKE_OPTIONS = foreign no-texinfo.tex
 
-AM_CPPFLAGS = -D_GNU_SOURCE -I$(top_srcdir) -I$(top_srcdir)/../include -I$(top_srcdir)/../bfd -I../bfd
-AM_CFLAGS = -std=gnu99 @ac_libctf_warn_cflags@ @warn@ @c_warn@ @WARN_PEDANTIC@ @WERROR@
+# This is where we get zlib from.  zlibdir is -L../zlib and zlibinc is
+# -I../zlib, unless we were configured with --with-system-zlib, in which
+# case both are empty.
+ZLIB = @zlibdir@ -lz
+ZLIBINC = @zlibinc@
 
-noinst_LIBRARIES = libctf.a
+INCDIR = $(srcdir)/../include
+AM_CPPFLAGS = -D_GNU_SOURCE -I$(srcdir) -I$(srcdir)/../include -I$(srcdir)/../bfd -I../bfd
+AM_CFLAGS = -std=gnu99 @ac_libctf_warn_cflags@ @warn@ @c_warn@ @WARN_PEDANTIC@ @WERROR@ $(ZLIBINC)
 
-libctf_a_SOURCES = ctf-archive.c ctf-dump.c ctf-create.c ctf-decl.c ctf-error.c \
-                  ctf-hash.c ctf-labels.c ctf-lookup.c ctf-open.c ctf-open-bfd.c \
-                  ctf-subr.c ctf-types.c ctf-util.c
+if INSTALL_LIBBFD
+lib_LTLIBRARIES = libctf.la libctf-nobfd.la
+include_HEADERS = $(INCDIR)/ctf.h $(INCDIR)/ctf-api.h
+else
+include_HEADERS =
+noinst_LTLIBRARIES = libctf.la libctf-nobfd.la
+endif
+
+libctf_nobfd_la_LIBADD = @SHARED_LIBADD@ $(ZLIB)
+libctf_nobfd_la_LDFLAGS = -version-info 0:0:0 @SHARED_LDFLAGS@ @VERSION_FLAGS@
+libctf_nobfd_la_SOURCES = ctf-archive.c ctf-dump.c ctf-create.c ctf-decl.c ctf-error.c \
+                         ctf-hash.c ctf-labels.c ctf-link.c ctf-lookup.c ctf-open.c \
+                         ctf-string.c ctf-subr.c ctf-types.c ctf-util.c
+if NEED_CTF_QSORT_R
+libctf_nobfd_la_SOURCES += ctf-qsort_r.c
+endif
+
+libctf_la_LIBADD = @BFD_LIBADD@ $(libctf_nobfd_la_LIBADD)
+libctf_la_DEPENDENCIES = @BFD_DEPENDENCIES@
+libctf_la_LDFLAGS = $(libctf_nobfd_la_LDFLAGS)
+libctf_la_SOURCES = $(libctf_nobfd_la_SOURCES) ctf-open-bfd.c
This page took 0.028248 seconds and 4 git commands to generate.