summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2009-11-04 14:24:47 +0000
committerYang Tse <yangsita@gmail.com>2009-11-04 14:24:47 +0000
commite057b523af459e091610c605c4fb9c4ede75fd3c (patch)
treee0da4671f6cba23f88d3468463b93323b0bbe239
parenta82a8fbf821734dd5167ac2e83acfb4d6646e9fe (diff)
downloadc-ares-e057b523af459e091610c605c4fb9c4ede75fd3c.tar.gz
c-ares-e057b523af459e091610c605c4fb9c4ede75fd3c.tar.bz2
c-ares-e057b523af459e091610c605c4fb9c4ede75fd3c.zip
source files used by sample programs
-rw-r--r--Makefile.am9
-rw-r--r--Makefile.inc9
2 files changed, 15 insertions, 3 deletions
diff --git a/Makefile.am b/Makefile.am
index e8b7020..01b7f08 100644
--- a/Makefile.am
+++ b/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/Makefile.inc b/Makefile.inc
index 04ab7a1..8d99afd 100644
--- a/Makefile.inc
+++ b/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