summaryrefslogtreecommitdiffstats
path: root/contrib/bind/bin/named-xfer/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/bind/bin/named-xfer/Makefile')
-rw-r--r--contrib/bind/bin/named-xfer/Makefile31
1 files changed, 16 insertions, 15 deletions
diff --git a/contrib/bind/bin/named-xfer/Makefile b/contrib/bind/bin/named-xfer/Makefile
index 8db8b6e..76d9684 100644
--- a/contrib/bind/bin/named-xfer/Makefile
+++ b/contrib/bind/bin/named-xfer/Makefile
@@ -1,4 +1,4 @@
-## Copyright (c) 1996 by Internet Software Consortium
+## Copyright (c) 1996,1999 by Internet Software Consortium
##
## Permission to use, copy, modify, and distribute this software for any
## purpose with or without fee is hereby granted, provided that the above
@@ -13,7 +13,7 @@
## ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
## SOFTWARE.
-# $Id: Makefile,v 8.21 1998/04/14 00:39:03 halley Exp $
+# $Id: Makefile,v 8.29 1999/08/08 17:51:02 vixie Exp $
DESTDIR=
CC= cc
@@ -29,17 +29,19 @@ PORTINCL = ${TOP}/port/${SYSTYPE}/include
LIBBIND = ${TOP}/lib/libbind.a
A=a
O=o
+EXE=
LEX = lex -I
SYSLIBS = -ll -lutil
-PIDDIR = /var/run
DESTBIN = /usr/local/bin
DESTSBIN = /usr/local/sbin
DESTEXEC = /usr/local/libexec
DESTMAN = /usr/share/man
DESTHELP= /usr/share/misc
-AR= ar cruv
+AR= ar cru
INSTALL= install
STRIP=-s
+INSTALL_EXEC=
+INSTALL_LIB=-o bin -g bin
PS=ps
LDFLAGS=
@@ -52,26 +54,28 @@ PROG= named-xfer
SRCS= ${PROG}.c
OBJS= ${PROG}.${O}
-all: ${PROG}
+all: ${PROG}${EXE}
-${PROG}: ${OBJS} ${NAMED_OBJS} ${LIBBIND} Makefile
- ${CC} ${CDEBUG} ${LDFLAGS} -o ${PROG} ${OBJS} ${NAMED_OBJS} \
+${PROG}${EXE}: ${OBJS} ${NAMED_OBJS} ${LIBBIND} Makefile
+ ${CC} ${CDEBUG} ${LDFLAGS} ${BOUNDS} -o ${PROG}${EXE} ${OBJS} ${NAMED_OBJS} \
${LIBBIND} ${SYSLIBS}
+.c.${O}:
+ ${CC} ${CPPFLAGS} ${CFLAGS} ${BOUNDS} -c $*.c
distclean: clean
clean: FRC
- rm -f ${PROG} core .depend
- rm -f *.BAK *.CKP *~ *.${O} *.orig
+ rm -f ${PROG}${EXE} ${OBJS} core .depend
+ rm -f *.BAK *.CKP *~ *.orig
depend: ${SRCS}
- mkdep -p ${CPPFLAGS} -I${INCL} -I${PORTINCL} ${SRCS}
+ mkdep ${CPPFLAGS} -I${INCL} -I${PORTINCL} ${SRCS}
${DESTDIR}${DESTEXEC}:
mkdir -p ${DESTDIR}${DESTEXEC}
-install: ${DESTDIR}${DESTEXEC} ${PROG}
- ${INSTALL} ${STRIP} -c -m 755 ${PROG} ${DESTDIR}${DESTEXEC}/${PROG}
+install: ${DESTDIR}${DESTEXEC} ${PROG}${EXE}
+ ${INSTALL} ${STRIP} -c ${INSTALL_EXEC} -m 755 ${PROG}${EXE} ${DESTDIR}${DESTEXEC}/${PROG}${EXE}
links: FRC
@set -e; ln -s SRC/*.[ch] .
@@ -79,9 +83,6 @@ links: FRC
tags: FRC
ctags ${SRCS} *.h
-commands.c: commands.l
- ${LEX} -t $< > $@ || rm $@
-
FRC:
# DO NOT DELETE THIS LINE -- mkdep uses it.
OpenPOWER on IntegriCloud