mirror of
https://github.com/troglobit/libuev.git
synced 2026-11-10 16:31:08 +00:00
Refactor, further additions of syntax highlighting
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
1 parent
6ca04123e2
commit
1d415cfd50
1 file changed
+11
-7
@@ -197,7 +197,7 @@ The prefix path `/usr/local/` shown here is only the default. Use the
|
|||||||
|
|
||||||
For GNU autotools based projects, use the following in `configure.ac`:
|
For GNU autotools based projects, use the following in `configure.ac`:
|
||||||
|
|
||||||
```C
|
```sh
|
||||||
# Check for required libraries
|
# Check for required libraries
|
||||||
PKG_CHECK_MODULES([uev], [libuev >= 1.4.0])
|
PKG_CHECK_MODULES([uev], [libuev >= 1.4.0])
|
||||||
```
|
```
|
||||||
@@ -269,7 +269,9 @@ to act upon joystick input.
|
|||||||
To build the example, follow installation instructions below, then save
|
To build the example, follow installation instructions below, then save
|
||||||
the code as `joystick.c` and call GCC
|
the code as `joystick.c` and call GCC
|
||||||
|
|
||||||
gcc `pkg-config --libs --static --cflags libuev` -o joystick joystick.c
|
```sh
|
||||||
|
$ gcc `pkg-config --libs --static --cflags libuev` -o joystick joystick.c
|
||||||
|
```
|
||||||
|
|
||||||
Alternatively, call the `Makefile` with <kbd>make joystick</kbd> from
|
Alternatively, call the `Makefile` with <kbd>make joystick</kbd> from
|
||||||
the unpacked [libuEv][] distribution.
|
the unpacked [libuEv][] distribution.
|
||||||
@@ -292,11 +294,13 @@ support *BSD and its [kqueue][] interface are most welcome.
|
|||||||
libuEv use the GNU configure and build system. To try out the bundled
|
libuEv use the GNU configure and build system. To try out the bundled
|
||||||
examples, use the `--enable-examples` switch to the `configure` script.
|
examples, use the `--enable-examples` switch to the `configure` script.
|
||||||
|
|
||||||
./configure
|
```sh
|
||||||
make -j5
|
$ ./configure
|
||||||
make test
|
$ make -j5
|
||||||
sudo make install-strip
|
$ make test
|
||||||
sudo ldconfig
|
$ sudo make install-strip
|
||||||
|
$ sudo ldconfig
|
||||||
|
```
|
||||||
|
|
||||||
The resulting .so file is ~14 kiB (<kbd>make install-strip</kbd>).
|
The resulting .so file is ~14 kiB (<kbd>make install-strip</kbd>).
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user