tests/build.sh
author Mario de Sousa <msousa@fe.up.pt>
Mon, 04 Apr 2011 15:22:42 +0100
changeset 275 af3d0e3ac65d
parent 132 39f88c3d803d
child 279 c0453b7f99df
permissions -rwxr-xr-x
Leave standard function names hardcoded, as these are considered keywords even though
they may not be implemented in the library.
#!/bin/bash

STFILE=$1

shift

CFLAGS=$*


CC=gcc
#CC=i686-mingw32-gcc

../iec2c $STFILE -I ../lib 
#2>/dev/null

$CC -I ../lib -c STD_RESSOURCE.c $CFLAGS

$CC -I ../lib -c  STD_CONF.c $CFLAGS

$CC -I ../lib -c  plc.c $CFLAGS

$CC -I ../lib main.c STD_CONF.o STD_RESSOURCE.o plc.o $CFLAGS -l rt -o test