Просмотр исходного кода

Add a .pc file for libstarpufft

Samuel Thibault лет назад: 13
Родитель
Сommit
ac668a201a
2 измененных файлов с 33 добавлено и 1 удалено
  1. 6 1
      examples/starpufft/Makefile.am
  2. 27 0
      examples/starpufft/libstarpufft.pc.in

+ 6 - 1
examples/starpufft/Makefile.am

@@ -20,7 +20,6 @@ AM_LDFLAGS = $(STARPU_CUDA_LDFLAGS) $(STARPU_OPENCL_LDFLAGS) $(STARPU_CUFFT_LDFL
 lib_LTLIBRARIES = libstarpufft.la
 
 EXTRA_DIST =			\
-	starpufft.h		\
 	float.h			\
 	double.h		\
 	cudax_kernels.h		\
@@ -35,6 +34,12 @@ EXTRA_DIST =			\
 	testf_threads.c		\
 	test_threads.c
 
+include_HEADERS =		\
+	starpufft.h
+
+pkgconfigdir = $(libdir)/pkgconfig
+pkgconfig_DATA = libstarpufft.pc
+
 libstarpufft_la_SOURCES = starpufft.c starpufftf.c starpufft_common.c
 libstarpufft_la_LIBADD = $(top_builddir)/src/libstarpu.la $(FFTW_LIBS) $(FFTWF_LIBS)
 libstarpufft_la_CFLAGS = $(FFTWF_CFLAGS)

+ 27 - 0
examples/starpufft/libstarpufft.pc.in

@@ -0,0 +1,27 @@
+# StarPU --- Runtime system for heterogeneous multicore architectures.
+#
+# Copyright (C) 2009, 2010, 2011  Université de Bordeaux 1
+# Copyright (C) 2010, 2011  Centre National de la Recherche Scientifique
+#
+# StarPU is free software; you can redistribute it and/or modify
+# it under the terms of the GNU Lesser General Public License as published by
+# the Free Software Foundation; either version 2.1 of the License, or (at
+# your option) any later version.
+#
+# StarPU is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+#
+# See the GNU Lesser General Public License in COPYING.LGPL for more details.
+
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=@includedir@
+
+Name: starpufft
+Description: offers support for heterogeneous multicore architecture
+Version: @PACKAGE_VERSION@
+Cflags: -I${includedir} @STARPU_CUDA_CPPFLAGS@
+Libs: -L${libdir} -lstarpufft
+Libs.private: @LDFLAGS@ @LIBS@ @STARPU_CUFFT_LDFLAGS@ @FFTW_LIBS@ @FFTWF_LIBS@