diff gsm-fw/serial/Makefile @ 852:fc713944bd1c

gsm-fw: uartfax.c included in the build with feature at-modem
author Space Falcon <falcon@ivan.Harhan.ORG>
date Sun, 26 Apr 2015 03:06:32 +0000
parents afceeeb2cba1
children
line wrap: on
line diff
--- a/gsm-fw/serial/Makefile	Sun Apr 26 01:27:29 2015 +0000
+++ b/gsm-fw/serial/Makefile	Sun Apr 26 03:06:32 2015 +0000
@@ -2,7 +2,12 @@
 CFLAGS=	-O2 -fno-builtin -mthumb-interwork -mthumb
 LD=	arm-elf-ld
 
+sinclude ../include/config.mk
+
 OBJS=	debug.o init.o serialswitch.o uart.o
+ifeq (${CONFIG_FDMODEM},1)
+OBJS+=	uartfax.o
+endif
 
 HDRS=	faxdata.h serialswitch.h traceswitch.h uart.h uartfax.h