1# Copyright (C) The c-ares project and its contributors
2# SPDX-License-Identifier: MIT
3AUTOMAKE_OPTIONS = foreign subdir-objects nostdinc 1.9.6
4ACLOCAL_AMFLAGS = -I m4 --install
5
6# Specify our include paths here, and do it relative to $(top_srcdir) and
7# $(top_builddir), to ensure that these paths which belong to the library
8# being currently built and tested are searched before the library which
9# might possibly already be installed in the system.
10
11AM_CPPFLAGS += -I$(top_builddir)/include \
12               -I$(top_builddir)/src/lib \
13               -I$(top_srcdir)/include \
14               -I$(top_srcdir)/src/lib
15
16lib_LTLIBRARIES = libcares.la
17
18man_MANS = $(MANPAGES)
19
20# adig and ahost are just sample programs and thus not mentioned with the
21# regular sources and headers
22EXTRA_DIST = Makefile.inc config-win32.h CMakeLists.txt \
23  ares_config.h.in ares_config.h.cmake cares.rc \
24  $(CSOURCES) $(HHEADERS) config-dos.h
25
26DISTCLEANFILES = ares_config.h
27
28DIST_SUBDIRS =
29
30libcares_la_LDFLAGS = -version-info @CARES_VERSION_INFO@
31if CARES_USE_NO_UNDEFINED
32libcares_la_LDFLAGS += -no-undefined
33endif
34
35libcares_la_CFLAGS_EXTRA =
36
37libcares_la_CPPFLAGS_EXTRA = -DCARES_BUILDING_LIBRARY
38
39if CARES_SYMBOL_HIDING
40libcares_la_CFLAGS_EXTRA += @CARES_SYMBOL_HIDING_CFLAG@
41libcares_la_CPPFLAGS_EXTRA += -DCARES_SYMBOL_HIDING
42endif
43
44include $(top_srcdir)/aminclude_static.am
45libcares_la_LIBS = $(CODE_COVERAGE_LIBS)
46libcares_la_CFLAGS_EXTRA += $(CODE_COVERAGE_CFLAGS)
47libcares_la_CPPFLAGS_EXTRA += $(CODE_COVERAGE_CPPFLAGS)
48
49libcares_la_CFLAGS = $(AM_CFLAGS) $(libcares_la_CFLAGS_EXTRA)
50
51libcares_la_CPPFLAGS = $(AM_CPPFLAGS) $(libcares_la_CPPFLAGS_EXTRA)
52
53# Makefile.inc provides the CSOURCES and HHEADERS defines
54include Makefile.inc
55
56libcares_la_SOURCES = $(CSOURCES) $(HHEADERS)
57