view libgsmfrp/Makefile @ 20:93ed41fb4038

libgsmfrp/Makefile: add install
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 20 Nov 2022 06:36:09 +0000
parents b2255a5d0519
children 3db7af1249cb
line wrap: on
line source

CC=	gcc
CFLAGS=	-O2
OBJS=	bad_frame.o comfort_noise.o good_frame.o sidclass.o silence_frame.o \
	state.o
LIB=	libgsmfrp.a

INSTALL_PREFIX=	/usr/local

all:	${LIB}

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

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

clean:
	rm -f *.[oa] errs