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 -I$(top_srcdir)/src/lib/include 16 17lib_LTLIBRARIES = libcares.la 18 19man_MANS = $(MANPAGES) 20 21# adig and ahost are just sample programs and thus not mentioned with the 22# regular sources and headers 23EXTRA_DIST = Makefile.inc config-win32.h CMakeLists.txt \ 24 ares_config.h.in ares_config.h.cmake cares.rc \ 25 $(CSOURCES) $(HHEADERS) config-dos.h 26 27DISTCLEANFILES = ares_config.h 28 29DIST_SUBDIRS = 30 31libcares_la_LDFLAGS = -version-info @CARES_VERSION_INFO@ 32if CARES_USE_NO_UNDEFINED 33libcares_la_LDFLAGS += -no-undefined 34endif 35 36libcares_la_CFLAGS_EXTRA = 37 38libcares_la_CPPFLAGS_EXTRA = -DCARES_BUILDING_LIBRARY 39 40if CARES_SYMBOL_HIDING 41libcares_la_CFLAGS_EXTRA += @CARES_SYMBOL_HIDING_CFLAG@ 42libcares_la_CPPFLAGS_EXTRA += -DCARES_SYMBOL_HIDING 43endif 44 45include $(top_srcdir)/aminclude_static.am 46libcares_la_LIBS = $(CODE_COVERAGE_LIBS) 47libcares_la_CFLAGS_EXTRA += $(CODE_COVERAGE_CFLAGS) 48libcares_la_CPPFLAGS_EXTRA += $(CODE_COVERAGE_CPPFLAGS) 49 50libcares_la_CFLAGS = $(AM_CFLAGS) $(libcares_la_CFLAGS_EXTRA) 51 52libcares_la_CPPFLAGS = $(AM_CPPFLAGS) $(libcares_la_CPPFLAGS_EXTRA) 53 54# Makefile.inc provides the CSOURCES and HHEADERS defines 55include Makefile.inc 56 57libcares_la_SOURCES = $(CSOURCES) $(HHEADERS) 58