FreeCalypso > hg > rtp-debug-utils
comparison Makefile @ 10:e686bc92c7d8
revamp for new subdir structure and configure script
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Wed, 15 May 2024 01:44:46 +0000 |
parents | c00510e1ae8b |
children | 8b047c9bfe5f |
comparison
equal
deleted
inserted
replaced
9:c00510e1ae8b | 10:e686bc92c7d8 |
---|---|
1 CC= gcc | 1 SUBDIR= net-traffic pcap-study |
2 CFLAGS= -O2 | |
3 PROGS= rtp-cont-check rtp-g711-extr rtp-gsmfr-dump rtp-gsmfr-extr \ | |
4 rtp-jitter-view rtp-stream-dump rtp-stream-gen rtp-tfo-trace \ | |
5 udp-test-sink | |
6 INSTBIN=/opt/freecalypso/bin | |
7 | 2 |
8 all: ${PROGS} | 3 all: ${SUBDIR} |
9 | 4 |
10 rtp-cont-check: rtp-cont-check.c | 5 ${SUBDIR}: FRC config.defs |
11 ${CC} ${CFLAGS} -o $@ $@.c -lpcap | 6 cd $@; ${MAKE} ${MFLAGS} |
12 | 7 |
13 rtp-g711-extr: rtp-g711-extr.c | 8 config.defs: |
14 ${CC} ${CFLAGS} -o $@ $@.c -lpcap | 9 @echo 'You must run ./configure before make' |
10 @false | |
15 | 11 |
16 rtp-gsmfr-dump: rtp-gsmfr-dump.c | 12 install: FRC |
17 ${CC} ${CFLAGS} -o $@ $@.c -lpcap -lgsmefr -lgsm | 13 for i in ${SUBDIR}; do (cd $$i; ${MAKE} ${MFLAGS} \ |
14 DESTDIR=${DESTDIR} install); done | |
18 | 15 |
19 rtp-gsmfr-extr: rtp-gsmfr-extr.c | 16 clean: FRC |
20 ${CC} ${CFLAGS} -o $@ $@.c -lpcap | 17 rm -f a.out core errs |
18 for i in ${SUBDIR}; do (cd $$i; ${MAKE} ${MFLAGS} clean); done | |
21 | 19 |
22 rtp-jitter-view: rtp-jitter-view.c | 20 FRC: |
23 ${CC} ${CFLAGS} -o $@ $@.c -lpcap | |
24 | |
25 rtp-stream-dump: rtp-stream-dump.c | |
26 ${CC} ${CFLAGS} -o $@ $@.c -lpcap | |
27 | |
28 rtp-stream-gen: rtp-stream-gen.c | |
29 ${CC} ${CFLAGS} -o $@ $@.c | |
30 | |
31 rtp-tfo-trace: rtp-tfo-trace.c | |
32 ${CC} ${CFLAGS} -o $@ $@.c -lpcap | |
33 | |
34 udp-test-sink: udp-test-sink.c | |
35 ${CC} ${CFLAGS} -o $@ $@.c | |
36 | |
37 install: | |
38 mkdir -p ${INSTBIN} | |
39 install -c ${PROGS} ${INSTBIN} | |
40 | |
41 clean: | |
42 rm -f *.o *.out ${PROGS} |