tests/build.sh
author Mario de Sousa <msousa@fe.up.pt>
Mon, 04 Apr 2011 10:48:30 +0100
changeset 268 1eba01e3fb70
parent 132 39f88c3d803d
child 279 c0453b7f99df
permissions -rwxr-xr-x
Adding Makefile for Darwin (thanks go to Manuele)
41
8998c8b24b60 First working IEC std lib test, actually test from string and to_string functions.
etisserant
parents:
diff changeset
     1
#!/bin/bash
8998c8b24b60 First working IEC std lib test, actually test from string and to_string functions.
etisserant
parents:
diff changeset
     2
44
3fb449ba9a72 Tests and various fixes
etisserant
parents: 43
diff changeset
     3
STFILE=$1
3fb449ba9a72 Tests and various fixes
etisserant
parents: 43
diff changeset
     4
3fb449ba9a72 Tests and various fixes
etisserant
parents: 43
diff changeset
     5
shift
3fb449ba9a72 Tests and various fixes
etisserant
parents: 43
diff changeset
     6
43
37dd4e2fd2ec Test IEC_LIB and fix bugs (EQ, GT et all)
etisserant
parents: 41
diff changeset
     7
CFLAGS=$*
41
8998c8b24b60 First working IEC std lib test, actually test from string and to_string functions.
etisserant
parents:
diff changeset
     8
55
8b7a21820737 Started support for long long (LL suffix) 64 bit literals on 32 bit platforms (unfinished)
etisserant
parents: 44
diff changeset
     9
8b7a21820737 Started support for long long (LL suffix) 64 bit literals on 32 bit platforms (unfinished)
etisserant
parents: 44
diff changeset
    10
CC=gcc
8b7a21820737 Started support for long long (LL suffix) 64 bit literals on 32 bit platforms (unfinished)
etisserant
parents: 44
diff changeset
    11
#CC=i686-mingw32-gcc
8b7a21820737 Started support for long long (LL suffix) 64 bit literals on 32 bit platforms (unfinished)
etisserant
parents: 44
diff changeset
    12
132
39f88c3d803d Updated tests so that they compile again :-)
etisserant
parents: 57
diff changeset
    13
../iec2c $STFILE -I ../lib 
43
37dd4e2fd2ec Test IEC_LIB and fix bugs (EQ, GT et all)
etisserant
parents: 41
diff changeset
    14
#2>/dev/null
41
8998c8b24b60 First working IEC std lib test, actually test from string and to_string functions.
etisserant
parents:
diff changeset
    15
55
8b7a21820737 Started support for long long (LL suffix) 64 bit literals on 32 bit platforms (unfinished)
etisserant
parents: 44
diff changeset
    16
$CC -I ../lib -c STD_RESSOURCE.c $CFLAGS
41
8998c8b24b60 First working IEC std lib test, actually test from string and to_string functions.
etisserant
parents:
diff changeset
    17
55
8b7a21820737 Started support for long long (LL suffix) 64 bit literals on 32 bit platforms (unfinished)
etisserant
parents: 44
diff changeset
    18
$CC -I ../lib -c  STD_CONF.c $CFLAGS
43
37dd4e2fd2ec Test IEC_LIB and fix bugs (EQ, GT et all)
etisserant
parents: 41
diff changeset
    19
57
db9cadaab2ea Now generated SoftPLC compiles with mingw32 and run windows.
etisserant
parents: 55
diff changeset
    20
$CC -I ../lib -c  plc.c $CFLAGS
db9cadaab2ea Now generated SoftPLC compiles with mingw32 and run windows.
etisserant
parents: 55
diff changeset
    21
db9cadaab2ea Now generated SoftPLC compiles with mingw32 and run windows.
etisserant
parents: 55
diff changeset
    22
$CC -I ../lib main.c STD_CONF.o STD_RESSOURCE.o plc.o $CFLAGS -l rt -o test