changeset 18:39dbaccc349d

pcap/Makefile: add install
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 20 Nov 2022 04:24:25 +0000
parents 68a7e86c9868
children 7960744ba19c
files pcap/Makefile
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/pcap/Makefile	Sun Nov 20 04:23:35 2022 +0000
+++ b/pcap/Makefile	Sun Nov 20 04:24:25 2022 +0000
@@ -1,11 +1,16 @@
 CC=	gcc
 CFLAGS=	-O2
 PROGS=	rtp-gsmfr-extr
+INSTBIN=/opt/freecalypso/bin
 
 all:	${PROGS}
 
 rtp-gsmfr-extr:	rtp-gsmfr-extr.c
 	${CC} ${CFLAGS} -o $@ $@.c -lpcap
 
+install:
+	mkdir -p ${INSTBIN}
+	install -c ${PROGS} ${INSTBIN}
+
 clean:
 	rm -f *.o *.out ${PROGS}