FreeCalypso > hg > sipout-test-utils
diff 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 |
line wrap: on
line diff
--- a/Makefile Mon May 13 22:31:24 2024 -0800 +++ b/Makefile Tue May 14 18:08:35 2024 -0800 @@ -1,6 +1,3 @@ -CC= gcc -CFLAGS= -O2 - PROGDIR=test-fsk test-v22 test-voice tone-detect LIBDIR= librtpalloc libsip libutil SUBDIR= ${PROGDIR} ${LIBDIR} @@ -11,14 +8,19 @@ test-v22: librtpalloc libsip libutil test-voice: librtpalloc libsip libutil -${SUBDIR}: FRC - cd $@; ${MAKE} ${MFLAGS} CC=${CC} CFLAGS="${CFLAGS}" +${SUBDIR}: FRC config.defs + cd $@; ${MAKE} ${MFLAGS} + +config.defs: + @echo 'You must run ./configure before make' + @false clean: FRC rm -f a.out core errs for i in ${SUBDIR}; do (cd $$i; ${MAKE} ${MFLAGS} clean); done install: FRC - for i in ${PROGDIR}; do (cd $$i; ${MAKE} ${MFLAGS} install); done + for i in ${PROGDIR}; do (cd $$i; ${MAKE} ${MFLAGS} \ + DESTDIR=${DESTDIR} install); done FRC: