Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

executable file 59 lines (42 sloc) 1.838 kB
#! /bin/bash
#use --variant=release to build a release version
#There are lots of options passed to the compiler here, so I'll disect a couple
#-Ideps means we can use library notation for everything in the deps directory which cleans up the code a head
#-D_XOPEN_SOURCE=700 tells us we are using the 2008 POSIX standard which a few functions need
#-D_BSD_SOURCE tells us we can use some BSD specific functions
#-Werror -Wall -Wextra -pedantic treats all warnings as errors and is very picky about them
#-Wno-missing-field-initializers in my opinion this is more often than not a spurious error.
# see http://gcc.gnu.org/ml/gcc-bugs/1998-07/msg00031.html
# http://gcc.gnu.org/ml/gcc-bugs/1998-07/msg00059.html
# http://gcc.gnu.org/ml/gcc-bugs/1998-07/msg00128.html
#-std=c11 We use anonymous unions, anonymous structures and alligned_alloc
#set -x
INCLUDES="-Ideps -Isrc"
#CFLAGS="-D_GNU_SOURCE -D_XOPEN_SOURCE=700 -D_BSD_SOURCE -std=c11 -Werror -Wall -Wextra -pedantic -Wno-missing-field-initializers"
CFLAGS="-std=c11 -Werror -Wall -Wextra -pedantic -Wno-missing-field-initializers -ggdb"
LINKFLAGS="-Ideps/chaste"
SRC=src/camio.c
#TESTS="--begintests tests/camio_udp_test.c --endtests"
#cake $SRC\
# --variant=release\
# --append-CFLAGS="$INCLUDES $CFLAGS"\
# --LINKFLAGS="$LINKFLAGS"\
# --static-library\
# $@
#SRC=tests/camio_udp_test.c
#cake $SRC\
# --append-CFLAGS="$INCLUDES $CFLAGS"\
# --LINKFLAGS="$LINKFLAGS"\
# $TESTS
#cake tools/camio_cat.c \
# --append-CFLAGS="$INCLUDES $CFLAGS"\
# --append-LINKFLAGS="$LINKFLAGS"\
# $@
cake tools/camio_perf/camio_perf.c \
--append-CFLAGS="$INCLUDES $CFLAGS"\
--append-LINKFLAGS="$LINKFLAGS"\
$@
#cake tools/camio_wc.c \
# --append-CFLAGS="$INCLUDES $CFLAGS"\
# --append-LINKFLAGS="$LINKFLAGS"\
# $@
Jump to Line
Something went wrong with that request. Please try again.