From 0f5842e6fe3b67f0d16d18c124f66c909478702c Mon Sep 17 00:00:00 2001 From: Joachim Nilsson Date: Sat, 27 May 2017 17:42:01 +0200 Subject: [PATCH] Prettify verbatim text Signed-off-by: Joachim Nilsson --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index f49243c..88992c9 100644 --- a/README.md +++ b/README.md @@ -181,25 +181,33 @@ Using -luev LibuEv is by default installed as a library with a few header files, you should only ever need to include one: +```C #include +``` The output from the `pkg-config` tool holds no surprises: +```shell $ pkg-config --libs --static --cflags libuev -I/usr/local/include -L/usr/local/lib -luev +``` The prefix path `/usr/local/` shown here is only the default. Use the `configure` script to select a different prefix when installing libuEv. For GNU autotools based projects, use the following in `configure.ac`: +```C # Check for required libraries PKG_CHECK_MODULES([uev], [libuev >= 1.4.0]) +``` and in your `Makefile.am`: +```conf proggy_CFLAGS = $(uev_CFLAGS) proggy_LDADD = $(uev_LIBS) +``` Joystick Example