diff 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 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