changeset 657:e40935b81113

ccddata compiles with cdginc-conservative; libccd.a built
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Thu, 25 Sep 2014 10:12:21 +0000
parents 9ba088a875bd
children 46e5c90fd0b8
files gsm-fw/ccd/Makefile gsm-fw/cdginc
diffstat 2 files changed, 17 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/gsm-fw/ccd/Makefile	Thu Sep 25 10:00:35 2014 +0000
+++ b/gsm-fw/ccd/Makefile	Thu Sep 25 10:12:21 2014 +0000
@@ -1,6 +1,11 @@
 CC=	arm-elf-gcc
+AR=	arm-elf-ar
+RANLIB=	arm-elf-ranlib
+
 CFLAGS=	-O2 -fno-builtin -mthumb-interwork -mthumb
-CPPFLAGS=-I../gpf/inc -DM_INTEL -DSHARED_VSI -DSHARED_CCD -DERR_TRACE_CCD
+INCPATH=-I../gpf/inc -I../cdginc
+DEFS=	-DM_INTEL -DSHARED_VSI -DSHARED_CCD -DERR_TRACE_CCD
+CPPFLAGS=${INCPATH} ${DEFS}
 
 CCD_OBJS=	ccd.o bitfun.o cdc_std.o cdc_com.o ccd_err.o ccd_store.o \
 		gsm1_tv.o gsm1_v.o gsm2_t.o gsm3_tv.o gsm3_v.o gsm4_lv.o \
@@ -19,7 +24,16 @@
 		csn1_choice_1.o csn1_choice_2.o csn1_choice_x.o \
 		csn1_sh_opt.o csn1_s1_opt.o csn1_s0_opt.o
 
-all:	${CCD_OBJS}
+CCDDATA_OBJS=	ccd_config.o ccddata_ccd.o ccddata_ccdent.o ccddata_ccdmtab.o \
+		ccddata_cdemval.o ccddata_mconst.o
+
+ALL_OBJS=	${CCD_OBJS} ${CCDDATA_OBJS}
+
+all:	libccd.a
+
+libccd.a:	${ALL_OBJS}
+	${AR} cru $@ ${ALL_OBJS}
+	${RANLIB} $@
 
 clean:
 	rm -f *.[oa] *errs
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/gsm-fw/cdginc	Thu Sep 25 10:12:21 2014 +0000
@@ -0,0 +1,1 @@
+cdg/cdginc-conservative
\ No newline at end of file