Skip to content

Commit

Permalink
Fix the build to generate .d file (#99)
Browse files Browse the repository at this point in the history
  • Loading branch information
howard0su authored and tqchen committed Jan 22, 2017
1 parent 5d7cfd7 commit eafba82
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions amalgamation/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 $+ $@
Expand Down

0 comments on commit eafba82

Please sign in to comment.