1# Copyright (C) 2004, 2007, 2009, 2011, 2012, 2014 Internet Systems Consortium, Inc. ("ISC") 2# Copyright (C) 2001, 2003 Internet Software Consortium. 3# 4# Permission to use, copy, modify, and/or distribute this software for any 5# purpose with or without fee is hereby granted, provided that the above 6# copyright notice and this permission notice appear in all copies. 7# 8# THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH 9# REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY 10# AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, 11# INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM 12# LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE 13# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 14# PERFORMANCE OF THIS SOFTWARE. 15 16# Id 17 18srcdir = @srcdir@ 19VPATH = @srcdir@ 20top_srcdir = @top_srcdir@ 21 22@BIND9_VERSION@ 23 24@LIBISCCC_API@ 25 26@BIND9_MAKE_INCLUDES@ 27 28CINCLUDES = -I. ${DNS_INCLUDES} ${ISC_INCLUDES} ${ISCCC_INCLUDES} 29 30CDEFINES = 31CWARNINGS = 32 33ISCLIBS = ../../lib/isc/libisc.@A@ 34ISCCCLIBS = ../../lib/isccc/libisccc.@A@ 35 36ISCDEPLIBS = ../../lib/isc/libisc.@A@ 37ISCCCDEPLIBS = libisccc.@A@ 38 39LIBS = @LIBS@ 40 41SUBDIRS = include 42 43# Alphabetically 44OBJS = alist.@O@ base64.@O@ cc.@O@ ccmsg.@O@ \ 45 lib.@O@ \ 46 result.@O@ sexpr.@O@ symtab.@O@ version.@O@ 47 48# Alphabetically 49SRCS = alist.c base64.c cc.c ccmsg.c \ 50 lib.c \ 51 result.c sexpr.c symtab.c version.c 52 53 54TARGETS = timestamp 55 56@BIND9_MAKE_RULES@ 57 58version.@O@: version.c 59 ${LIBTOOL_MODE_COMPILE} ${CC} ${ALL_CFLAGS} \ 60 -DVERSION=\"${VERSION}\" \ 61 -DLIBINTERFACE=${LIBINTERFACE} \ 62 -DLIBREVISION=${LIBREVISION} \ 63 -DLIBAGE=${LIBAGE} \ 64 -c ${srcdir}/version.c 65 66libisccc.@SA@: ${OBJS} 67 ${AR} ${ARFLAGS} $@ ${OBJS} 68 ${RANLIB} $@ 69 70libisccc.la: ${OBJS} 71 ${LIBTOOL_MODE_LINK} \ 72 ${CC} ${ALL_CFLAGS} ${LDFLAGS} -o libisccc.la -rpath ${libdir} \ 73 -version-info ${LIBINTERFACE}:${LIBREVISION}:${LIBAGE} \ 74 ${OBJS} ${ISCLIBS} ${LIBS} 75 76timestamp: libisccc.@A@ 77 touch timestamp 78 79installdirs: 80 $(SHELL) ${top_srcdir}/mkinstalldirs ${DESTDIR}${libdir} 81 82install:: timestamp installdirs 83 ${LIBTOOL_MODE_INSTALL} ${INSTALL_LIBRARY} libisccc.@A@ ${DESTDIR}${libdir} 84 85clean distclean:: 86 rm -f libisccc.@A@ timestamp 87