1 # Copyright (C) 2009 Internet Systems Consortium, Inc. ("ISC")
3 # Permission to use, copy, modify, and/or distribute this software for any
4 # purpose with or without fee is hereby granted, provided that the above
5 # copyright notice and this permission notice appear in all copies.
7 # THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
8 # REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
9 # AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
10 # INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
11 # LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
12 # OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
13 # PERFORMANCE OF THIS SOFTWARE.
15 # Id: Makefile.in,v 1.5 2009/12/05 23:31:41 each Exp
17 top_srcdir
= @top_srcdir@
18 srcdir = @top_srcdir@
/lib
/isc
19 export_srcdir
= @top_srcdir@
/lib
/export
25 CINCLUDES
= -I
${srcdir}/unix
/include \
26 -I
${srcdir}/@ISC_THREAD_DIR@
/include \
27 -I
${srcdir}/@ISC_ARCH_DIR@
/include \
28 -I
${export_srcdir}/isc
/include -I
${srcdir}/include \
30 CDEFINES
= @USE_OPENSSL@
-DUSE_APPIMPREGISTER
-DUSE_MEMIMPREGISTER \
31 -DUSE_SOCKETIMPREGISTER
-DUSE_TASKIMPREGISTER \
32 -DUSE_TIMERIMPREGISTER
36 # {file,dir}.c is necessary for isclog
37 # symtab.c is necessary for isccfg
38 APIOBJS
= app_api.@O@ mem_api.@O@ socket_api.@O@ \
39 task_api.@O@ timer_api.@O@
41 ISCDRIVEROBJS
= mem.@O@ unix
/socket.@O@ task.@O@ timer.@O@ lib.@O@ \
42 heap.@O@
#timer module depends on this
44 UNIXOBJS
= @ISC_ISCIPV6_O@ \
47 unix
/errno2result.@O@ \
51 unix
/stdtime.@O@ unix
/strerror.@O@ unix
/time.@O@
53 NLSOBJS
= nls
/msgcat.@O@
55 THREADOBJS
= @ISC_THREAD_DIR@
/condition.@O@ @ISC_THREAD_DIR@
/mutex.@O@ \
56 @ISC_THREAD_DIR@
/thread.@O@
58 WIN32OBJS
= win32
/condition.@O@ win32
/dir.@O@ win32
/file.@O@ \
59 win32
/fsaccess.@O@ win32
/once.@O@ win32
/stdtime.@O@ \
60 win32
/thread.@O@ win32
/time.@O@
63 OBJS
= @ISC_EXTRA_OBJS@ \
64 assertions.@O@ backtrace.@O@ backtrace-emptytbl.@O@ base32.@O@ \
65 base64.@O@ buffer.@O@ bufferlist.@O@ \
67 hash.@O@ hex.@O@ hmacmd5.@O@ hmacsha.@O@ \
68 inet_aton.@O@ iterated_hash.@O@
lex.@O@ lfsr.@O@ log.@O@ \
69 md5.@O@ mutexblock.@O@ \
70 netaddr.@O@ netscope.@O@ \
72 parseint.@O@ portset.@O@ radix.@O@ \
73 random.@O@ refcount.@O@ region.@O@ result.@O@ rwlock.@O@ \
74 serial.@O@ sha1.@O@ sha2.@O@ sockaddr.@O@ stats.@O@ string.@O@ \
77 ${APIOBJS} ${ISCDRIVEROBJS} \
78 ${UNIXOBJS} ${NLSOBJS} ${THREADOBJS}
81 APISRCS
= app_api.c mem_api.c socket_api.c \
82 task_api.c timer_api.c
84 ISCDRIVERSRCS
= mem.c task.c lib.c timer.c heap.c
86 SRCS
= @ISC_EXTRA_SRCS@ \
87 assertions.c backtrace.c backtrace-emptytbl.c base32.c \
88 base64.c buffer.c bufferlist.c \
90 hash.c hex.c hmacmd5.c hmacsha.c \
91 inet_aton.c iterated_hash.c
lex.c log.c lfsr.c \
93 netaddr.c netscope.c \
95 parseint.c portset.c radix.c \
96 random.c refcount.c region.c result.c rwlock.c \
97 serial.c sha1.c sha2.c sockaddr.c stats.c string.c symtab.c \
99 ${APISRCS} ${ISCDRIVERSRCS}
103 SUBDIRS
= include unix nls @ISC_THREAD_DIR@
108 version.@O@
: ${srcdir}/version.c
109 ${LIBTOOL_MODE_COMPILE} ${CC} ${ALL_CFLAGS} \
110 -DVERSION
=\"${VERSION}\" \
111 -DLIBINTERFACE
=${LIBINTERFACE} \
112 -DLIBREVISION
=${LIBREVISION} \
114 -c
${srcdir}/version.c
117 ${AR} ${ARFLAGS} $@
${OBJS}
121 ${LIBTOOL_MODE_LINK} \
122 ${CC} ${ALL_CFLAGS} ${LDFLAGS} -o libisc.la \
123 -rpath
${export_libdir} \
124 -version-info
${LIBINTERFACE}:${LIBREVISION}:${LIBAGE} \
127 timestamp
: libisc.@A@
131 $(SHELL
) ${top_srcdir}/mkinstalldirs
${DESTDIR}${export_libdir}
133 install:: timestamp
installdirs
134 ${LIBTOOL_MODE_INSTALL} ${INSTALL_DATA} libisc.@A@ \
135 ${DESTDIR}${export_libdir}
138 rm -f libisc.@A@ libisc.la timestamp