comparison uptools/Makefile @ 473:90d7c360a614

main tree Makefile hierarchy: INSTALL_PREFIX= scheme implemented
author Mychaela Falconia <falcon@freecalypso.org>
date Wed, 13 Feb 2019 05:06:15 +0000
parents 8f3fe2d1fda5
children f2a040324509
comparison
equal deleted inserted replaced
472:368ffb8a08e5 473:90d7c360a614
1 CC= gcc 1 CC= gcc
2 CFLAGS= -O2 2 CFLAGS= -O2
3 PROGDIR=atcmd atinterf sms-pdu-decode 3 PROGDIR=atcmd atinterf sms-pdu-decode
4 LIBDIR= libcoding 4 LIBDIR= libcoding
5 SUBDIR= ${PROGDIR} ${LIBDIR} 5 SUBDIR= ${PROGDIR} ${LIBDIR}
6
7 INSTALL_PREFIX= /opt/freecalypso
6 8
7 all: ${SUBDIR} 9 all: ${SUBDIR}
8 10
9 atcmd: libcoding 11 atcmd: libcoding
10 sms-pdu-decode: libcoding 12 sms-pdu-decode: libcoding
15 clean: FRC 17 clean: FRC
16 rm -f a.out core errs 18 rm -f a.out core errs
17 for i in ${SUBDIR}; do (cd $$i; ${MAKE} ${MFLAGS} clean); done 19 for i in ${SUBDIR}; do (cd $$i; ${MAKE} ${MFLAGS} clean); done
18 20
19 install: FRC 21 install: FRC
20 for i in ${PROGDIR}; do (cd $$i; ${MAKE} ${MFLAGS} install); done 22 for i in ${PROGDIR}; do (cd $$i; ${MAKE} ${MFLAGS} \
23 INSTALL_PREFIX=${INSTALL_PREFIX} install); done
21 24
22 FRC: 25 FRC: