summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorWillem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl>2016-01-20 16:18:05 +0100
committerWillem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl>2016-01-20 16:18:05 +0100
commit29c5c86e56697286a92031aaa9fdd903b3bcc426 (patch)
tree575ddc32d185cb4649e07ffd5e54fa0356eacabf /build
parent5e3bcf20be6188331c856d9d8854fb931b2abba7 (diff)
downloadastra-29c5c86e56697286a92031aaa9fdd903b3bcc426.tar.gz
astra-29c5c86e56697286a92031aaa9fdd903b3bcc426.tar.bz2
astra-29c5c86e56697286a92031aaa9fdd903b3bcc426.tar.xz
astra-29c5c86e56697286a92031aaa9fdd903b3bcc426.zip
Use nvcc's -MT option
Diffstat (limited to 'build')
-rw-r--r--build/linux/Makefile.in6
1 files changed, 2 insertions, 4 deletions
diff --git a/build/linux/Makefile.in b/build/linux/Makefile.in
index c165d37..12c9e2b 100644
--- a/build/linux/Makefile.in
+++ b/build/linux/Makefile.in
@@ -303,10 +303,8 @@ ifeq ($(cuda),yes)
@$(MKDIR) $(*D)/.libs
@$(MKDIR) $(*D)/$(DEPDIR)
@$(NVCC) $(NVCCFLAGS) -c $(<) -Xcompiler -fPIC -DPIC -o $(*D)/.libs/$(*F).o >/dev/null 2>&1
- @# Generate a .d file, and change the target name in it from .o to .lo
- @$(NVCC) $(NVCCFLAGS) -M $(<) -odir $(*D) -o $(*D)/$(DEPDIR)/$(*F).d2
- @sed '1s/\.o :/.lo :/' < $(*D)/$(DEPDIR)/$(*F).d2 > $(*D)/$(DEPDIR)/$(*F).d
- @rm -f $(*D)/$(DEPDIR)/$(*F).d2
+ @# Generate a .d file, with target name $*.lo
+ @$(NVCC) $(NVCCFLAGS) -M $(<) -MT $(*F).lo -odir $(*D) -o $(*D)/$(DEPDIR)/$(*F).d
@# Generate a fake libtool .lo file
@echo "# $*.lo - a libtool object file" > $*.lo
@echo "# Generated by" `./libtool --version | head -n 1` >> $*.lo