[cig-commits] r18421 - short/3D/PyLith/trunk/libsrc/pylith

knepley at geodynamics.org knepley at geodynamics.org
Sun May 22 08:50:20 PDT 2011


Author: knepley
Date: 2011-05-22 08:50:20 -0700 (Sun, 22 May 2011)
New Revision: 18421

Modified:
   short/3D/PyLith/trunk/libsrc/pylith/Makefile.am
Log:
Build stuff for CUDA


Modified: short/3D/PyLith/trunk/libsrc/pylith/Makefile.am
===================================================================
--- short/3D/PyLith/trunk/libsrc/pylith/Makefile.am	2011-05-22 15:06:05 UTC (rev 18420)
+++ short/3D/PyLith/trunk/libsrc/pylith/Makefile.am	2011-05-22 15:50:20 UTC (rev 18421)
@@ -28,7 +28,18 @@
 	problems
 
 .cu.lo:
-	$(LIBTOOL) --tag=CC --mode=compile nvcc --compile -m64 $(NVCC_FLAGS) -o ${@F} $<
+	$(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile nvcc --compile -prefer-non-pic -m64 $(NVCC_FLAGS) -o ${@F} $<
+	echo "# ${@F} - a libtool object file" > ${@}
+	echo "# Generated by ltmain.sh (GNU libtool) 2.2.4" >> ${@}
+	echo "#" >> ${@}
+	echo "# Please DO NOT delete this file!" >> ${@}
+	echo "# It is necessary for linking the library." >> ${@}
+	echo >> ${@}
+	echo "# Name of the PIC object." >> ${@}
+	echo "pic_object='../.libs/${*F}.o'" >> ${@}
+	echo  >> ${@}
+	echo "# Name of the non-PIC object" >> ${@}
+	echo "non_pic_object=none" >> ${@}
 
 lib_LTLIBRARIES = libpylith.la
 



More information about the CIG-COMMITS mailing list