xref: /third_party/node/deps/cares/src/lib/Makefile.am (revision 1cb0ef41)
11cb0ef41Sopenharmony_ci# Copyright (C) The c-ares project and its contributors
21cb0ef41Sopenharmony_ci# SPDX-License-Identifier: MIT
31cb0ef41Sopenharmony_ciAUTOMAKE_OPTIONS = foreign subdir-objects nostdinc 1.9.6
41cb0ef41Sopenharmony_ciACLOCAL_AMFLAGS = -I m4 --install
51cb0ef41Sopenharmony_ci
61cb0ef41Sopenharmony_ci# Specify our include paths here, and do it relative to $(top_srcdir) and
71cb0ef41Sopenharmony_ci# $(top_builddir), to ensure that these paths which belong to the library
81cb0ef41Sopenharmony_ci# being currently built and tested are searched before the library which
91cb0ef41Sopenharmony_ci# might possibly already be installed in the system.
101cb0ef41Sopenharmony_ci
111cb0ef41Sopenharmony_ciAM_CPPFLAGS += -I$(top_builddir)/include \
121cb0ef41Sopenharmony_ci               -I$(top_builddir)/src/lib \
131cb0ef41Sopenharmony_ci               -I$(top_srcdir)/include \
141cb0ef41Sopenharmony_ci               -I$(top_srcdir)/src/lib
151cb0ef41Sopenharmony_ci
161cb0ef41Sopenharmony_cilib_LTLIBRARIES = libcares.la
171cb0ef41Sopenharmony_ci
181cb0ef41Sopenharmony_ciman_MANS = $(MANPAGES)
191cb0ef41Sopenharmony_ci
201cb0ef41Sopenharmony_ci# adig and ahost are just sample programs and thus not mentioned with the
211cb0ef41Sopenharmony_ci# regular sources and headers
221cb0ef41Sopenharmony_ciEXTRA_DIST = Makefile.inc config-win32.h CMakeLists.txt \
231cb0ef41Sopenharmony_ci  ares_config.h.in ares_config.h.cmake cares.rc \
241cb0ef41Sopenharmony_ci  $(CSOURCES) $(HHEADERS) config-dos.h
251cb0ef41Sopenharmony_ci
261cb0ef41Sopenharmony_ciDISTCLEANFILES = ares_config.h
271cb0ef41Sopenharmony_ci
281cb0ef41Sopenharmony_ciDIST_SUBDIRS =
291cb0ef41Sopenharmony_ci
301cb0ef41Sopenharmony_cilibcares_la_LDFLAGS = -version-info @CARES_VERSION_INFO@
311cb0ef41Sopenharmony_ciif CARES_USE_NO_UNDEFINED
321cb0ef41Sopenharmony_cilibcares_la_LDFLAGS += -no-undefined
331cb0ef41Sopenharmony_ciendif
341cb0ef41Sopenharmony_ci
351cb0ef41Sopenharmony_cilibcares_la_CFLAGS_EXTRA =
361cb0ef41Sopenharmony_ci
371cb0ef41Sopenharmony_cilibcares_la_CPPFLAGS_EXTRA = -DCARES_BUILDING_LIBRARY
381cb0ef41Sopenharmony_ci
391cb0ef41Sopenharmony_ciif CARES_SYMBOL_HIDING
401cb0ef41Sopenharmony_cilibcares_la_CFLAGS_EXTRA += @CARES_SYMBOL_HIDING_CFLAG@
411cb0ef41Sopenharmony_cilibcares_la_CPPFLAGS_EXTRA += -DCARES_SYMBOL_HIDING
421cb0ef41Sopenharmony_ciendif
431cb0ef41Sopenharmony_ci
441cb0ef41Sopenharmony_ciinclude $(top_srcdir)/aminclude_static.am
451cb0ef41Sopenharmony_cilibcares_la_LIBS = $(CODE_COVERAGE_LIBS)
461cb0ef41Sopenharmony_cilibcares_la_CFLAGS_EXTRA += $(CODE_COVERAGE_CFLAGS)
471cb0ef41Sopenharmony_cilibcares_la_CPPFLAGS_EXTRA += $(CODE_COVERAGE_CPPFLAGS)
481cb0ef41Sopenharmony_ci
491cb0ef41Sopenharmony_cilibcares_la_CFLAGS = $(AM_CFLAGS) $(libcares_la_CFLAGS_EXTRA)
501cb0ef41Sopenharmony_ci
511cb0ef41Sopenharmony_cilibcares_la_CPPFLAGS = $(AM_CPPFLAGS) $(libcares_la_CPPFLAGS_EXTRA)
521cb0ef41Sopenharmony_ci
531cb0ef41Sopenharmony_ci# Makefile.inc provides the CSOURCES and HHEADERS defines
541cb0ef41Sopenharmony_ciinclude Makefile.inc
551cb0ef41Sopenharmony_ci
561cb0ef41Sopenharmony_cilibcares_la_SOURCES = $(CSOURCES) $(HHEADERS)
57