2008-07-12 16:42:19 +04:00
|
|
|
#!/bin/sh
|
|
|
|
|
2009-01-25 19:28:17 +03:00
|
|
|
case $2 in
|
2008-07-12 16:42:19 +04:00
|
|
|
link)
|
|
|
|
|
2009-01-25 19:28:17 +03:00
|
|
|
case $1 in
|
2008-07-12 16:42:19 +04:00
|
|
|
SunOS | solaris)
|
|
|
|
echo '-lsocket -lnsl';
|
|
|
|
;;
|
2008-08-07 20:53:59 +04:00
|
|
|
BeOS)
|
|
|
|
echo '-lsocket -lbind -lbsd';
|
|
|
|
;;
|
|
|
|
Haiku)
|
|
|
|
echo '-lnetwork';
|
|
|
|
;;
|
2009-01-25 01:19:11 +03:00
|
|
|
windows32)
|
2009-02-22 17:27:10 +03:00
|
|
|
echo '-lws2_32 -liphlpapi';
|
2009-01-25 01:19:11 +03:00
|
|
|
;;
|
2008-07-12 16:42:19 +04:00
|
|
|
esac
|
|
|
|
;;
|
2008-08-07 20:53:59 +04:00
|
|
|
cflags)
|
2009-01-25 19:28:17 +03:00
|
|
|
case $1 in
|
2009-01-25 19:42:28 +03:00
|
|
|
BeOS | windows32)
|
2008-08-07 20:53:59 +04:00
|
|
|
echo '-Dsocklen_t=int';
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
;;
|
2008-07-12 16:42:19 +04:00
|
|
|
*)
|
|
|
|
;;
|
|
|
|
esac
|