diff options
Diffstat (limited to 'usr.sbin/pcvt/kcon/Makefile')
-rw-r--r-- | usr.sbin/pcvt/kcon/Makefile | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/usr.sbin/pcvt/kcon/Makefile b/usr.sbin/pcvt/kcon/Makefile index dee4f45..5b58298 100644 --- a/usr.sbin/pcvt/kcon/Makefile +++ b/usr.sbin/pcvt/kcon/Makefile @@ -2,9 +2,16 @@ PROG= kcon DEVICE= /dev/ttyv0 CFLAGS+= -I${.CURDIR}/../keycap -DKEYB_DEVICE=\"${DEVICE}\" +.if exists(${.OBJDIR}/../keycap) +LIBDESTDIR= ${.OBJDIR}/../keycap +.else +LIBDESTDIR= ${.CURDIR}/../keycap +.endif + # the -Lfoo could be omitted if libkeycap.a were installed before # making those programs here -LDADD = -L${.CURDIR}/../keycap -L${.OBJDIR}/../keycap -lkeycap +DPADD = ${LIBDESTDIR}/libkeycap.a +LDADD = -L${LIBDESTDIR} -lkeycap .include <bsd.prog.mk> |