rename some of the memcpy impls
[rofl0r-memcpy-test.git] / build.sh
blob286b22ad40a442320ce51702741b8b6e11df0538
1 #!/bin/sh
2 if [ -z "$1" ] ; then
3 echo error, pass filename of file containing mymemcpy
4 exit 1
5 fi
7 [ -z "$CC" ] && CC=gcc
8 $CC -c dummyfuncs.c -o dummyfuncs.o
9 $CC -D_GNU_SOURCE -D_BSD_SOURCE -O0 -DFILENAME=\"$1\" -c memcpy_test.c -o memcpy_test.o
10 $CC $OPTS -std=c99 -c "$1" -o mymemcpy.o
11 $CC dummyfuncs.o memcpy_test.o mymemcpy.o -o test