Module Name: src
Committed By: christos
Date: Sat Jan 28 23:19:20 UTC 2017
Modified Files:
src/usr.sbin/bta2dpd/bta2dpd: Makefile
Log Message:
Fix the build (objdirs)
To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/usr.sbin/bta2dpd/bta2dpd/Makefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.sbin/bta2dpd/bta2dpd/Makefile
diff -u src/usr.sbin/bta2dpd/bta2dpd/Makefile:1.1 src/usr.sbin/bta2dpd/bta2dpd/Makefile:1.2
--- src/usr.sbin/bta2dpd/bta2dpd/Makefile:1.1 Sat Jan 28 11:55:54 2017
+++ src/usr.sbin/bta2dpd/bta2dpd/Makefile Sat Jan 28 18:19:20 2017
@@ -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 @@ LDADD+= -lbluetooth -levent
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"