Browse Source

added pkg-config support

master
cbauer 21 years ago
parent
commit
4cbdf5e241
  1. 7
      Makefile.in
  2. 10
      cln.pc.in
  3. 7
      cln.spec.in
  4. 2
      configure.ac

7
Makefile.in

@ -36,18 +36,21 @@ install : installdirs force
$(INSTALL_PROGRAM) cln-config $(DESTDIR)$(bindir)/cln-config
$(INSTALL_DATA) cln-config.1 $(DESTDIR)$(mandir)/man1/cln-config.1
$(INSTALL_DATA) cln.m4 $(DESTDIR)$(datadir)/aclocal/cln.m4
$(INSTALL_DATA) cln.pc $(DESTDIR)$(libdir)/pkgconfig/cln.pc
installdirs : force
cd @subdir@; $(MAKE) installdirs
$(MKDIR) $(DESTDIR)$(mandir)/man1
$(MKDIR) $(DESTDIR)$(datadir)/aclocal
$(MKDIR) $(DESTDIR)$(bindir)
$(MKDIR) $(DESTDIR)$(libdir)/pkgconfig
uninstall : force
cd @subdir@; $(MAKE) uninstall
$(RM) $(DESTDIR)$(bindir)/cln-config
$(RM) $(DESTDIR)$(mandir)/man1/cln-config.1
$(RM) $(DESTDIR)$(datadir)/aclocal/cln.m4
$(RM) $(DESTDIR)$(libdir)/pkgconfig/cln.pc
check : force
cd @subdir@; $(MAKE) check
@ -61,14 +64,14 @@ clean : force
distclean : force
cd @subdir@; if test -f Makefile; then $(MAKE) distclean; fi
$(RM) config.status config.log config.cache Makefile
$(RM) cln-config cln-config.1 cln.spec
$(RM) cln-config cln-config.1 cln.spec cln.pc
$(RM) libtool
$(RM) include/cln/config.h include/cln/intparam.h include/cln/floatparam.h src/base/cl_base_config.h src/base/cl_gmpconfig.h src/float/cl_float_config.h src/timing/cl_t_config.h
maintainer-clean : force
cd @subdir@; if test -f Makefile; then $(MAKE) maintainer-clean; fi
$(RM) config.status config.log config.cache Makefile
$(RM) cln-config cln-config.1 cln.spec
$(RM) cln-config cln-config.1 cln.spec cln.pc
$(RM) libtool
$(RM) include/cln/config.h include/cln/intparam.h include/cln/floatparam.h src/base/cl_base_config.h src/base/cl_gmpconfig.h src/float/cl_float_config.h src/timing/cl_t_config.h

10
cln.pc.in

@ -0,0 +1,10 @@
prefix=@prefix@
exec_prefix=@exec_prefix@
libdir=@libdir@
includedir=@includedir@
Name: cln
Description: Class Library for Numbers
Version: @CL_VERSION@
Libs: -L${libdir} -lcln @LIBS@
Cflags: -I${includedir} @CPPFLAGS

7
cln.spec.in

@ -74,13 +74,16 @@ fi
%{_libdir}/*.a
%{_libdir}/*.la
%{_libdir}/*.so
%{_includedir}/cln/*.h
%{_libdir}/pkgconfig/cln.pc
%{_includedir}/cln
%{_infodir}/*.info*
%{_mandir}/man1/cln-config.1*
%{_bindir}/cln-config
%{_datadir}/aclocal/*
%{_datadir}/aclocal/cln.m4
%changelog
* Thu Nov 20 2003 Christian Bauer <Christian.Bauer@uni-mainz.de>
Added pkg-config metadata file to devel package
* Wed Nov 6 2002 Christian Bauer <Christian.Bauer@uni-mainz.de>
Added HTML and DVI docs to devel package
* Tue Nov 5 2001 Christian Bauer <Christian.Bauer@uni-mainz.de>

2
configure.ac

@ -181,4 +181,4 @@ changequote([,])dnl
cp "$srcdir/$f" "$f"
fi
done
AC_OUTPUT([Makefile src/Makefile tests/Makefile benchmarks/Makefile examples/Makefile doc/Makefile cln-config cln-config.1 cln.spec], [chmod +x cln-config])
AC_OUTPUT([Makefile src/Makefile tests/Makefile benchmarks/Makefile examples/Makefile doc/Makefile cln-config cln-config.1 cln.spec cln.pc], [chmod +x cln-config])
Loading…
Cancel
Save