aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ares/Makefile.am9
-rw-r--r--ares/Makefile.inc9
2 files changed, 15 insertions, 3 deletions
diff --git a/ares/Makefile.am b/ares/Makefile.am
index e8b702045..01b7f08af 100644
--- a/ares/Makefile.am
+++ b/ares/Makefile.am
@@ -108,14 +108,17 @@ libcares_ladir = $(includedir)
libcares_la_HEADERS = ares.h ares_version.h ares_dns.h \
ares_build.h ares_rules.h
-ahost_SOURCES = ahost.c ares_getopt.c ares_getopt.h
+ahost_SOURCES = ahost.c $(SAMPLESOURCES) $(SAMPLEHEADERS)
ahost_LDADD = $(top_builddir)/libcares.la
+ahost_CFLAGS = $(AM_CFLAGS)
-adig_SOURCES = adig.c ares_getopt.c ares_getopt.h
+adig_SOURCES = adig.c $(SAMPLESOURCES) $(SAMPLEHEADERS)
adig_LDADD = $(top_builddir)/libcares.la
+adig_CFLAGS = $(AM_CFLAGS)
-acountry_SOURCES = acountry.c ares_getopt.c ares_getopt.h
+acountry_SOURCES = acountry.c $(SAMPLESOURCES) $(SAMPLEHEADERS)
acountry_LDADD = $(top_builddir)/libcares.la
+acountry_CFLAGS = $(AM_CFLAGS)
SOURCEDMANDIR = man3
SOURCEDMANPAGES = ares_init.3
diff --git a/ares/Makefile.inc b/ares/Makefile.inc
index 04ab7a12e..8d99afdcb 100644
--- a/ares/Makefile.inc
+++ b/ares/Makefile.inc
@@ -163,3 +163,12 @@ PDFPAGES = ares_cancel.pdf \
ares_timeout.pdf \
ares_version.pdf
+SAMPLESOURCES = ares_getopt.c \
+ ares_strcasecmp.c \
+ inet_net_pton.c \
+ inet_ntop.c
+
+SAMPLEHEADERS = ares_getopt.h \
+ ares_strcasecmp.h \
+ inet_net_pton.h \
+ inet_ntop.h