comparison pcap/Makefile @ 18:39dbaccc349d

pcap/Makefile: add install
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 20 Nov 2022 04:24:25 +0000
parents 851ca64e38e9
children b9af126bfddb
comparison
equal deleted inserted replaced
17:68a7e86c9868 18:39dbaccc349d
1 CC= gcc 1 CC= gcc
2 CFLAGS= -O2 2 CFLAGS= -O2
3 PROGS= rtp-gsmfr-extr 3 PROGS= rtp-gsmfr-extr
4 INSTBIN=/opt/freecalypso/bin
4 5
5 all: ${PROGS} 6 all: ${PROGS}
6 7
7 rtp-gsmfr-extr: rtp-gsmfr-extr.c 8 rtp-gsmfr-extr: rtp-gsmfr-extr.c
8 ${CC} ${CFLAGS} -o $@ $@.c -lpcap 9 ${CC} ${CFLAGS} -o $@ $@.c -lpcap
9 10
11 install:
12 mkdir -p ${INSTBIN}
13 install -c ${PROGS} ${INSTBIN}
14
10 clean: 15 clean:
11 rm -f *.o *.out ${PROGS} 16 rm -f *.o *.out ${PROGS}