mirror of
https://git.planet-casio.com/Lephenixnoir/OpenLibm.git
synced 2024-12-28 04:23:41 +01:00
Added pkg-config support
This commit is contained in:
parent
15fa3252fc
commit
5b16546ddd
2 changed files with 18 additions and 2 deletions
10
Makefile
10
Makefile
|
@ -44,13 +44,19 @@ distclean:
|
|||
-rm -f $(OBJS) *.a *.$(SHLIB_EXT) libopenlibm.*
|
||||
-$(MAKE) -C test clean
|
||||
|
||||
install: all
|
||||
openlibm.pc: openlibm.pc.in Make.inc Makefile
|
||||
echo "prefix=${prefix}" > openlibm.pc
|
||||
echo "version=${VERSION}" >> openlibm.pc
|
||||
cat openlibm.pc.in >> openlibm.pc
|
||||
|
||||
install: all openlibm.pc
|
||||
mkdir -p $(DESTDIR)$(shlibdir)
|
||||
mkdir -p $(DESTDIR)$(libdir)
|
||||
mkdir -p $(DESTDIR)$(libdir)/pkgconfig
|
||||
mkdir -p $(DESTDIR)$(includedir)/openlibm
|
||||
cp -a libopenlibm.$(SHLIB_EXT)* $(DESTDIR)$(shlibdir)/
|
||||
cp -a libopenlibm.a $(DESTDIR)$(libdir)/
|
||||
cp -a src/openlibm.h $(DESTDIR)$(includedir)/
|
||||
cp -a openlibm.pc $(DESTDIR)$(libdir)/pkgconfig/
|
||||
ifneq ($(wildcard $(ARCH)/bsd_asm.h),)
|
||||
cp -a $(ARCH)/bsd_asm.h $(DESTDIR)$(includedir)/openlibm/
|
||||
endif
|
||||
|
|
10
openlibm.pc.in
Normal file
10
openlibm.pc.in
Normal file
|
@ -0,0 +1,10 @@
|
|||
exec_prefix=${prefix}
|
||||
includedir=${prefix}/include
|
||||
libdir=${exec_prefix}/lib
|
||||
|
||||
Name: openlibm
|
||||
Version: ${version}
|
||||
URL: https://github.com/JuliaLang/openlibm
|
||||
Description: High quality system independent, open source libm.
|
||||
Cflags: -I${includedir}
|
||||
Libs: -L${libdir} -lopenlibm
|
Loading…
Reference in a new issue