Use LDDESTDIR and DPADD more consistently with what Bruce suggests..
Submitted by: jkh
This commit is contained in:
parent
59df70ee2f
commit
760365067e
@ -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>
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user