view libgsmfr2/Makefile @ 274:52c667f17d2c

libgsmfr2: implement gsmfr_0610_encode_frame() wrapper
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 14 Apr 2024 02:57:18 +0000
parents 0be493a1e0d6
children 5fbb323b2978
line wrap: on
line source

CC=	gcc
CFLAGS=	-O2
OBJS=	add.o comfort_noise.o dec_main.o dec_wrap.o ed_state.o enc_main.o \
	enc_wrap.o long_term.o lpc.o pack_frame.o pack_frame2.o pp_bad.o \
	pp_good.o pp_state.o preprocess.o prng.o rpe.o short_term.o sidclass.o \
	silence_frame.o table.o unpack_frame.o unpack_frame2.o xmaxc_mean.o
HDRS=	ed_internal.h ed_state.h pp_internal.h pp_state.h tw_gsmfr.h typedef.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