[a07c78]: / utils / benchmark / ebizzy-0.2 / configure  Maximize  Restore  History

Download this file

28 lines (19 with data), 447 Bytes

#!/bin/bash

if [ "`uname -s`" != "Linux" ] && [ "`uname -s`" != "SunOS" ]; then
    echo "Only Linux or Solaris supported"
    exit 1
fi

LIBS="-lpthread"
FLAGS=""

if [ "`uname -s`" = "SunOS" ]; then
        LIBS="${LIBS} -lmalloc"
     FLAGS="${FLAGS} -D_solaris"
fi

cat <<EOF > Makefile
all: ebizzy

ebizzy: ebizzy.c
     gcc -Wall -Wshadow ${LIBS} ${FLAGS} -o ebizzy ebizzy.c

clean:
     rm -f ebizzy *~
EOF

echo "Type 'make' to compile"