comparison 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
comparison
equal deleted inserted replaced
510:5bf71b091323 511:a5d61331b675
1 OBJS= dhf_params.o enc_out_order.o mathdp31.o mathhalf.o pack_frame.o \ 1 OBJS= dhf_packed.o dhf_params.o enc_out_order.o mathdp31.o mathhalf.o \
2 rtp_in.o rtp_in_direct.o sid_detect.o sid_reset.o sp_rom.o twts002_in.o\ 2 pack_frame.o rtp_in.o rtp_in_direct.o sid_detect.o sid_reset.o sp_rom.o\
3 twts002_out.o unpack_frame.o 3 twts002_in.o twts002_out.o unpack_frame.o
4 HDRS= enc_out_order.h mathdp31.h mathhalf.h namespace.h sp_rom.h tw_gsmhr.h \ 4 HDRS= enc_out_order.h mathdp31.h mathhalf.h namespace.h sp_rom.h tw_gsmhr.h \
5 typedefs.h 5 typedefs.h
6 LIB= libgsmhr1.a 6 LIB= libgsmhr1.a
7 7
8 include ../config.defs 8 include ../config.defs
9 9
10 DHF_PACK_OBJS= gen-dhf-pack.o dhf_params.o pack_frame.o
11
10 all: ${LIB} 12 all: ${LIB}
11 13
12 namespace.h: namespace.awk namespace.list 14 namespace.h: namespace.awk namespace.list
13 awk -f namespace.awk namespace.list > $@ 15 awk -f namespace.awk namespace.list > $@
16
17 gen-dhf-pack: ${DHF_PACK_OBJS}
18 ${CC} ${CFLAGS} -o $@ ${DHF_PACK_OBJS}
19
20 dhf_packed.c: gen-dhf-pack
21 ./gen-dhf-pack > $@
14 22
15 ${OBJS}: ${HDRS} 23 ${OBJS}: ${HDRS}
16 24
17 ${LIB}: ${OBJS} 25 ${LIB}: ${OBJS}
18 ar rcu $@ ${OBJS} 26 ar rcu $@ ${OBJS}
23 # install -c -m 444 tw_gsmhr.h ${DESTDIR}${includedir} 31 # install -c -m 444 tw_gsmhr.h ${DESTDIR}${includedir}
24 # mkdir -p ${DESTDIR}${libdir} 32 # mkdir -p ${DESTDIR}${libdir}
25 # install -c -m 444 ${LIB} ${DESTDIR}${libdir} 33 # install -c -m 444 ${LIB} ${DESTDIR}${libdir}
26 34
27 clean: 35 clean:
28 rm -f *.[oa] namespace.h errs 36 rm -f *.[oa] namespace.h dhf_packed.c gen-dhf-pack errs