author | lbessard |
Mon, 19 May 2008 14:07:31 +0200 | |
changeset 121 | 9e8ce092e169 |
parent 57 | db9cadaab2ea |
child 132 | 39f88c3d803d |
permissions | -rwxr-xr-x |
57
db9cadaab2ea
Now generated SoftPLC compiles with mingw32 and run windows.
etisserant
parents:
diff
changeset
|
1 |
#!/bin/bash |
db9cadaab2ea
Now generated SoftPLC compiles with mingw32 and run windows.
etisserant
parents:
diff
changeset
|
2 |
|
db9cadaab2ea
Now generated SoftPLC compiles with mingw32 and run windows.
etisserant
parents:
diff
changeset
|
3 |
STFILE=$1 |
db9cadaab2ea
Now generated SoftPLC compiles with mingw32 and run windows.
etisserant
parents:
diff
changeset
|
4 |
|
db9cadaab2ea
Now generated SoftPLC compiles with mingw32 and run windows.
etisserant
parents:
diff
changeset
|
5 |
shift |
db9cadaab2ea
Now generated SoftPLC compiles with mingw32 and run windows.
etisserant
parents:
diff
changeset
|
6 |
|
db9cadaab2ea
Now generated SoftPLC compiles with mingw32 and run windows.
etisserant
parents:
diff
changeset
|
7 |
CFLAGS=$* |
db9cadaab2ea
Now generated SoftPLC compiles with mingw32 and run windows.
etisserant
parents:
diff
changeset
|
8 |
|
db9cadaab2ea
Now generated SoftPLC compiles with mingw32 and run windows.
etisserant
parents:
diff
changeset
|
9 |
|
db9cadaab2ea
Now generated SoftPLC compiles with mingw32 and run windows.
etisserant
parents:
diff
changeset
|
10 |
#CC=gcc |
db9cadaab2ea
Now generated SoftPLC compiles with mingw32 and run windows.
etisserant
parents:
diff
changeset
|
11 |
CC=i686-mingw32-gcc |
db9cadaab2ea
Now generated SoftPLC compiles with mingw32 and run windows.
etisserant
parents:
diff
changeset
|
12 |
|
db9cadaab2ea
Now generated SoftPLC compiles with mingw32 and run windows.
etisserant
parents:
diff
changeset
|
13 |
../iec2cc $STFILE -I ../lib |
db9cadaab2ea
Now generated SoftPLC compiles with mingw32 and run windows.
etisserant
parents:
diff
changeset
|
14 |
#2>/dev/null |
db9cadaab2ea
Now generated SoftPLC compiles with mingw32 and run windows.
etisserant
parents:
diff
changeset
|
15 |
|
db9cadaab2ea
Now generated SoftPLC compiles with mingw32 and run windows.
etisserant
parents:
diff
changeset
|
16 |
$CC -I ../lib -c STD_RESSOURCE.c $CFLAGS |
db9cadaab2ea
Now generated SoftPLC compiles with mingw32 and run windows.
etisserant
parents:
diff
changeset
|
17 |
|
db9cadaab2ea
Now generated SoftPLC compiles with mingw32 and run windows.
etisserant
parents:
diff
changeset
|
18 |
$CC -I ../lib -c STD_CONF.c $CFLAGS |
db9cadaab2ea
Now generated SoftPLC compiles with mingw32 and run windows.
etisserant
parents:
diff
changeset
|
19 |
|
db9cadaab2ea
Now generated SoftPLC compiles with mingw32 and run windows.
etisserant
parents:
diff
changeset
|
20 |
$CC -I ../lib -c plc.c $CFLAGS |
db9cadaab2ea
Now generated SoftPLC compiles with mingw32 and run windows.
etisserant
parents:
diff
changeset
|
21 |
|
db9cadaab2ea
Now generated SoftPLC compiles with mingw32 and run windows.
etisserant
parents:
diff
changeset
|
22 |
$CC -I ../lib main.c STD_CONF.o STD_RESSOURCE.o plc.o $CFLAGS -o test.exe |