mirror of
https://github.com/troglobit/libuev.git
synced 2026-11-19 19:51:06 +00:00
Prettify verbatim text
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
1 parent
1450e7e48a
commit
0f5842e6fe
1 file changed
+8
@@ -181,25 +181,33 @@ Using -luev
|
|||||||
LibuEv is by default installed as a library with a few header files, you
|
LibuEv is by default installed as a library with a few header files, you
|
||||||
should only ever need to include one:
|
should only ever need to include one:
|
||||||
|
|
||||||
|
```C
|
||||||
#include <uev/uev.h>
|
#include <uev/uev.h>
|
||||||
|
```
|
||||||
|
|
||||||
The output from the `pkg-config` tool holds no surprises:
|
The output from the `pkg-config` tool holds no surprises:
|
||||||
|
|
||||||
|
```shell
|
||||||
$ pkg-config --libs --static --cflags libuev
|
$ pkg-config --libs --static --cflags libuev
|
||||||
-I/usr/local/include -L/usr/local/lib -luev
|
-I/usr/local/include -L/usr/local/lib -luev
|
||||||
|
```
|
||||||
|
|
||||||
The prefix path `/usr/local/` shown here is only the default. Use the
|
The prefix path `/usr/local/` shown here is only the default. Use the
|
||||||
`configure` script to select a different prefix when installing libuEv.
|
`configure` script to select a different prefix when installing libuEv.
|
||||||
|
|
||||||
For GNU autotools based projects, use the following in `configure.ac`:
|
For GNU autotools based projects, use the following in `configure.ac`:
|
||||||
|
|
||||||
|
```C
|
||||||
# Check for required libraries
|
# Check for required libraries
|
||||||
PKG_CHECK_MODULES([uev], [libuev >= 1.4.0])
|
PKG_CHECK_MODULES([uev], [libuev >= 1.4.0])
|
||||||
|
```
|
||||||
|
|
||||||
and in your `Makefile.am`:
|
and in your `Makefile.am`:
|
||||||
|
|
||||||
|
```conf
|
||||||
proggy_CFLAGS = $(uev_CFLAGS)
|
proggy_CFLAGS = $(uev_CFLAGS)
|
||||||
proggy_LDADD = $(uev_LIBS)
|
proggy_LDADD = $(uev_LIBS)
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
Joystick Example
|
Joystick Example
|
||||||
|
|||||||
Reference in new issue
Block a user