final build changes to reorganize src/

git-svn-id: svn://svn.code.sf.net/p/libkqueue/code/trunk@68 fb4e3144-bc1c-4b72-a658-5bcd248dd7f7
This commit is contained in:
mheily 2009-11-08 02:21:03 +00:00
parent 4b46cc5d44
commit dee9c18331

View File

@ -1,6 +1,6 @@
program="libkqueue"
version="0.2"
cflags="-fPIC -I./include -Wall -Werror"
cflags="-fPIC -I./include -I./src/common -Wall -Werror"
sources="src/common/*.c"
mans="kqueue.2"
headers="private.h"
@ -22,10 +22,12 @@ post_configure_hook() {
if [ $target = "linux" ] ; then
if [ "$have_sys_signalfd_h" = "no" -o "$have_sys_timerfd_h" = "no" ]
then
echo "** NOTE: The Linux backend requires at least kernel 2.6.22 "
echo "** and glibc 2.8. Switching to the POSIX backend."
target=posix
echo "** ERROR: Your kernel and/or C library are too old."
echo "** At least kernel 2.6.22 and glibc 2.8 are required."
exit 1
fi
fi
finalize target "$target"
sources="$sources src/$target/*.c"
}