1# Copyright (C) 2004, 2007-2009 Internet Systems Consortium, Inc. ("ISC") 2# Copyright (C) 2001 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: Makefile.in,v 1.10 2009/01/28 23:49:09 tbox Exp $ 17 18srcdir = . 19 20top_srcdir = .. 21 22HEADERS=fd_setsize.h hesiod.h irp.h irs.h netdb.h netgroup.h res_update.h \ 23 resolv.h 24AHEADERS= arpa/inet.h arpa/nameser.h arpa/nameser_compat.h 25IHEADERS= isc/assertions.h isc/ctl.h isc/dst.h isc/eventlib.h isc/heap.h \ 26 isc/irpmarshall.h isc/list.h isc/logging.h isc/memcluster.h \ 27 isc/misc.h isc/tree.h isc/platform.h 28 29all: 30 31# Copyright (C) 2004, 2007, 2009 Internet Systems Consortium, Inc. ("ISC") 32# Copyright (C) 2001, 2002 Internet Software Consortium. 33# 34# Permission to use, copy, modify, and/or distribute this software for any 35# purpose with or without fee is hereby granted, provided that the above 36# copyright notice and this permission notice appear in all copies. 37# 38# THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH 39# REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY 40# AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, 41# INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM 42# LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE 43# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 44# PERFORMANCE OF THIS SOFTWARE. 45 46# $Id: rules.in,v 1.15 2009/01/22 23:49:23 tbox Exp $ 47 48### 49### Common Makefile rules for BIND 9. 50### 51 52### 53### Paths 54### 55### Note: paths that vary by Makefile MUST NOT be listed 56### here, or they won't get expanded correctly. 57 58prefix = /usr/local 59exec_prefix = ${prefix} 60bindir = ${exec_prefix}/bin 61sbindir = ${exec_prefix}/sbin 62includedir = ${prefix}/include/bind 63libdir = ${exec_prefix}/lib 64sysconfdir = ${prefix}/etc 65localstatedir = ${prefix}/var 66mandir = ${datarootdir}/man 67datarootdir = ${prefix}/share 68 69DESTDIR = 70MAKEDEFS= 'DESTDIR=${DESTDIR}' 71 72 73 74top_builddir = /boot/home/develop/haiku/haiku/src/kits/network/libbind 75abs_top_srcdir = /boot/home/develop/haiku/haiku/src/kits/network/libbind 76 77### 78### All 79### 80### Makefile may define: 81### TARGETS 82 83all: subdirs ${TARGETS} 84 85### 86### Subdirectories 87### 88### Makefile may define: 89### SUBDIRS 90 91ALL_SUBDIRS = ${SUBDIRS} nulldir 92 93# 94# We use a single-colon rule so that additional dependencies of 95# subdirectories can be specified after the inclusion of this file. 96# The "depend" target is treated the same way. 97# 98subdirs: 99 @for i in ${ALL_SUBDIRS}; do \ 100 if [ "$$i" != "nulldir" -a -d $$i ]; then \ 101 echo "making all in `pwd`/$$i"; \ 102 (cd $$i; ${MAKE} ${MAKEDEFS} all) || exit 1; \ 103 fi; \ 104 done 105 106install clean distclean docclean manclean:: 107 @for i in ${ALL_SUBDIRS}; do \ 108 if [ "$$i" != "nulldir" -a -d $$i ]; then \ 109 echo "making $@ in `pwd`/$$i"; \ 110 (cd $$i; ${MAKE} ${MAKEDEFS} $@) || exit 1; \ 111 fi \ 112 done 113 114### 115### C Programs 116### 117### Makefile must define 118### CC 119### Makefile may define 120### CFLAGS 121### CINCLUDES 122### CDEFINES 123### CWARNINGS 124### User may define externally 125### EXT_CFLAGS 126 127CC = gcc 128CFLAGS = -g -O2 129STD_CINCLUDES = 130STD_CDEFINES = 131STD_CWARNINGS = -W -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wformat -Wpointer-arith -fno-strict-aliasing 132 133.SUFFIXES: 134.SUFFIXES: .c .o 135 136ALWAYS_INCLUDES = -I${top_builddir} -I${abs_top_srcdir}/port/unknown/include 137ALWAYS_DEFINES = 138ALWAYS_WARNINGS = 139 140ALL_CPPFLAGS = \ 141 ${ALWAYS_INCLUDES} ${CINCLUDES} ${STD_CINCLUDES} \ 142 ${ALWAYS_DEFINES} ${CDEFINES} ${STD_CDEFINES} 143 144ALL_CFLAGS = ${EXT_CFLAGS} ${CFLAGS} \ 145 ${ALL_CPPFLAGS} \ 146 ${ALWAYS_WARNINGS} ${STD_CWARNINGS} ${CWARNINGS} 147 148.c.o: 149 ${LIBTOOL_MODE_COMPILE} ${CC} ${ALL_CFLAGS} -c $< 150 151SHELL = /bin/sh 152LIBTOOL = 153LIBTOOL_MODE_COMPILE = ${LIBTOOL} 154LIBTOOL_MODE_INSTALL = ${LIBTOOL} 155LIBTOOL_MODE_LINK = ${LIBTOOL} 156PURIFY = 157 158MKDEP = ${SHELL} ${top_builddir}/make/mkdep 159 160cleandir: distclean 161 162clean distclean:: 163 rm -f *.o *.lo *.la core *.core .depend 164 rm -rf .libs 165 166distclean:: 167 rm -f Makefile 168 169depend: 170 @for i in ${ALL_SUBDIRS}; do \ 171 if [ "$$i" != "nulldir" -a -d $$i ]; then \ 172 echo "making depend in `pwd`/$$i"; \ 173 (cd $$i; ${MAKE} ${MAKEDEFS} $@) || exit 1; \ 174 fi \ 175 done 176 @if [ X"${SRCS}" != X -a X"${PSRCS}" != X ] ; then \ 177 echo ${MKDEP} ${ALL_CPPFLAGS} ${SRCS}; \ 178 ${MKDEP} ${ALL_CPPFLAGS} ${SRCS}; \ 179 echo ${MKDEP} -ap ${ALL_CPPFLAGS} ${PSRCS}; \ 180 ${MKDEP} -ap ${ALL_CPPFLAGS} ${PSRCS}; \ 181 ${DEPENDEXTRA} \ 182 elif [ X"${SRCS}" != X ] ; then \ 183 echo ${MKDEP} ${ALL_CPPFLAGS} ${SRCS}; \ 184 ${MKDEP} ${ALL_CPPFLAGS} ${SRCS}; \ 185 ${DEPENDEXTRA} \ 186 elif [ X"${PSRCS}" != X ] ; then \ 187 echo ${MKDEP} ${ALL_CPPFLAGS} ${PSRCS}; \ 188 ${MKDEP} -p ${ALL_CPPFLAGS} ${PSRCS}; \ 189 ${DEPENDEXTRA} \ 190 fi 191 192FORCE: 193 194### 195### Libraries 196### 197 198AR = /boot/develop/tools/gnupro/bin/ar 199ARFLAGS = cruv 200RANLIB = ranlib 201 202### 203### Installation 204### 205 206INSTALL = /bin/install -c 207INSTALL_PROGRAM = ${INSTALL} 208INSTALL_DATA = ${INSTALL} -m 644 209 210installdirs: 211 $(SHELL) ${top_srcdir}/mkinstalldirs ${DESTDIR}${includedir} \ 212 ${DESTDIR}${includedir}/arpa ${DESTDIR}${includedir}/isc 213 214install:: installdirs 215 for i in ${HEADERS}; do \ 216 ${INSTALL_DATA} ${srcdir}/$$i ${DESTDIR}${includedir}; \ 217 done 218 for i in ${IHEADERS}; do \ 219 ${INSTALL_DATA} ${srcdir}/$$i ${DESTDIR}${includedir}/isc; \ 220 done 221 for i in ${AHEADERS}; do \ 222 ${INSTALL_DATA} ${srcdir}/$$i ${DESTDIR}${includedir}/arpa; \ 223 done 224 225