diff 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
line wrap: on
line diff
--- a/components/main	Thu Jul 19 03:09:24 2018 +0000
+++ b/components/main	Thu Jul 19 19:23:19 2018 +0000
@@ -3,6 +3,7 @@
 # C modules
 
 CFLAGS="-mn -mt -o -x -mw -me -pw2"
+CFLAGS_gcc="-O2 -fno-builtin -mthumb-interwork -mthumb"
 CPPFLAGS="-DTOOL_CHOICE=0 -D_TMS470"
 
 if [ "$TARGET" = c139 -o "$TARGET" = c11x ]
@@ -57,6 +58,11 @@
 c_file $SRCDIR/main.c
 c_file $SRCDIR/sys_dummy.c
 
+# mem_load.c and int.s are for the TMS470 version only
+
+if [ "$COMPILER" = tms470 ]
+then
+
 # Different CFLAGS for mem_load.c
 
 CFLAGS="-o -mw -me -pw2"
@@ -79,3 +85,5 @@
 ASMFLAGS="$ASMFLAGS -dWCP_PROF=0"
 
 asm_file $SRCDIR/int.s
+
+fi