comparison 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
comparison
equal deleted inserted replaced
19:7960744ba19c 20:93ed41fb4038
1 CC= gcc 1 CC= gcc
2 CFLAGS= -O2 2 CFLAGS= -O2
3 OBJS= bad_frame.o comfort_noise.o good_frame.o sidclass.o silence_frame.o \ 3 OBJS= bad_frame.o comfort_noise.o good_frame.o sidclass.o silence_frame.o \
4 state.o 4 state.o
5 LIB= libgsmfrp.a 5 LIB= libgsmfrp.a
6
7 INSTALL_PREFIX= /usr/local
6 8
7 all: ${LIB} 9 all: ${LIB}
8 10
9 ${LIB}: ${OBJS} 11 ${LIB}: ${OBJS}
10 ar rcu $@ ${OBJS} 12 ar rcu $@ ${OBJS}
11 ranlib $@ 13 ranlib $@
12 14
15 install:
16 mkdir -p ${INSTALL_PREFIX}/include
17 install -c gsm_fr_preproc.h ${INSTALL_PREFIX}/include
18 mkdir -p ${INSTALL_PREFIX}/lib
19 install -c ${LIB} ${INSTALL_PREFIX}/lib
20
13 clean: 21 clean:
14 rm -f *.[oa] errs 22 rm -f *.[oa] errs