diff libgsmhr1/Makefile @ 511:a5d61331b675

libgsmhr1: generate packed version of DHF
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 25 Aug 2024 02:50:43 +0000
parents 5bf71b091323
children 4f0ab833bec0
line wrap: on
line diff
--- a/libgsmhr1/Makefile	Sun Aug 25 02:19:37 2024 +0000
+++ b/libgsmhr1/Makefile	Sun Aug 25 02:50:43 2024 +0000
@@ -1,17 +1,25 @@
-OBJS=	dhf_params.o enc_out_order.o mathdp31.o mathhalf.o pack_frame.o \
-	rtp_in.o rtp_in_direct.o sid_detect.o sid_reset.o sp_rom.o twts002_in.o\
-	twts002_out.o unpack_frame.o
+OBJS=	dhf_packed.o dhf_params.o enc_out_order.o mathdp31.o mathhalf.o \
+	pack_frame.o rtp_in.o rtp_in_direct.o sid_detect.o sid_reset.o sp_rom.o\
+	twts002_in.o twts002_out.o unpack_frame.o
 HDRS=	enc_out_order.h mathdp31.h mathhalf.h namespace.h sp_rom.h tw_gsmhr.h \
 	typedefs.h
 LIB=	libgsmhr1.a
 
 include ../config.defs
 
+DHF_PACK_OBJS=	gen-dhf-pack.o dhf_params.o pack_frame.o
+
 all:	${LIB}
 
 namespace.h:	namespace.awk namespace.list
 	awk -f namespace.awk namespace.list > $@
 
+gen-dhf-pack:	${DHF_PACK_OBJS}
+	${CC} ${CFLAGS} -o $@ ${DHF_PACK_OBJS}
+
+dhf_packed.c:	gen-dhf-pack
+	./gen-dhf-pack > $@
+
 ${OBJS}:	${HDRS}
 
 ${LIB}:	${OBJS}
@@ -25,4 +33,4 @@
 #	install -c -m 444 ${LIB} ${DESTDIR}${libdir}
 
 clean:
-	rm -f *.[oa] namespace.h errs
+	rm -f *.[oa] namespace.h dhf_packed.c gen-dhf-pack errs