bind9/make/rules.in

227 lines
5.5 KiB
Text
Raw Normal View History

2004-03-06 08:16:26 -05:00
# Copyright (C) 2004 Internet Systems Consortium, Inc. ("ISC")
2003-03-05 23:38:29 -05:00
# Copyright (C) 1998-2003 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.
#
2004-03-06 08:16:26 -05:00
# THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
# REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
# AND FITNESS. IN NO EVENT SHALL ISC 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.
# $Id: rules.in,v 1.40.2.5.4.3 2004/03/06 13:16:21 marka Exp $
2000-06-22 18:00:42 -04:00
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@
sysconfdir = @sysconfdir@
localstatedir = @localstatedir@
mandir = @mandir@
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@
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
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
#
# 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} DESTDIR="${DESTDIR}" all) || exit 1; \
2001-08-29 00:15:03 -04:00
fi; \
1999-10-29 02:36:05 -04:00
done
1998-12-11 15:10:26 -05:00
install:: all
install clean distclean maintainer-clean doc docclean man manclean::
1998-12-11 15:10:26 -05:00
@for i in ${ALL_SUBDIRS}; do \
if [ "$$i" != "nulldir" -a -d $$i ]; then \
echo "making $@ in `pwd`/$$i"; \
(cd $$i; ${MAKE} ${MAKEDEFS} DESTDIR="${DESTDIR}" $@) || exit 1; \
2001-08-29 00:15:03 -04:00
fi; \
1998-12-11 15:10:26 -05:00
done
###
### C Programs
###
### Makefile must define
### CC
### Makefile may define
### CFLAGS
### CINCLUDES
### CDEFINES
### CWARNINGS
### 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:
.SUFFIXES: .c .@O@
1998-12-11 15:10:26 -05:00
ALWAYS_INCLUDES = -I${top_builddir}
ALWAYS_DEFINES = @ALWAYS_DEFINES@
1998-12-11 15:10:26 -05:00
ALWAYS_WARNINGS =
1999-07-13 16:12:47 -04:00
ALL_CPPFLAGS = \
${ALWAYS_INCLUDES} ${CINCLUDES} ${STD_CINCLUDES} \
${ALWAYS_DEFINES} ${CDEFINES} ${STD_CDEFINES}
1999-07-13 16:12:47 -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@:
${LIBTOOL_MODE_COMPILE} ${CC} ${ALL_CFLAGS} -c $<
1998-12-11 15:10:26 -05:00
1999-07-03 17:07:10 -04:00
SHELL = @SHELL@
LIBTOOL = @LIBTOOL@
LIBTOOL_MODE_COMPILE = ${LIBTOOL} @LIBTOOL_MODE_COMPILE@
LIBTOOL_MODE_INSTALL = ${LIBTOOL} @LIBTOOL_MODE_INSTALL@
LIBTOOL_MODE_LINK = ${LIBTOOL} @LIBTOOL_MODE_LINK@
2001-02-01 18:19:05 -05:00
PURIFY = @PURIFY@
1999-07-03 17:07:10 -04:00
1999-07-13 16:12:47 -04:00
MKDEP = ${SHELL} ${top_builddir}/make/mkdep
cleandir: distclean
superclean: maintainer-clean
clean distclean maintainer-clean::
rm -f *.@O@ *.lo *.la core *.core .depend
1999-07-03 17:07:10 -04:00
rm -rf .libs
1998-12-11 15:10:26 -05:00
distclean maintainer-clean::
1998-12-11 15:10:26 -05:00
rm -f Makefile
1998-12-11 20:35:38 -05: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} DESTDIR="${DESTDIR}" $@) || exit 1; \
2001-08-29 00:15:03 -04:00
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}; \
${DEPENDEXTRA} \
1999-07-13 16:12:47 -04:00
elif [ X"${SRCS}" != X ] ; then \
echo ${MKDEP} ${ALL_CPPFLAGS} ${SRCS}; \
${MKDEP} ${ALL_CPPFLAGS} ${SRCS}; \
${DEPENDEXTRA} \
1999-07-13 16:12:47 -04:00
elif [ X"${PSRCS}" != X ] ; then \
echo ${MKDEP} ${ALL_CPPFLAGS} ${PSRCS}; \
${MKDEP} -p ${ALL_CPPFLAGS} ${PSRCS}; \
${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_SCRIPT = @INSTALL_SCRIPT@
1998-12-11 20:35:38 -05:00
INSTALL_DATA = @INSTALL_DATA@
2001-03-27 12:48:48 -05:00
###
### DocBook -> HTML
### DocBook -> man page
###
.SUFFIXES: .docbook .html .1 .2 .3 .4 .5 .6 .7 .8
OPENJADE = @OPENJADE@
SGMLCATALOG = @SGMLCATALOG@
HTMLSTYLE = @HTMLSTYLE@
XMLDCL = @XMLDCL@
DOCBOOK2MANSPEC = @DOCBOOK2MANSPEC@
JADETEX = @JADETEX@
PDFJADETEX = @PDFJADETEX@
2001-03-27 12:48:48 -05:00
ONSGMLS = onsgmls
SGMLSPL = sgmlspl
#
# Note: this rule assumes the docbook.dsl stylesheet
# is being used. If another stylesheet is used, the
# filename 'r1.htm' in the rule might have to be
# be changed.
#
.docbook.html:
${OPENJADE} -c ${SGMLCATALOG} -t sgml -d ${HTMLSTYLE} $<
2003-03-05 23:38:29 -05:00
echo "" >> r1.htm
cat ${top_srcdir}/docutil/HTML_COPYRIGHT r1.htm > $@
2003-10-22 00:44:37 -04:00
rm -f r1.htm
2001-03-27 12:48:48 -05:00
.docbook.1:
sh ${top_srcdir}/docutil/docbook2man-wrapper.sh ${top_srcdir} $< $@
2001-03-27 12:48:48 -05:00
.docbook.2:
sh ${top_srcdir}/docutil/docbook2man-wrapper.sh ${top_srcdir} $< $@
2001-03-27 12:48:48 -05:00
.docbook.3:
sh ${top_srcdir}/docutil/docbook2man-wrapper.sh ${top_srcdir} $< $@
2001-03-27 12:48:48 -05:00
.docbook.4:
sh ${top_srcdir}/docutil/docbook2man-wrapper.sh ${top_srcdir} $< $@
2001-03-27 12:48:48 -05:00
.docbook.5:
sh ${top_srcdir}/docutil/docbook2man-wrapper.sh ${top_srcdir} $< $@
2001-03-27 12:48:48 -05:00
.docbook.6:
sh ${top_srcdir}/docutil/docbook2man-wrapper.sh ${top_srcdir} $< $@
2001-03-27 12:48:48 -05:00
.docbook.7:
sh ${top_srcdir}/docutil/docbook2man-wrapper.sh ${top_srcdir} $< $@
2001-03-27 12:48:48 -05:00
.docbook.8:
sh ${top_srcdir}/docutil/docbook2man-wrapper.sh ${top_srcdir} $< $@