FreeCalypso > hg > rtp-debug-utils
diff 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 |
line wrap: on
line diff
--- a/Makefile Sun Mar 10 02:27:37 2024 +0000 +++ b/Makefile Wed May 15 01:44:46 2024 +0000 @@ -1,42 +1,20 @@ -CC= gcc -CFLAGS= -O2 -PROGS= rtp-cont-check rtp-g711-extr rtp-gsmfr-dump rtp-gsmfr-extr \ - rtp-jitter-view rtp-stream-dump rtp-stream-gen rtp-tfo-trace \ - udp-test-sink -INSTBIN=/opt/freecalypso/bin - -all: ${PROGS} +SUBDIR= net-traffic pcap-study -rtp-cont-check: rtp-cont-check.c - ${CC} ${CFLAGS} -o $@ $@.c -lpcap - -rtp-g711-extr: rtp-g711-extr.c - ${CC} ${CFLAGS} -o $@ $@.c -lpcap +all: ${SUBDIR} -rtp-gsmfr-dump: rtp-gsmfr-dump.c - ${CC} ${CFLAGS} -o $@ $@.c -lpcap -lgsmefr -lgsm - -rtp-gsmfr-extr: rtp-gsmfr-extr.c - ${CC} ${CFLAGS} -o $@ $@.c -lpcap +${SUBDIR}: FRC config.defs + cd $@; ${MAKE} ${MFLAGS} -rtp-jitter-view: rtp-jitter-view.c - ${CC} ${CFLAGS} -o $@ $@.c -lpcap - -rtp-stream-dump: rtp-stream-dump.c - ${CC} ${CFLAGS} -o $@ $@.c -lpcap - -rtp-stream-gen: rtp-stream-gen.c - ${CC} ${CFLAGS} -o $@ $@.c +config.defs: + @echo 'You must run ./configure before make' + @false -rtp-tfo-trace: rtp-tfo-trace.c - ${CC} ${CFLAGS} -o $@ $@.c -lpcap - -udp-test-sink: udp-test-sink.c - ${CC} ${CFLAGS} -o $@ $@.c +install: FRC + for i in ${SUBDIR}; do (cd $$i; ${MAKE} ${MFLAGS} \ + DESTDIR=${DESTDIR} install); done -install: - mkdir -p ${INSTBIN} - install -c ${PROGS} ${INSTBIN} +clean: FRC + rm -f a.out core errs + for i in ${SUBDIR}; do (cd $$i; ${MAKE} ${MFLAGS} clean); done -clean: - rm -f *.o *.out ${PROGS} +FRC: