forked from ibphoenix/tomsfastmath
add pkg-config file for shared library
This commit is contained in:
parent
e632e097c8
commit
aae8ed3809
1
.gitignore
vendored
1
.gitignore
vendored
@ -14,6 +14,7 @@
|
|||||||
.cproject
|
.cproject
|
||||||
/.libs
|
/.libs
|
||||||
test_*.txt
|
test_*.txt
|
||||||
|
*.pc
|
||||||
|
|
||||||
*.gcda
|
*.gcda
|
||||||
*.gcno
|
*.gcno
|
||||||
|
@ -15,6 +15,7 @@ UNINSTALL_CMD = $(LT) --mode=uninstall rm
|
|||||||
include makefile_include.mk
|
include makefile_include.mk
|
||||||
|
|
||||||
|
|
||||||
|
VERSION := $(shell [ -e .git ] && { git describe --tags --abbrev=0 | sed -e 's/^v//' ; } || echo $(VERSION))
|
||||||
|
|
||||||
#START_INS
|
#START_INS
|
||||||
OBJECTS=src/addsub/fp_add.o src/addsub/fp_add_d.o src/addsub/fp_addmod.o src/addsub/fp_cmp.o \
|
OBJECTS=src/addsub/fp_add.o src/addsub/fp_add_d.o src/addsub/fp_addmod.o src/addsub/fp_cmp.o \
|
||||||
@ -59,8 +60,12 @@ $(LIBNAME): $(OBJECTS)
|
|||||||
$(LT) --mode=link --tag=CC $(CC) $(CFLAGS) $(LDFLAGS) $(LOBJECTS) -o $(LIBNAME) -rpath $(LIBPATH) -version-info $(VERSION_LIB) -export-symbols libtfm.symbols
|
$(LT) --mode=link --tag=CC $(CC) $(CFLAGS) $(LDFLAGS) $(LOBJECTS) -o $(LIBNAME) -rpath $(LIBPATH) -version-info $(VERSION_LIB) -export-symbols libtfm.symbols
|
||||||
|
|
||||||
install: .common_install
|
install: .common_install
|
||||||
|
sed -e 's,^Version:.*,Version: $(VERSION),' tomsfastmath.pc.in > tomsfastmath.pc
|
||||||
|
install -d $(LIBPATH)/pkgconfig
|
||||||
|
install -m 644 tomsfastmath.pc $(LIBPATH)/pkgconfig/
|
||||||
|
|
||||||
uninstall: .common_uninstall
|
uninstall: .common_uninstall
|
||||||
|
rm $(LIBPATH)/pkgconfig/tomsfastmath.pc
|
||||||
|
|
||||||
mtest/mtest: mtest/mtest.c
|
mtest/mtest: mtest/mtest.c
|
||||||
cd mtest ; make mtest
|
cd mtest ; make mtest
|
||||||
|
4
tomsfastmath.pc.in
Normal file
4
tomsfastmath.pc.in
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
Name: TomFastMath
|
||||||
|
Description: Fast multiple-precision integer library
|
||||||
|
Version: @VERSION@
|
||||||
|
Libs: -ltfm
|
Loading…
Reference in New Issue
Block a user