comparison Makefile @ 18:f7321b25195e default tip

new build system for ThemWi sw components
author Mychaela Falconia <falcon@freecalypso.org>
date Tue, 14 May 2024 18:08:35 -0800
parents 3c5734b88c20
children
comparison
equal deleted inserted replaced
17:830af7de3403 18:f7321b25195e
1 CC= gcc
2 CFLAGS= -O2
3
4 PROGDIR=test-fsk test-v22 test-voice tone-detect 1 PROGDIR=test-fsk test-v22 test-voice tone-detect
5 LIBDIR= librtpalloc libsip libutil 2 LIBDIR= librtpalloc libsip libutil
6 SUBDIR= ${PROGDIR} ${LIBDIR} 3 SUBDIR= ${PROGDIR} ${LIBDIR}
7 4
8 all: ${SUBDIR} 5 all: ${SUBDIR}
9 6
10 test-fsk: librtpalloc libsip libutil 7 test-fsk: librtpalloc libsip libutil
11 test-v22: librtpalloc libsip libutil 8 test-v22: librtpalloc libsip libutil
12 test-voice: librtpalloc libsip libutil 9 test-voice: librtpalloc libsip libutil
13 10
14 ${SUBDIR}: FRC 11 ${SUBDIR}: FRC config.defs
15 cd $@; ${MAKE} ${MFLAGS} CC=${CC} CFLAGS="${CFLAGS}" 12 cd $@; ${MAKE} ${MFLAGS}
13
14 config.defs:
15 @echo 'You must run ./configure before make'
16 @false
16 17
17 clean: FRC 18 clean: FRC
18 rm -f a.out core errs 19 rm -f a.out core errs
19 for i in ${SUBDIR}; do (cd $$i; ${MAKE} ${MFLAGS} clean); done 20 for i in ${SUBDIR}; do (cd $$i; ${MAKE} ${MFLAGS} clean); done
20 21
21 install: FRC 22 install: FRC
22 for i in ${PROGDIR}; do (cd $$i; ${MAKE} ${MFLAGS} install); done 23 for i in ${PROGDIR}; do (cd $$i; ${MAKE} ${MFLAGS} \
24 DESTDIR=${DESTDIR} install); done
23 25
24 FRC: 26 FRC: