Use LDDESTDIR and DPADD more consistently with what Bruce suggests..

Submitted by:	jkh
This commit is contained in:
Jordan K. Hubbard 1994-08-29 18:42:12 +00:00
parent 59df70ee2f
commit 760365067e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=2394
2 changed files with 13 additions and 5 deletions

View File

@ -5,10 +5,14 @@ SRCS= cron.c database.c do_command.c job.c user.c popen.c
MAN3= bitstring.3
MAN8= cron.8
.if exists({.CURDIR}/../lib/obj)
LDADD+= -L${.CURDIR}/../lib/obj -lcron
.if exists(${.CURDIR}/../lib/obj)
LDDESTDIR+= -L${.CURDIR}/../lib/obj
DPADD+= ${.CURDIR}/../lib/obj/libcron.a
.else
LDADD+= -L${.CURDIR}/../lib -lcron
LDDESTDIR+= -L${.CURDIR}/../lib
DPADD+= ${.CURDIR}/../lib/libcron.a
.endif
LDADD+= -lcron
.include <bsd.prog.mk>

View File

@ -7,9 +7,13 @@ MAN1= crontab.1
MAN5= crontab.5
.if exists(${.CURDIR}/../lib/obj)
LDADD+= -L${.CURDIR}/../lib/obj -lcron
LDDESTDIR+= -L${.CURDIR}/../lib/obj
DPADD+= ${.CURDIR}/../lib/obj/libcron.a
.else
LDADD+= -L${.CURDIR}/../lib -lcron
LDDESTDIR+= -L${.CURDIR}/../lib
DPADD+= ${.CURDIR}/../lib/libcron.a
.endif
LDADD+= -lcron
.include <bsd.prog.mk>