etisserant@41: #!/bin/bash
etisserant@41: 
etisserant@44: STFILE=$1
etisserant@44: 
etisserant@44: shift
etisserant@44: 
etisserant@43: CFLAGS=$*
etisserant@41: 
etisserant@55: 
etisserant@55: CC=gcc
etisserant@55: #CC=i686-mingw32-gcc
etisserant@55: 
etisserant@132: ../iec2c $STFILE -I ../lib 
etisserant@43: #2>/dev/null
etisserant@41: 
etisserant@55: $CC -I ../lib -c STD_RESSOURCE.c $CFLAGS
etisserant@41: 
etisserant@55: $CC -I ../lib -c  STD_CONF.c $CFLAGS
etisserant@43: 
etisserant@57: $CC -I ../lib -c  plc.c $CFLAGS
etisserant@57: 
etisserant@57: $CC -I ../lib main.c STD_CONF.o STD_RESSOURCE.o plc.o $CFLAGS -l rt -o test