diff options
author | Daniel Stenberg <daniel@haxx.se> | 2004-07-22 22:18:45 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2004-07-22 22:18:45 +0000 |
commit | d5f3636a52d927ee44fa1686ca284cd32b62a0df (patch) | |
tree | 019b62723ef98a69a9a4eafbf75c1cee408007b8 /Makefile.am | |
parent | 55ee00cb1e8a9b0be9c4b6e13b590db4f1580076 (diff) | |
download | c-ares-d5f3636a52d927ee44fa1686ca284cd32b62a0df.tar.gz c-ares-d5f3636a52d927ee44fa1686ca284cd32b62a0df.tar.bz2 c-ares-d5f3636a52d927ee44fa1686ca284cd32b62a0df.zip |
- Fixed a few variable return types for some system calls. Made configure
check for ssize_t to make it possible to use that when receiving the send()
error code. This is necessary to prevent compiler warnings on some systems.
- Made configure create config.h, and all source files now include setup.h that
might include the proper config.h (or a handicrafted alternative).
- Switched to 'ares_socket_t' type for sockets in ares, since Windows don't
use 'int' for that.
- automake-ified and libool-ified c-ares. Now it builds libcares as a shared
lib on most platforms if wanted. (This bloated the size of the release
archive with another 200K!)
- Makefile.am now uses Makefile.inc for the c sources, h headers and man
pages, to make it easier for other makefiles to use the exact same set of
files.
- Adjusted 'maketgz' to use the new automake magic when building distribution
archives.
Diffstat (limited to 'Makefile.am')
-rw-r--r-- | Makefile.am | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am new file mode 100644 index 0000000..d60c927 --- /dev/null +++ b/Makefile.am @@ -0,0 +1,57 @@ +AUTOMAKE_OPTIONS = foreign + +lib_LTLIBRARIES = libcares.la + +man_MANS = $(MANPAGES) + +MSVCFILES = vc/adig/adig.dep vc/adig/adig.dsp vc/adig/adig.mak \ + vc/adig/adig.plg vc/vc.dsw vc/ahost/ahost.dep vc/ahost/ahost.dsp \ + vc/ahost/ahost.mak vc/ahost/ahost.plg vc/areslib/areslib.dep \ + vc/areslib/areslib.dsp vc/areslib/areslib.mak vc/areslib/areslib.plg + +# adig and ahost are just sample programs and thus not mentioned with the +# regular sources and headers +EXTRA_DIST = CHANGES README.cares Makefile.inc adig.c ahost.c $(man_MANS) \ + $(MSVCFILES) + + +VER=-version-info 0:0:0 +# This flag accepts an argument of the form current[:revision[:age]]. So, +# passing -version-info 3:12:1 sets current to 3, revision to 12, and age to +# 1. +# +# If either revision or age are omitted, they default to 0. Also note that age +# must be less than or equal to the current interface number. +# +# Here are a set of rules to help you update your library version information: +# +# 1.Start with version information of 0:0:0 for each libtool library. +# +# 2.Update the version information only immediately before a public release of +# your software. More frequent updates are unnecessary, and only guarantee +# that the current interface number gets larger faster. +# +# 3.If the library source code has changed at all since the last update, then +# increment revision (c:r+1:a) +# +# 4.If any interfaces have been added, removed, or changed since the last +# update, increment current, and set revision to 0. (c+1:r=0:a) +# +# 5.If any interfaces have been added since the last public release, then +# increment age. (c:r:a+1) +# +# 6.If any interfaces have been removed since the last public release, then +# set age to 0. (c:r:a=0) +# + +libcares_la_LDFLAGS = $(VER) + +# Makefile.inc provides the CSOURCES and HHEADERS defines +include Makefile.inc + +libcares_la_SOURCES = $(CSOURCES) $(HHEADERS) + +# where to install the c-ares headers +libcares_ladir = $(includedir) +# what headers to install on 'make install': +libcares_la_HEADERS = ares.h ares_version.h |