changeset 20:93ed41fb4038

libgsmfrp/Makefile: add install
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 20 Nov 2022 06:36:09 +0000
parents 7960744ba19c
children b82ac486c1d7
files libgsmfrp/Makefile
diffstat 1 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libgsmfrp/Makefile	Sun Nov 20 06:11:16 2022 +0000
+++ b/libgsmfrp/Makefile	Sun Nov 20 06:36:09 2022 +0000
@@ -4,11 +4,19 @@
 	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