diff options
| -rw-r--r-- | build/linux/Makefile.in | 3 | 
1 files changed, 3 insertions, 0 deletions
| diff --git a/build/linux/Makefile.in b/build/linux/Makefile.in index 12c9e2b..f556066 100644 --- a/build/linux/Makefile.in +++ b/build/linux/Makefile.in @@ -305,6 +305,9 @@ ifeq ($(cuda),yes)  	@$(NVCC) $(NVCCFLAGS) -c $(<) -Xcompiler -fPIC -DPIC -o $(*D)/.libs/$(*F).o >/dev/null 2>&1  	@# Generate a .d file, with target name $*.lo  	@$(NVCC) $(NVCCFLAGS) -M $(<) -MT $(*F).lo -odir $(*D) -o $(*D)/$(DEPDIR)/$(*F).d +	@# Generate empty targets for all dependencies listed in the .d file. +	@# This mimics gcc's -MP option. +	@for x in `cat $(*D)/$(DEPDIR)/$(*F).d`; do if test a$$x != a: -a a$$x != a\\; then echo -e "\n$$x:\n" >> $(*D)/$(DEPDIR)/$(*F).d; fi; done  	@# Generate a fake libtool .lo file  	@echo "# $*.lo - a libtool object file" > $*.lo  	@echo "# Generated by" `./libtool --version | head -n 1` >> $*.lo | 
