changeset 527:a6ff7b513bcf

gsm-fw/L1/cust0: use -I flags in the Makefile to make C code files less ugly
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Mon, 14 Jul 2014 21:21:07 +0000
parents 80ee7eacdaeb
children 1affe428bf72
files gsm-fw/L1/cust0/Makefile gsm-fw/L1/cust0/ind_os.c gsm-fw/L1/cust0/l1_rf12.c
diffstat 3 files changed, 16 insertions(+), 14 deletions(-) [+]
line wrap: on
line diff
--- a/gsm-fw/L1/cust0/Makefile	Mon Jul 14 20:57:06 2014 +0000
+++ b/gsm-fw/L1/cust0/Makefile	Mon Jul 14 21:21:07 2014 +0000
@@ -1,4 +1,6 @@
 CC=	arm-elf-gcc
+CPPFLAGS=-I../../include -I../include -I../audio_include -I../audio_cust0 \
+	-I../tm_include -I../tm_cust0
 CFLAGS=	-O2 -fno-builtin -mthumb-interwork
 LD=	arm-elf-ld
 
--- a/gsm-fw/L1/cust0/ind_os.c	Mon Jul 14 20:57:06 2014 +0000
+++ b/gsm-fw/L1/cust0/ind_os.c	Mon Jul 14 21:21:07 2014 +0000
@@ -16,10 +16,10 @@
 #include "../../include/sys_types.h"
 #include "ind_os.h"
 
-#include "../include/l1_confg.h"
+#include "l1_confg.h"
 // Layer1 and debug include files.
-#include "../include/l1_types.h"
-#include "../include/l1_const.h"
+#include "l1_types.h"
+#include "l1_const.h"
 
 #if (L1_GTT == 1)
   #include "l1gtt_const.h"
@@ -32,15 +32,15 @@
 //#endif
 
 #if TESTMODE
-  #include "../tm_include/l1tm_defty.h"
+  #include "l1tm_defty.h"
 #endif
 
-#include "../audio_include/l1audio_const.h"
-#include "../audio_cust0/l1audio_cust.h"
-#include "../audio_include/l1audio_defty.h"
-#include "../include/l1_defty.h"
-#include "../include/l1_msgty.h"
-#include "../include/l1_varex.h"
+#include "l1audio_const.h"
+#include "l1audio_cust.h"
+#include "l1audio_defty.h"
+#include "l1_defty.h"
+#include "l1_msgty.h"
+#include "l1_varex.h"
 
 #if (CHIPSET == 2 || CHIPSET == 3 || CHIPSET == 4 || CHIPSET == 5 || CHIPSET == 6 || CHIPSET == 7 || CHIPSET == 8 || CHIPSET == 10 || CHIPSET == 11 || CHIPSET == 12)
   #include "../../bsp/ulpd.h"
--- a/gsm-fw/L1/cust0/l1_rf12.c	Mon Jul 14 20:57:06 2014 +0000
+++ b/gsm-fw/L1/cust0/l1_rf12.c	Mon Jul 14 21:21:07 2014 +0000
@@ -8,10 +8,10 @@
  * Openmoko versions as explained in the comments for each struct.
  */
 
-#include "../../include/config.h"
-#include "../include/l1_confg.h"
-#include "../include/l1_const.h"
-#include "../include/l1_types.h"
+#include "config.h"
+#include "l1_confg.h"
+#include "l1_const.h"
+#include "l1_types.h"
 #include "../../bsp/abb+spi/abb.h"
 #include "l1_rf12.h"