#
# Copyright (c) 1987, 1988, 1990 The Regents of the University of California.
# All rights reserved.
#
####
#### Mar 17, 1992 - Modified by Jorge Frazao de Oliveira <frazao@puug.pt>
####              for use with the DDT package.
####

# =()<XFER= @<XFER>@>()=
XFER= /usr/local/lib/ddt/cmd
MANDIR= ${XFER}
DEFINES= -DDEBUG
###DEFINES= -DDEBUG -DSTATS -DALLOW_T_UNSPEC -Dmalloc=rt_malloc -Dfree=rt_free
###ALLOC=storage.o
CFLAGS=	-O -g ${DEFINES}

RES= -lresolv
LIBS=	${RES}
###LIBC=  /lib/libc.a

SRCS=   db_load.c db_glue.c ddt-xfer.c
HDRS=	db.h ns.h pathnames.h
XFEROBJ=   ddt-xfer.o db_glue.o db_load.o

MAN= ddt-xfer.1

# =()<CACHE= @<CACHE>@>()=
CACHE= /usr/local/lib/ddt/cache

ddt-xfer:	${HDR} ${XFEROBJ} ${LIBC} 
	${CC} -o $@ ${XFEROBJ} ${LIBS}

clean:
	rm -f ${XFEROBJ} core ddt-xfer

cleandir: clean
	rm -f ${MAN} tags .depend

install: ddt-xfer
	install -s -o root -g staff -m 755 ddt-xfer ${XFER}
	if [ ! -d ${CACHE} ]; then rm -rf ${CACHE}; mkdir ${CACHE}; fi


depend .depend: ${SRC}
	./mkdep ${CFLAGS} ${SRC}

lint: ${SRC} ${HDR}
	lint -Dlint ${CFLAGS} ${SRC}

tags: ${SRC}
	ctags -t ${SRC} ${HDR}

# DO NOT DELETE THIS LINE -- mkdep uses it.
# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.

# IF YOU PUT ANYTHING HERE IT WILL GO AWAY

