FreeCalypso > hg > fc-selenite
comparison components/main @ 50:a9a7d531e673
components: initial support for gcc
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Thu, 19 Jul 2018 19:23:19 +0000 |
parents | b6c8dd9a1b02 |
children | 1eb391057168 |
comparison
equal
deleted
inserted
replaced
49:19f5e7133949 | 50:a9a7d531e673 |
---|---|
1 # Building main.lib with recompilation of the init module | 1 # Building main.lib with recompilation of the init module |
2 | 2 |
3 # C modules | 3 # C modules |
4 | 4 |
5 CFLAGS="-mn -mt -o -x -mw -me -pw2" | 5 CFLAGS="-mn -mt -o -x -mw -me -pw2" |
6 CFLAGS_gcc="-O2 -fno-builtin -mthumb-interwork -mthumb" | |
6 CPPFLAGS="-DTOOL_CHOICE=0 -D_TMS470" | 7 CPPFLAGS="-DTOOL_CHOICE=0 -D_TMS470" |
7 | 8 |
8 if [ "$TARGET" = c139 -o "$TARGET" = c11x ] | 9 if [ "$TARGET" = c139 -o "$TARGET" = c11x ] |
9 then | 10 then |
10 CPPFLAGS="$CPPFLAGS -DCONFIG_RVTMUX_ON_MODEM" | 11 CPPFLAGS="$CPPFLAGS -DCONFIG_RVTMUX_ON_MODEM" |
55 c_file $SRCDIR/init.c | 56 c_file $SRCDIR/init.c |
56 c_file $SRCDIR/create_RVtasks.c | 57 c_file $SRCDIR/create_RVtasks.c |
57 c_file $SRCDIR/main.c | 58 c_file $SRCDIR/main.c |
58 c_file $SRCDIR/sys_dummy.c | 59 c_file $SRCDIR/sys_dummy.c |
59 | 60 |
61 # mem_load.c and int.s are for the TMS470 version only | |
62 | |
63 if [ "$COMPILER" = tms470 ] | |
64 then | |
65 | |
60 # Different CFLAGS for mem_load.c | 66 # Different CFLAGS for mem_load.c |
61 | 67 |
62 CFLAGS="-o -mw -me -pw2" | 68 CFLAGS="-o -mw -me -pw2" |
63 | 69 |
64 c_file $SRCDIR/mem_load.c | 70 c_file $SRCDIR/mem_load.c |
77 ASMFLAGS="$ASMFLAGS -dL1_GPRS=$GPRS" | 83 ASMFLAGS="$ASMFLAGS -dL1_GPRS=$GPRS" |
78 ASMFLAGS="$ASMFLAGS -dOP_WCP=0" | 84 ASMFLAGS="$ASMFLAGS -dOP_WCP=0" |
79 ASMFLAGS="$ASMFLAGS -dWCP_PROF=0" | 85 ASMFLAGS="$ASMFLAGS -dWCP_PROF=0" |
80 | 86 |
81 asm_file $SRCDIR/int.s | 87 asm_file $SRCDIR/int.s |
88 | |
89 fi |