view libgsmfr2/Makefile @ 256:a33edf624061

libgsmfr2: start with API definition and port of libgsmfrp code
author Mychaela Falconia <falcon@freecalypso.org>
date Fri, 12 Apr 2024 20:49:53 +0000
parents libgsmfrp/Makefile@6ac547f0b903
children c344b4f35eb7
line wrap: on
line source

CC=	gcc
CFLAGS=	-O2
OBJS=	comfort_noise.o pp_bad.o pp_good.o pp_state.o prng.o sidclass.o \
	silence_frame.o xmaxc_mean.o
HDRS=	pp_internal.h tw_gsmfr.h
LIB=	libgsmfr2.a

INSTALL_PREFIX=	/usr/local

all:	${LIB}

${OBJS}:	${HDRS}

${LIB}:	${OBJS}
	ar rcu $@ ${OBJS}
	ranlib $@

install:
	mkdir -p ${INSTALL_PREFIX}/include
	install -c -m 444 tw_gsmfr.h ${INSTALL_PREFIX}/include
	mkdir -p ${INSTALL_PREFIX}/lib
	install -c -m 444 ${LIB} ${INSTALL_PREFIX}/lib

clean:
	rm -f *.[oa] errs