diff gsm-fw/gpf/osl/Makefile @ 343:e3a2e6e875de

OSL reconstruction: beginning of os_pro_ir.c
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Sat, 03 May 2014 17:46:36 +0000
parents 42bc1d7068ac
children fdeea3d6582d
line wrap: on
line diff
--- a/gsm-fw/gpf/osl/Makefile	Sat May 03 12:29:49 2014 +0000
+++ b/gsm-fw/gpf/osl/Makefile	Sat May 03 17:46:36 2014 +0000
@@ -1,10 +1,18 @@
 CC=	arm-elf-gcc
-CFLAGS=	-O2 -fno-builtin -mthumb-interwork -mthumb
-CPPFLAGS=-I../inc -DRUN_FLASH
+COPTS=	-O2 -fno-builtin -mthumb-interwork -I../inc
+IOPTS=	-DRUN_INT_RAM
+XOPTS=	-DRUN_FLASH -mthumb
 
+IOBJS=	os_pro_ir.o
 XOBJS=	os_pro_fl.o
 
-all:	${XOBJS}
+all:	${IOBJS} ${XOBJS}
+
+${IOBJS}:	%.o : %.c
+	${CC} ${COPTS} ${IOPTS} -c $<
+
+${XOBJS}:	%.o : %.c
+	${CC} ${COPTS} ${XOPTS} -c $<
 
 clean:
 	rm -f *.[oa] *errs