9
#CFLAGS="-Wall -Wextra -Werror -Wcomment -Wpointer-arith -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wdeclaration-after-statement -Wshadow -O2"
10
CFLAGS="-Wall -Werror -Wcomment -Wpointer-arith -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wshadow -O2"
11
if [ "$1" = "HEIMDAL" ]; then
12
DEFINE="-DHEIMDAL -D__LITTLE_ENDIAN__"
13
INCLUDE="-I/usr/include/heimdal -Ispnegohelp"
14
LIBS="-lgssapi -lkrb5 -lcom_err -lasn1 -lroken"
16
if [ "$1" = "SOLARIS" ]; then
20
DEFINE="-D__BIG_ENDIAN__ -DSOLARIS_11"
21
INCLUDE="-Ispnegohelp -Iinclude -Iinclude/kerberosv5"
22
LIBS="-R/usr/lib/gss -L/usr/lib/gss -lgss /usr/lib/gss/mech_krb5.so -lsocket"
25
DEFINE="-D__LITTLE_ENDIAN__"
27
LIBS="-lgssapi_krb5 -lkrb5 -lcom_err"
30
SPNEGO="spnegohelp/derparse.c spnegohelp/spnego.c spnegohelp/spnegohelp.c spnegohelp/spnegoparse.c"
31
SOURCE="squid_kerb_auth.c base64.c"
32
$CC -g $CFLAGS -o squid_kerb_auth $DEFINE $INCLUDE $SOURCE $SPNEGO $LIBS