Compile libev - JiapengLi/libev GitHub Wiki

Get source code

git clone https://github.com/JiapengLi/libev.git

or download from

http://software.schmorp.de/pkg/libev.html

Compile

Run below commands under libev root

./configure
make

Install

make install

Change Target Directory

./configure --prefix=/NEW/TARGET/PATH/

What you get should be more or less like this:

.
├── include
│   ├── event.h
│   ├── ev.h
│   └── ev++.h
├── lib
│   ├── libev.a
│   ├── libev.la
│   ├── libev.so -> libev.so.4.0.0
│   ├── libev.so.4 -> libev.so.4.0.0
│   └── libev.so.4.0.0
└── share
    └── man
        └── man3
            └── ev.3