2000-02-03 18:50:32 -05:00
|
|
|
# Copyright (C) 1998, 1999, 2000 Internet Software Consortium.
|
1999-03-05 22:55:54 -05:00
|
|
|
#
|
|
|
|
|
# Permission to use, copy, modify, and distribute this software for any
|
|
|
|
|
# purpose with or without fee is hereby granted, provided that the above
|
|
|
|
|
# copyright notice and this permission notice appear in all copies.
|
|
|
|
|
#
|
|
|
|
|
# THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM DISCLAIMS
|
|
|
|
|
# ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
|
|
|
|
|
# OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL INTERNET SOFTWARE
|
|
|
|
|
# CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
|
|
|
|
|
# DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
|
|
|
|
|
# PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
|
|
|
|
|
# ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
|
|
|
|
|
# SOFTWARE.
|
|
|
|
|
|
1998-12-11 15:10:26 -05:00
|
|
|
###
|
|
|
|
|
### Common Makefile rules for BIND 9.
|
|
|
|
|
###
|
|
|
|
|
|
1998-12-11 20:35:38 -05:00
|
|
|
###
|
|
|
|
|
### Paths
|
|
|
|
|
###
|
1998-12-11 21:00:01 -05:00
|
|
|
### Note: paths that vary by Makefile MUST NOT be listed
|
|
|
|
|
### here, or they won't get expanded correctly.
|
1998-12-11 20:35:38 -05:00
|
|
|
|
|
|
|
|
prefix = @prefix@
|
|
|
|
|
exec_prefix = @exec_prefix@
|
|
|
|
|
bindir = @bindir@
|
|
|
|
|
sbindir = @sbindir@
|
|
|
|
|
includedir = @includedir@
|
|
|
|
|
libdir = @libdir@
|
2000-02-09 20:14:06 -05:00
|
|
|
sysconfdir = @sysconfdir@
|
|
|
|
|
localstatedir = @localstatedir@
|
1998-12-11 20:35:38 -05:00
|
|
|
|
2000-02-08 16:50:23 -05:00
|
|
|
DESTDIR =
|
|
|
|
|
|
1998-12-11 20:35:38 -05:00
|
|
|
@SET_MAKE@
|
|
|
|
|
|
1999-02-17 20:24:32 -05:00
|
|
|
top_builddir = @BIND9_TOP_BUILDDIR@
|
|
|
|
|
|
1998-12-11 15:10:26 -05:00
|
|
|
###
|
|
|
|
|
### All
|
|
|
|
|
###
|
1998-12-11 20:35:38 -05:00
|
|
|
### Makefile may define:
|
1998-12-11 15:10:26 -05:00
|
|
|
### TARGETS
|
|
|
|
|
|
1999-10-29 02:36:05 -04:00
|
|
|
all: subdirs ${TARGETS}
|
1998-12-11 15:10:26 -05:00
|
|
|
|
|
|
|
|
###
|
|
|
|
|
### Subdirectories
|
|
|
|
|
###
|
1998-12-11 20:35:38 -05:00
|
|
|
### Makefile may define:
|
|
|
|
|
### SUBDIRS
|
1998-12-11 15:10:26 -05:00
|
|
|
|
|
|
|
|
ALL_SUBDIRS = ${SUBDIRS} nulldir
|
|
|
|
|
|
1999-07-15 16:04:43 -04:00
|
|
|
#
|
|
|
|
|
# We use a single-colon rule so that additional dependencies of
|
|
|
|
|
# subdirectories can be specified after the inclusion of this file.
|
|
|
|
|
# The "depend" target is treated the same way.
|
|
|
|
|
#
|
1999-10-29 02:36:05 -04:00
|
|
|
subdirs:
|
|
|
|
|
@for i in ${ALL_SUBDIRS}; do \
|
|
|
|
|
if [ "$$i" != "nulldir" -a -d $$i ]; then \
|
|
|
|
|
echo "making all in `pwd`/$$i"; \
|
|
|
|
|
(cd $$i; ${MAKE} ${MAKEDEFS} all); \
|
|
|
|
|
fi \
|
|
|
|
|
done
|
1998-12-11 15:10:26 -05:00
|
|
|
|
1999-07-15 16:04:43 -04:00
|
|
|
install clean distclean::
|
1998-12-11 15:10:26 -05:00
|
|
|
@for i in ${ALL_SUBDIRS}; do \
|
|
|
|
|
if [ "$$i" != "nulldir" -a -d $$i ]; then \
|
1999-01-04 14:23:44 -05:00
|
|
|
echo "making $@ in `pwd`/$$i"; \
|
1998-12-11 15:10:26 -05:00
|
|
|
(cd $$i; ${MAKE} ${MAKEDEFS} $@); \
|
|
|
|
|
fi \
|
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
###
|
|
|
|
|
### C Programs
|
|
|
|
|
###
|
|
|
|
|
### Makefile must define
|
|
|
|
|
### CC
|
|
|
|
|
### Makefile may define
|
|
|
|
|
### CFLAGS
|
|
|
|
|
### CINCLUDES
|
|
|
|
|
### CDEFINES
|
|
|
|
|
### CWARNINGS
|
2000-05-08 21:49:40 -04:00
|
|
|
### User may define externally
|
|
|
|
|
### EXT_CFLAGS
|
1998-12-11 15:10:26 -05:00
|
|
|
|
1998-12-11 20:35:38 -05:00
|
|
|
CC = @CC@
|
|
|
|
|
CFLAGS = @CFLAGS@
|
|
|
|
|
STD_CINCLUDES = @STD_CINCLUDES@
|
|
|
|
|
STD_CDEFINES = @STD_CDEFINES@
|
|
|
|
|
STD_CWARNINGS = @STD_CWARNINGS@
|
1998-12-11 15:10:26 -05:00
|
|
|
|
|
|
|
|
.SUFFIXES:
|
2000-02-23 13:20:09 -05:00
|
|
|
.SUFFIXES: .c .@O@
|
1998-12-11 15:10:26 -05:00
|
|
|
|
1999-02-17 20:24:32 -05:00
|
|
|
ALWAYS_INCLUDES = -I${top_builddir}
|
1998-12-11 15:10:26 -05:00
|
|
|
ALWAYS_DEFINES = -D_REENTRANT
|
|
|
|
|
ALWAYS_WARNINGS =
|
|
|
|
|
|
1999-07-13 16:12:47 -04:00
|
|
|
ALL_CPPFLAGS = \
|
2000-04-04 16:43:14 -04:00
|
|
|
${ALWAYS_INCLUDES} ${CINCLUDES} ${STD_CINCLUDES} \
|
|
|
|
|
${ALWAYS_DEFINES} ${CDEFINES} ${STD_CDEFINES}
|
1999-07-13 16:12:47 -04:00
|
|
|
|
2000-05-08 21:49:40 -04:00
|
|
|
ALL_CFLAGS = ${EXT_CFLAGS} ${CFLAGS} \
|
1999-07-13 16:12:47 -04:00
|
|
|
${ALL_CPPFLAGS} \
|
1998-12-11 15:10:26 -05:00
|
|
|
${ALWAYS_WARNINGS} ${STD_CWARNINGS} ${CWARNINGS}
|
|
|
|
|
|
1999-09-30 16:09:33 -04:00
|
|
|
.c.@O@:
|
2000-02-23 13:20:09 -05:00
|
|
|
${LIBTOOL} ${CC} ${ALL_CFLAGS} -c $<
|
1998-12-11 15:10:26 -05:00
|
|
|
|
1999-07-03 17:07:10 -04:00
|
|
|
SHELL = @SHELL@
|
|
|
|
|
LIBTOOL = @LIBTOOL@
|
|
|
|
|
|
1999-07-13 16:12:47 -04:00
|
|
|
MKDEP = ${SHELL} ${top_builddir}/make/mkdep
|
|
|
|
|
|
1998-12-11 15:10:26 -05:00
|
|
|
clean distclean::
|
1999-09-30 16:09:33 -04:00
|
|
|
rm -f *.@O@ *.lo *.la core *.core
|
1999-07-03 17:07:10 -04:00
|
|
|
rm -rf .libs
|
1998-12-11 15:10:26 -05:00
|
|
|
|
|
|
|
|
distclean::
|
|
|
|
|
rm -f Makefile
|
1998-12-11 20:35:38 -05:00
|
|
|
|
1999-07-15 16:04:43 -04:00
|
|
|
depend:
|
|
|
|
|
@for i in ${ALL_SUBDIRS}; do \
|
|
|
|
|
if [ "$$i" != "nulldir" -a -d $$i ]; then \
|
|
|
|
|
echo "making depend in `pwd`/$$i"; \
|
|
|
|
|
(cd $$i; ${MAKE} ${MAKEDEFS} $@); \
|
|
|
|
|
fi \
|
|
|
|
|
done
|
1999-07-13 16:12:47 -04:00
|
|
|
@if [ X"${SRCS}" != X -a X"${PSRCS}" != X ] ; then \
|
|
|
|
|
echo ${MKDEP} ${ALL_CPPFLAGS} ${SRCS}; \
|
|
|
|
|
${MKDEP} ${ALL_CPPFLAGS} ${SRCS}; \
|
|
|
|
|
echo ${MKDEP} -ap ${ALL_CPPFLAGS} ${PSRCS}; \
|
|
|
|
|
${MKDEP} -ap ${ALL_CPPFLAGS} ${PSRCS}; \
|
2000-06-05 22:01:41 -04:00
|
|
|
${DEPENDEXTRA} \
|
1999-07-13 16:12:47 -04:00
|
|
|
elif [ X"${SRCS}" != X ] ; then \
|
|
|
|
|
echo ${MKDEP} ${ALL_CPPFLAGS} ${SRCS}; \
|
|
|
|
|
${MKDEP} ${ALL_CPPFLAGS} ${SRCS}; \
|
2000-06-05 22:01:41 -04:00
|
|
|
${DEPENDEXTRA} \
|
1999-07-13 16:12:47 -04:00
|
|
|
elif [ X"${PSRCS}" != X ] ; then \
|
|
|
|
|
echo ${MKDEP} ${ALL_CPPFLAGS} ${PSRCS}; \
|
|
|
|
|
${MKDEP} -p ${ALL_CPPFLAGS} ${PSRCS}; \
|
2000-06-05 22:01:41 -04:00
|
|
|
${DEPENDEXTRA} \
|
1999-07-13 16:12:47 -04:00
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
FORCE:
|
|
|
|
|
|
1998-12-11 20:35:38 -05:00
|
|
|
###
|
|
|
|
|
### Libraries
|
|
|
|
|
###
|
|
|
|
|
|
1999-09-30 16:09:33 -04:00
|
|
|
AR = @AR@
|
|
|
|
|
ARFLAGS = @ARFLAGS@
|
1998-12-11 20:35:38 -05:00
|
|
|
RANLIB = @RANLIB@
|
|
|
|
|
|
|
|
|
|
###
|
|
|
|
|
### Installation
|
|
|
|
|
###
|
|
|
|
|
|
|
|
|
|
INSTALL = @INSTALL@
|
|
|
|
|
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
|
|
|
|
INSTALL_DATA = @INSTALL_DATA@
|