build: introduce shared libreiserfscore.so and export it
In order to use reiserfs functionality in external programs, we need to make a shared library and includes available. This converts both libmisc and libreiserfscore into shared libraries, and links libmisc into libreiserfscore. We also export the includes and a pkg-config file. Signed-off-by: Jeff Mahoney <jeffm@suse.com>
This commit is contained in:
1 parent
97fa944851
commit
19566d0878
10 files changed
+32
-14
No files matched your search
@@ -1,5 +1,9 @@
|
||||
noinst_LIBRARIES = libcore.a
|
||||
lib_LTLIBRARIES = libreiserfscore.la
|
||||
|
||||
libcore_a_SOURCES = do_balan.c fix_node.c hashes.c ibalance.c lbalance.c prints.c \
|
||||
stree.c node_formats.c reiserfslib.c bitmap.c journal.c includes.h
|
||||
libreiserfscore_la_SOURCES = do_balan.c fix_node.c hashes.c ibalance.c \
|
||||
lbalance.c prints.c stree.c node_formats.c \
|
||||
reiserfslib.c bitmap.c journal.c includes.h
|
||||
libreiserfscore_la_LIBADD = ../lib/libmisc.la
|
||||
|
||||
pkgconfigdir = $(libdir)/pkgconfig
|
||||
pkgconfig_DATA = reiserfscore.pc
|
||||
@@ -0,0 +1,10 @@
|
||||
prefix=@prefix@
|
||||
exec_prefix=@exec_prefix@
|
||||
libdir=@libdir@
|
||||
includedir=@includedir@
|
||||
|
||||
Name: reiserfscore
|
||||
Description: ReiserFS Core Library
|
||||
Version: @REISERFSPROGS_VERSION@
|
||||
Cflags: -I${includedir}/reiserfs -I${includedir}
|
||||
Libs: -L${libdir} -lreiserfscore
|
||||
Reference in new issue
Block a user