Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.sbin/bta2dpd/bta2dpd Fix the build (objdirs)



details:   https://anonhg.NetBSD.org/src/rev/eef8e717b8f0
branches:  trunk
changeset: 350963:eef8e717b8f0
user:      christos <christos%NetBSD.org@localhost>
date:      Sat Jan 28 23:19:20 2017 +0000

description:
Fix the build (objdirs)

diffstat:

 usr.sbin/bta2dpd/bta2dpd/Makefile |  18 +++++++++++++-----
 1 files changed, 13 insertions(+), 5 deletions(-)

diffs (32 lines):

diff -r 40e109344b1c -r eef8e717b8f0 usr.sbin/bta2dpd/bta2dpd/Makefile
--- a/usr.sbin/bta2dpd/bta2dpd/Makefile Sat Jan 28 22:56:09 2017 +0000
+++ b/usr.sbin/bta2dpd/bta2dpd/Makefile Sat Jan 28 23:19:20 2017 +0000
@@ -1,4 +1,6 @@
-# $NetBSD: Makefile,v 1.1 2017/01/28 16:55:54 nat Exp $
+# $NetBSD: Makefile,v 1.2 2017/01/28 23:19:20 christos Exp $
+
+.include <bsd.own.mk>
 
 WARNS?=                6
 
@@ -12,10 +14,16 @@
 CLEANFILES+=   sbc_crc.h sbc_coeffs.h
 
 sbc_encode.c:  sbc_coeffs.h sbc_crc.h
-sbc_coeffs.h:
-       ../cosdata-gen/cosdata > sbc_coeffs.h
-sbc_crc.h:
-       ../sbc_crc-gen/sbc_crc > sbc_crc.h
+
+COSDATA_GENOBJDIR!=  cd ${.CURDIR}/../cosdata-gen && ${PRINTOBJDIR}
+SBC_CRC_GENOBJDIR!=  cd ${.CURDIR}/../sbc_crc-gen && ${PRINTOBJDIR}
+
+
+sbc_coeffs.h: ${COSDATA_GENOBJDIR}/cosdata
+       ${.ALLSRC} > ${.TARGET}
+
+sbc_crc.h: ${SBC_CRC_GENOBJDIR}/sbc_crc
+       ${.ALLSRC} > ${.TARGET}
 
 .if exists(${.CURDIR}/../../Makefile.inc)
 .include "${.CURDIR}/../../Makefile.inc"



Home | Main Index | Thread Index | Old Index