File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -44,13 +44,19 @@ distclean:
4444 -rm -f $(OBJS ) * .a * .$(SHLIB_EXT ) libopenlibm.*
4545 -$(MAKE ) -C test clean
4646
47- install : all
47+ openlibm.pc : openlibm.pc.in Make.inc Makefile
48+ echo " prefix=${prefix} " > openlibm.pc
49+ echo " version=${VERSION} " >> openlibm.pc
50+ cat openlibm.pc.in >> openlibm.pc
51+
52+ install : all openlibm.pc
4853 mkdir -p $(DESTDIR )$(shlibdir )
49- mkdir -p $(DESTDIR )$(libdir )
54+ mkdir -p $(DESTDIR )$(libdir ) /pkgconfig
5055 mkdir -p $(DESTDIR )$(includedir ) /openlibm
5156 cp -a libopenlibm.$(SHLIB_EXT ) * $(DESTDIR )$(shlibdir ) /
5257 cp -a libopenlibm.a $(DESTDIR )$(libdir ) /
5358 cp -a src/openlibm.h $(DESTDIR )$(includedir ) /
59+ cp -a openlibm.pc $(DESTDIR )$(libdir ) /pkgconfig/
5460ifneq ($(wildcard $(ARCH ) /bsd_asm.h) ,)
5561 cp -a $(ARCH)/bsd_asm.h $(DESTDIR)$(includedir)/openlibm/
5662endif
Original file line number Diff line number Diff line change 1+ exec_prefix=${prefix}
2+ includedir=${prefix}/include
3+ libdir=${exec_prefix}/lib
4+
5+ Name: openlibm
6+ Version: ${version}
7+ URL: https://github.com/JuliaLang/openlibm
8+ Description: High quality system independent, open source libm.
9+ Cflags: -I${includedir}
10+ Libs: -L${libdir} -lopenlibm
You can’t perform that action at this time.
0 commit comments