diff --git a/Makefile.am b/Makefile.am index 3b2df6997..9509f8fd0 100644 --- a/Makefile.am +++ b/Makefile.am @@ -5,8 +5,13 @@ SUBDIRS = Cantera tools test_problems SUBDIRS += doxygen examples # Distribute these directories: -DIST_SUBDIRS = Cantera examples +DISTDIRS = Cantera examples # generated documentation will be included in distributed archive -EXTRA_DIST= bootstrap $(DX_CONFIG) +EXTRA_DIST = bootstrap $(DX_CONFIG) +EXTRA_DIST += AUTHORS README + +# Support for pkgconfig +pkgconfigdir = $(libdir)/pkgconfig +pkgconfig_DATA = cantera.pc diff --git a/cantera.pc.in b/cantera.pc.in new file mode 100644 index 000000000..95b788f1e --- /dev/null +++ b/cantera.pc.in @@ -0,0 +1,22 @@ +# @PACKAGE_NAME@ installation details +prefix=@prefix@ +exec_prefix=@exec_prefix@ +libdir=@libdir@ +includedir=@includedir@ +# Fortran compilation and linking information +# Retrieve these using `pkg-config --variable=name @PACKAGE_NAME@` +fflags=-I@libdir@ +flibs=-L@libdir@ -lf@PACKAGE_NAME@ -l@PACKAGE_NAME@ + +Name: @PACKAGE_NAME@ +Description: @PACKAGE_DESCRIPTION@ +URL: @PACKAGE_URL@ +Requires: +Version: @VERSION@ + +LINK = -lctcxx -luser -loneD -lzeroD -lequil -lkinetics -ltransport -lthermo +LINK += -lctnumerics -lctmath -ltpx -lctspectra -lconverters -lctbase -lcvode +LINK += -lctlapack -lctblas -lctf2c -lm -lstdc++ + +Libs: -L${libdir} ${LINK} +Cflags: -I${includedir} diff --git a/configure.ac b/configure.ac index a21a485eb..0b1edcb3a 100644 --- a/configure.ac +++ b/configure.ac @@ -159,7 +159,8 @@ AC_OUTPUT(Makefile \ Cantera/src/spectra/Makefile Cantera/src/zeroD/Makefile \ Cantera/src/equil/Makefile \ examples/Makefile \ - examples/cxx/Makefile) + examples/cxx/Makefile \ + cantera.pc) # skipped tests # test_problems/ck2cti/Makefile