diff gsm-fw/bsp/Makefile @ 644:1199cdf99c32

SIM integration: sim32.c compiles
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Wed, 03 Sep 2014 20:29:54 +0000
parents 8be182dd9218
children 2768b4339275
line wrap: on
line diff
--- a/gsm-fw/bsp/Makefile	Wed Sep 03 17:50:06 2014 +0000
+++ b/gsm-fw/bsp/Makefile	Wed Sep 03 20:29:54 2014 +0000
@@ -3,9 +3,15 @@
 ASFLAGS=-mthumb-interwork
 LD=	arm-elf-ld
 
+sinclude ../include/config.mk
+
 IOBJS=	irq_twiddle.o niq32.o
+XTOBJS=	armio.o clkm.o init_target.o inth.o niq.o timer.o timer1.o timer2.o
 
-XTOBJS=	armio.o clkm.o init_target.o inth.o niq.o timer.o timer1.o timer2.o
+ifeq (${CONFIG_INCLUDE_SIM},1)
+XTOBJS+=sim.o
+IOBJS+=	sim32.o
+endif
 
 XOBJS=	${XTOBJS} oldint.o
 AOBJS=	${IOBJS} oldint.o