Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add simple pkg-config file #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,13 @@ SUBDIRS = src tests

EXTRA_DIST = \
ChangeLog.1 PORTING INSTALL.windows HACKING JOIN-GNU \
autogen.sh
autogen.sh \
libsigsegv.pc.in

DISTCLEANFILES = termbold termnorm
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = libsigsegv.pc

DISTCLEANFILES = termbold termnorm libsigsegv.pc


# Lead the user through the installation, in the hope that he will help us
Expand Down
3 changes: 2 additions & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -1115,7 +1115,8 @@ gl_RELOCATABLE_NOP
dnl AC_CONFIG_FILES([Makefile])
AC_CONFIG_FILES([Makefile
src/Makefile src/sigsegv.h
tests/Makefile])
tests/Makefile
libsigsegv.pc])

{ echo; echo "Now please type '${term_bold}make${term_norm}' to compile. Good luck."; echo; } >& AS_MESSAGE_FD

Expand Down
10 changes: 10 additions & 0 deletions libsigsegv.pc.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
prefix=@prefix@
exec_prefix=@exec_prefix@
libdir=@libdir@
includedir=@includedir@

Name: libsigsegv
Description: Handling page faults in user mode
Version: @VERSION@
Libs: -L${libdir} -lsigsegv
Cflags: -I${includedir}