• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1AUTOMAKE_OPTIONS = foreign subdir-objects nostdinc 1.9.6
2ACLOCAL_AMFLAGS = -I m4 --install
3
4# Specify our include paths here, and do it relative to $(top_srcdir) and
5# $(top_builddir), to ensure that these paths which belong to the library
6# being currently built and tested are searched before the library which
7# might possibly already be installed in the system.
8
9AM_CPPFLAGS = -I$(top_builddir)/include \
10              -I$(top_builddir)/src/lib \
11              -I$(top_srcdir)/include \
12              -I$(top_srcdir)/src/lib
13
14lib_LTLIBRARIES = libcares.la
15
16man_MANS = $(MANPAGES)
17
18# adig and ahost are just sample programs and thus not mentioned with the
19# regular sources and headers
20EXTRA_DIST = Makefile.inc config-win32.h CMakeLists.txt \
21  ares_config.h.in ares_config.h.cmake cares.rc \
22  $(CSOURCES) $(HHEADERS) config-dos.h
23
24DISTCLEANFILES = ares_config.h
25
26DIST_SUBDIRS =
27
28AM_LDFLAGS =
29
30libcares_la_LDFLAGS_EXTRA =
31
32if CARES_LT_SHLIB_USE_VERSION_INFO
33libcares_la_LDFLAGS_EXTRA += -version-info @CARES_VERSION_INFO@
34endif
35
36if CARES_LT_SHLIB_USE_NO_UNDEFINED
37libcares_la_LDFLAGS_EXTRA += -no-undefined
38endif
39
40if CARES_LT_SHLIB_USE_MIMPURE_TEXT
41libcares_la_LDFLAGS_EXTRA += -mimpure-text
42endif
43
44libcares_la_LDFLAGS = $(AM_LDFLAGS) $(libcares_la_LDFLAGS_EXTRA)
45
46# Add -Werror if defined
47CFLAGS += @CARES_CFLAG_EXTRAS@
48
49if USE_CPPFLAG_CARES_STATICLIB
50AM_CPPFLAGS += $(CPPFLAG_CARES_STATICLIB)
51endif
52
53libcares_la_CFLAGS_EXTRA =
54
55libcares_la_CPPFLAGS_EXTRA = -DCARES_BUILDING_LIBRARY
56
57if DOING_CARES_SYMBOL_HIDING
58libcares_la_CFLAGS_EXTRA += $(CFLAG_CARES_SYMBOL_HIDING)
59libcares_la_CPPFLAGS_EXTRA += -DCARES_SYMBOL_HIDING
60endif
61
62include $(top_srcdir)/aminclude_static.am
63libcares_la_LIBS = $(CODE_COVERAGE_LIBS)
64libcares_la_CFLAGS_EXTRA += $(CODE_COVERAGE_CFLAGS)
65libcares_la_CPPFLAGS_EXTRA += $(CODE_COVERAGE_CPPFLAGS)
66
67libcares_la_CFLAGS = $(AM_CFLAGS) $(libcares_la_CFLAGS_EXTRA)
68
69libcares_la_CPPFLAGS = $(AM_CPPFLAGS) $(libcares_la_CPPFLAGS_EXTRA)
70
71# Makefile.inc provides the CSOURCES and HHEADERS defines
72include Makefile.inc
73
74libcares_la_SOURCES = $(CSOURCES) $(HHEADERS)
75