Here's a description of how to compile Linknx from sources:

Required libraries:
libpthsem >= 2.0.4 from http://sourceforge.net/projects/bcusdk
Optional libraries:
libesmtp 1.0.4 from http://www.stafford.uklinux.net/libesmtp (needed for e-mail sending via SMTP)
libcurl >= 7.14.0 from http://curl.haxx.se/download/ (needed for SMS sending using www.clickatell.com API)
cppunit >= 1.9.6 from http://sourceforge.net/projects/cppunit (needed for regression tests)
If you are installing libraries from RPM or any other package management tool, don't forget to install also "xxx-devel" packages

Download the source code (e.g. linknx-0.0.1.20.tar.gz) and unpack it
wget http://belnet.dl.sourceforge.net/sourceforge/linknx/linknx-0.0.1.20.tar.gz
tar -xzf linknx-0.0.1.20.tar.gz
cd linknx-0.0.1.20

Configure
./configure
Build
make
Install
make install

Run regression tests (e.g. if you made some modifications to the code)
make check