view libgsmhr1/Makefile @ 545:b07dba7b8a4f

doc/EFR-library-API: document RTP input wrapper
author Mychaela Falconia <falcon@freecalypso.org>
date Thu, 03 Oct 2024 09:26:04 +0000
parents 67b13a6a63c9
children
line wrap: on
line source

OBJS=	dhf_packed.o dhf_params.o enc_out_order.o mathdp31.o mathhalf.o \
	pack_frame.o paramval_cod.o paramval_common.o paramval_dec.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}
	ar rcu $@ ${OBJS}
	ranlib $@

install:
#	mkdir -p ${DESTDIR}${includedir}
#	install -c -m 444 tw_gsmhr.h ${DESTDIR}${includedir}
#	mkdir -p ${DESTDIR}${libdir}
#	install -c -m 444 ${LIB} ${DESTDIR}${libdir}

clean:
	rm -f *.[oa] namespace.h dhf_packed.c gen-dhf-pack errs