summaryrefslogtreecommitdiff
path: root/gcc/config/nvptx/t-nvptx
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/config/nvptx/t-nvptx')
-rw-r--r--gcc/config/nvptx/t-nvptx9
1 files changed, 8 insertions, 1 deletions
diff --git a/gcc/config/nvptx/t-nvptx b/gcc/config/nvptx/t-nvptx
index 8fa2136f688..d53471f9551 100644
--- a/gcc/config/nvptx/t-nvptx
+++ b/gcc/config/nvptx/t-nvptx
@@ -1,2 +1,9 @@
-#
+CFLAGS-mkoffload.o += $(DRIVER_DEFINES) \
+ -DGCC_INSTALL_NAME=\"$(GCC_INSTALL_NAME)\"
+mkoffload.o: $(srcdir)/config/nvptx/mkoffload.c
+ $(COMPILE) $<
+ $(POSTCOMPILE)
+mkoffload$(exeext): mkoffload.o collect-utils.o libcommon-target.a $(LIBIBERTY) $(LIBDEPS)
+ +$(LINKER) $(ALL_LINKERFLAGS) $(LDFLAGS) -o $@ \
+ mkoffload.o collect-utils.o libcommon-target.a $(LIBIBERTY) $(LIBS)