Skip to content

Commit

Permalink
Provide pkg-config files for libfsm and libre.
Browse files Browse the repository at this point in the history
  • Loading branch information
katef committed Mar 22, 2017
1 parent 8c09e3c commit 7c76cea
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ SUBDIR += src/fsm
SUBDIR += src/re
SUBDIR += src/lx
SUBDIR += src/lx/out
SUBDIR += pc

INCDIR += include

Expand All @@ -36,6 +37,7 @@ INCDIR += include
DIR += ${BUILD}/lib

.include <subdir.mk>
.include <pc.mk>
.include <sid.mk>
.include <lx.mk>
.include <obj.mk>
Expand Down
5 changes: 5 additions & 0 deletions pc/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.include "../share/mk/top.mk"

PC += pc/libfsm.pc.in
PC += pc/libre.pc.in

13 changes: 13 additions & 0 deletions pc/libfsm.pc.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
prefix=@prefix@
libdir=${prefix}/lib
includedir=${prefix}/include

Name: libfsm
Description: Finite State Machines
Version: 0.1
Requires:
Requires.private:
Libs: -L${libdir} -lfsm
Libs.private:
Cflags: -I${includedir}

13 changes: 13 additions & 0 deletions pc/libre.pc.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
prefix=@prefix@
libdir=${prefix}/lib
includedir=${prefix}/include

Name: libre
Description: Regular Expressions
Version: 0.1
Requires:
Requires.private: libfsm
Libs: -L${libdir} -lre
Libs.private: -lfsm
Cflags: -I${includedir}

0 comments on commit 7c76cea

Please sign in to comment.