Add DPADD to Makefile (thanks to Andrey for pointing this out).

Generally clean up Makefile, remove dmalloc references from source
(there are better ways to do this than pollute the FreeBSD src tree).
This commit is contained in:
Tim Kientzle 2004-04-12 00:13:23 +00:00
parent 445d3a34a6
commit 4cbbc3a35e
5 changed files with 2 additions and 24 deletions

View file

@ -1,21 +1,11 @@
# Makefile for bsdtar
#
# $FreeBSD$
#
DEBUG_FLAGS= -g
PROG= bsdtar
SRCS= bsdtar.c matching.c read.c util.c write.c
MAN = bsdtar.1
BINDIR?= /usr/bin
WARNS?= 6
LDADD += -larchive -lz -lbz2
.if defined(DMALLOC)
CFLAGS += -DDMALLOC -I/usr/local/include
LDADD += -L/usr/local/lib -ldmalloc
.endif
LDADD+= -larchive -lbz2 -lz
DPADD+= ${LIBARCHIVE} ${LIBBZ2} ${LIBZ}
.include <bsd.prog.mk>

View file

@ -32,9 +32,6 @@ __FBSDID("$FreeBSD$");
#include <archive.h>
#include <archive_entry.h>
#include <dirent.h>
#ifdef DMALLOC
#include <dmalloc.h>
#endif
#include <errno.h>
#include <fcntl.h>
#include <fnmatch.h>

View file

@ -27,9 +27,6 @@
#include "bsdtar_platform.h"
__FBSDID("$FreeBSD$");
#ifdef DMALLOC
#include <dmalloc.h>
#endif
#include <errno.h>
#include <fnmatch.h>
#include <stdlib.h>

View file

@ -32,9 +32,6 @@ __FBSDID("$FreeBSD$");
#include <archive.h>
#include <archive_entry.h>
#ifdef DMALLOC
#include <dmalloc.h>
#endif
#include <errno.h>
#include <grp.h>
#include <limits.h>

View file

@ -34,9 +34,6 @@ __FBSDID("$FreeBSD$");
#endif
#include <archive.h>
#include <archive_entry.h>
#ifdef DMALLOC
#include <dmalloc.h>
#endif
#include <errno.h>
#include <fcntl.h>
#include <fnmatch.h>