FreeCalypso > hg > gsm-codec-lib
comparison Makefile @ 453:19f1aa01ea10
new approach to config & build for ThemWi software
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Fri, 10 May 2024 05:45:46 +0000 |
parents | a2065e7d68bc |
children | a53225b44ea5 |
comparison
equal
deleted
inserted
replaced
452:6e595f7d40e2 | 453:19f1aa01ea10 |
---|---|
1 CC= gcc | |
2 CFLAGS= -O2 | |
3 | |
4 SUBDIR_LIBPROD= libgsmefr libgsmfr2 libtwamr | 1 SUBDIR_LIBPROD= libgsmefr libgsmfr2 libtwamr |
5 SUBDIR_UTILS= amrconv amrefr amrtest efrtest frtest miscutil | 2 SUBDIR_UTILS= amrconv amrefr amrtest efrtest frtest miscutil |
6 SUBDIR_INT= dev libtest | 3 SUBDIR_INT= dev libtest |
7 | 4 |
8 SUBDIR= ${SUBDIR_LIBPROD} ${SUBDIR_UTILS} ${SUBDIR_INT} | 5 SUBDIR= ${SUBDIR_LIBPROD} ${SUBDIR_UTILS} ${SUBDIR_INT} |
6 SUBDIR_INST= ${SUBDIR_LIBPROD} ${SUBDIR_UTILS} | |
7 DESTDIR= | |
9 | 8 |
10 all: ${SUBDIR} | 9 all: ${SUBDIR} |
11 | 10 |
12 amrconv: libtest | 11 amrconv: libtest |
13 amrefr: libgsmefr libtest libtwamr | 12 amrefr: libgsmefr libtest libtwamr |
14 amrtest: libtest libtwamr | 13 amrtest: libtest libtwamr |
15 efrtest: libgsmefr libtest | 14 efrtest: libgsmefr libtest |
16 frtest: libgsmfr2 libtest | 15 frtest: libgsmfr2 libtest |
17 miscutil: libgsmefr libgsmfr2 libtest | 16 miscutil: libgsmefr libgsmfr2 libtest |
18 | 17 |
19 ${SUBDIR}: FRC | 18 ${SUBDIR}: FRC config.defs |
20 cd $@; ${MAKE} ${MFLAGS} CC=${CC} CFLAGS="${CFLAGS}" | 19 cd $@; ${MAKE} ${MFLAGS} |
21 | 20 |
22 install-lib: FRC | 21 config.defs: |
23 for i in ${SUBDIR_LIBPROD}; do (cd $$i; ${MAKE} ${MFLAGS} install); done | 22 @echo 'You must run ./configure before make' |
23 @false | |
24 | 24 |
25 install-utils: FRC | 25 install: FRC |
26 for i in ${SUBDIR_UTILS}; do (cd $$i; ${MAKE} ${MFLAGS} install); done | 26 for i in ${SUBDIR_INST}; do (cd $$i; ${MAKE} ${MFLAGS} \ |
27 DESTDIR=${DESTDIR} install); done | |
27 | 28 |
28 clean: FRC | 29 clean: FRC |
29 rm -f a.out core errs | 30 rm -f a.out core errs |
30 for i in ${SUBDIR}; do (cd $$i; ${MAKE} ${MFLAGS} clean); done | 31 for i in ${SUBDIR}; do (cd $$i; ${MAKE} ${MFLAGS} clean); done |
31 | 32 |