view libgsmfr2/Makefile @ 262:573afa985df6

libgsmfr2: split pp_state.h from pp_internal.h
author Mychaela Falconia <falcon@freecalypso.org>
date Sat, 13 Apr 2024 00:43:36 +0000
parents cfcb3ce9c778
children ffdcdb27d673
line wrap: on
line source

CC=	gcc
CFLAGS=	-O2
OBJS=	comfort_noise.o pack_frame.o pack_frame2.o pp_bad.o pp_good.o \
	pp_state.o prng.o sidclass.o silence_frame.o unpack_frame.o \
	unpack_frame2.o xmaxc_mean.o
HDRS=	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