2003-11-26 04:44:56 +08:00
|
|
|
|
|
|
|
if [ ".$PLATFORM" = "." ]; then
|
|
|
|
echo "checking for OS"
|
|
|
|
|
|
|
|
SYSTEM=`uname -s 2>/dev/null`
|
|
|
|
RELEASE=`uname -r 2>/dev/null`
|
|
|
|
MACHINE=`uname -m 2>/dev/null`
|
|
|
|
|
|
|
|
echo " + $SYSTEM $RELEASE $MACHINE"
|
|
|
|
|
|
|
|
PLATFORM="$SYSTEM:$RELEASE:$MACHINE";
|
|
|
|
else
|
|
|
|
echo "building for $PLATFORM"
|
|
|
|
fi
|
|
|
|
|
|
|
|
case $PLATFORM in
|
|
|
|
|
2004-03-26 04:03:02 +08:00
|
|
|
FreeBSD:* | DragonFly:*)
|
2003-11-26 04:44:56 +08:00
|
|
|
. auto/os/freebsd
|
|
|
|
;;
|
|
|
|
|
2003-11-26 23:42:18 +08:00
|
|
|
Linux:*)
|
|
|
|
. auto/os/linux
|
2003-11-26 04:44:56 +08:00
|
|
|
;;
|
|
|
|
|
2003-11-26 23:42:18 +08:00
|
|
|
SunOS:*)
|
|
|
|
. auto/os/solaris
|
2003-11-26 04:44:56 +08:00
|
|
|
;;
|
|
|
|
|
|
|
|
win32)
|
|
|
|
CORE_INCS="$WIN32_INCS"
|
|
|
|
CORE_DEPS="$WIN32_DEPS"
|
2004-04-19 03:06:02 +08:00
|
|
|
CORE_SRCS="$WIN32_SRCS $IOCP_SRCS"
|
2004-03-10 03:47:07 +08:00
|
|
|
OS_CONFIG="$WIN32_CONFIG"
|
2004-04-19 03:06:02 +08:00
|
|
|
EVENT_MODULES="$EVENT_MODULES $IOCP_MODULE"
|
2004-03-04 15:04:55 +08:00
|
|
|
EVENT_FOUND=YES
|
2003-11-26 04:44:56 +08:00
|
|
|
|
2004-04-19 03:06:02 +08:00
|
|
|
if [ $EVENT_SELECT = NO ]; then
|
|
|
|
CORE_SRCS="$CORE_SRCS $SELECT_SRCS"
|
|
|
|
EVENT_MODULES="$EVENT_MODULES $SELECT_MODULE"
|
|
|
|
fi
|
|
|
|
|
2004-03-04 15:04:55 +08:00
|
|
|
have=HAVE_AIO . auto/have
|
|
|
|
have=HAVE_IOCP . auto/have
|
2003-11-26 04:44:56 +08:00
|
|
|
CORE_LIBS="$CORE_LIBS ws2_32.lib"
|
|
|
|
;;
|
|
|
|
|
|
|
|
esac
|