iodine/src/osflags

40 lines
512 B
Text
Raw Normal View History

2008-07-12 15:42:19 +03:00
#!/bin/sh
2009-01-25 18:28:17 +02:00
case $2 in
2008-07-12 15:42:19 +03:00
link)
2009-01-25 18:28:17 +02:00
case $1 in
2008-07-12 15:42:19 +03:00
SunOS | solaris)
echo '-lsocket -lnsl';
;;
BeOS)
echo '-lsocket -lbind -lbsd';
;;
Haiku)
echo '-lnetwork';
;;
windows32)
echo '-lws2_32 -liphlpapi';
;;
Linux)
[ -e /usr/include/selinux/selinux.h ] && echo '-lselinux';
;;
2008-07-12 15:42:19 +03:00
esac
;;
cflags)
2009-01-25 18:28:17 +02:00
case $1 in
windows32)
echo '-DWINVER=0x0501';
;;
BeOS)
echo '-Dsocklen_t=int';
;;
Linux)
[ -e /usr/include/selinux/selinux.h ] && echo '-DHAVE_SETCON';
;;
esac
;;
2008-07-12 15:42:19 +03:00
*)
;;
esac