Makefile.am (1823B)
1 # Copyright (C) The c-ares project and its contributors 2 # SPDX-License-Identifier: MIT 3 AUTOMAKE_OPTIONS = foreign subdir-objects nostdinc 1.9.6 4 ACLOCAL_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 11 AM_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 17 lib_LTLIBRARIES = libcares.la 18 19 man_MANS = $(MANPAGES) 20 21 # adig and ahost are just sample programs and thus not mentioned with the 22 # regular sources and headers 23 EXTRA_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 27 DISTCLEANFILES = ares_config.h 28 29 DIST_SUBDIRS = 30 31 libcares_la_LDFLAGS = -version-info @CARES_VERSION_INFO@ 32 if CARES_USE_NO_UNDEFINED 33 libcares_la_LDFLAGS += -no-undefined 34 endif 35 36 libcares_la_CFLAGS_EXTRA = 37 38 libcares_la_CPPFLAGS_EXTRA = -DCARES_BUILDING_LIBRARY 39 40 if CARES_SYMBOL_HIDING 41 libcares_la_CFLAGS_EXTRA += @CARES_SYMBOL_HIDING_CFLAG@ 42 libcares_la_CPPFLAGS_EXTRA += -DCARES_SYMBOL_HIDING 43 endif 44 45 include $(top_srcdir)/aminclude_static.am 46 libcares_la_LIBS = $(CODE_COVERAGE_LIBS) 47 libcares_la_CFLAGS_EXTRA += $(CODE_COVERAGE_CFLAGS) 48 libcares_la_CPPFLAGS_EXTRA += $(CODE_COVERAGE_CPPFLAGS) 49 50 libcares_la_CFLAGS = $(AM_CFLAGS) $(libcares_la_CFLAGS_EXTRA) 51 52 libcares_la_CPPFLAGS = $(AM_CPPFLAGS) $(libcares_la_CPPFLAGS_EXTRA) 53 54 # Makefile.inc provides the CSOURCES and HHEADERS defines 55 include Makefile.inc 56 57 libcares_la_SOURCES = $(CSOURCES) $(HHEADERS)