diff components/l1_int @ 303:129a4f99511a

compile L1_GPRS modules from source
author Mychaela Falconia <falcon@freecalypso.org>
date Tue, 31 Oct 2017 05:05:19 +0000
parents 53b797cd3c12
children cc0426509943
line wrap: on
line diff
--- a/components/l1_int	Tue Oct 31 03:42:35 2017 +0000
+++ b/components/l1_int	Tue Oct 31 05:05:19 2017 +0000
@@ -16,6 +16,21 @@
 	>> $BUILD_DIR/$LIBNAME/Makefile
 echo >> $BUILD_DIR/$LIBNAME/Makefile
 
+if [ "$GPRS" = 1 ]
+then
+	helpers/makeline dep l1p_cmpl_intram.c $SRCDIR/p_cfile/l1p_cmpl.c \
+		>> $BUILD_DIR/$LIBNAME/Makefile
+	helpers/makeline cmd sed -n -f $SRCDIR/tools/intram.sed '$<' '>' '$@' \
+		>> $BUILD_DIR/$LIBNAME/Makefile
+	echo >> $BUILD_DIR/$LIBNAME/Makefile
+
+	helpers/makeline dep l1p_sync_intram.c $SRCDIR/p_cfile/l1p_sync.c \
+		>> $BUILD_DIR/$LIBNAME/Makefile
+	helpers/makeline cmd sed -n -f $SRCDIR/tools/intram.sed '$<' '>' '$@' \
+		>> $BUILD_DIR/$LIBNAME/Makefile
+	echo >> $BUILD_DIR/$LIBNAME/Makefile
+fi
+
 # Compilation
 
 CFLAGS="-g -me -pw2 -mt -o -mw"
@@ -81,10 +96,10 @@
 
 if [ "$GPRS" = 1 ]
 then
-	OBJS="$OBJS ../../blobs/obj/l1_int/l1p_ctl.obj"
-	OBJS="$OBJS ../../blobs/obj/l1_int/l1p_func.obj"
-	OBJS="$OBJS ../../blobs/obj/l1_int/l1p_driv.obj"
-	OBJS="$OBJS ../../blobs/obj/l1_int/macs.obj"
+	cfile_plain $SRCDIR/p_cfile/l1p_ctl.c
+	cfile_plain $SRCDIR/p_cfile/l1p_func.c
+	cfile_plain $SRCDIR/p_cfile/l1p_driv.c
+	cfile_plain $SRCDIR/cmacs/macs.c
 fi
 
 cfile_plain l1_cmplx_intram.c
@@ -92,6 +107,6 @@
 
 if [ "$GPRS" = 1 ]
 then
-	OBJS="$OBJS ../../blobs/obj/l1_int/l1p_cmpl_intram.obj"
-	OBJS="$OBJS ../../blobs/obj/l1_int/l1p_sync_intram.obj"
+	cfile_plain l1p_cmpl_intram.c
+	cfile_plain l1p_sync_intram.c
 fi