From eafba820b4eae5a08f0c7d594e4ddd1e7f71d790 Mon Sep 17 00:00:00 2001 From: Howard Su Date: Sun, 22 Jan 2017 12:56:33 +0800 Subject: [PATCH] Fix the build to generate .d file (#99) --- amalgamation/Makefile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/amalgamation/Makefile b/amalgamation/Makefile index 0dd9dd8e6fc8..e457b770d74f 100644 --- a/amalgamation/Makefile +++ b/amalgamation/Makefile @@ -9,10 +9,9 @@ nnvm.cc: python generate.py $@ nnvm.d: nnvm.cc - ${CXX} ${CFLAGS} -MD -MF $@ \ + ${CXX} ${CFLAGS} -M -MT nnvm.o \ -I ${NNVM_ROOT}/ -I ${NNVM_ROOT}/include \ - -D__MIN__=$(MIN) -c $+ - rm nnvm.o + -D__MIN__=$(MIN) $+ > nnvm.d nnvm-all.cc: nnvm.d nnvm.cc python ./amalgamation.py $+ $@