allow compilation Intel+CUDA, adding LDFLAGS_C for .cu files

svn-origin-rev: 18365
This commit is contained in:
Alfio Lazzaro 2018-04-05 10:22:05 +00:00
parent 0c226409cd
commit 78df4409b1

View file

@ -116,7 +116,7 @@ def main():
deps = collect_pkg_deps(packages, p)
makefile += " ".join(["$(LIBDIR)/"+a+archive_ext for a in deps]) + "\n"
makefile += "\t" + "$(LD) $(LDFLAGS)"
if(fn.endswith(".c")):
if(fn.endswith(".c") or fn.endswith(".cu")):
makefile += " $(LDFLAGS_C)"
makefile += " -L$(LIBDIR) -o $@ %s.o "%bfn
makefile += "$(EXTERNAL_OBJECTS) "