annotate uptools/Makefile @ 471:8f3fe2d1fda5

Makefile hierarchy: allow CC and CFLAGS to be overridden from the top
author Mychaela Falconia <falcon@freecalypso.org>
date Tue, 12 Feb 2019 00:20:50 +0000
parents b0cb465290f7
children 90d7c360a614
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
471
8f3fe2d1fda5 Makefile hierarchy: allow CC and CFLAGS to be overridden from the top
Mychaela Falconia <falcon@freecalypso.org>
parents: 349
diff changeset
1 CC= gcc
8f3fe2d1fda5 Makefile hierarchy: allow CC and CFLAGS to be overridden from the top
Mychaela Falconia <falcon@freecalypso.org>
parents: 349
diff changeset
2 CFLAGS= -O2
349
b0cb465290f7 uptools/Makefile: atcmd added
Mychaela Falconia <falcon@freecalypso.org>
parents: 342
diff changeset
3 PROGDIR=atcmd atinterf sms-pdu-decode
338
97a72ec0a6c1 uptools/Makefile created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
4 LIBDIR= libcoding
97a72ec0a6c1 uptools/Makefile created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
5 SUBDIR= ${PROGDIR} ${LIBDIR}
97a72ec0a6c1 uptools/Makefile created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
6
97a72ec0a6c1 uptools/Makefile created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
7 all: ${SUBDIR}
97a72ec0a6c1 uptools/Makefile created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
8
349
b0cb465290f7 uptools/Makefile: atcmd added
Mychaela Falconia <falcon@freecalypso.org>
parents: 342
diff changeset
9 atcmd: libcoding
338
97a72ec0a6c1 uptools/Makefile created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
10 sms-pdu-decode: libcoding
97a72ec0a6c1 uptools/Makefile created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
11
97a72ec0a6c1 uptools/Makefile created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
12 ${SUBDIR}: FRC
471
8f3fe2d1fda5 Makefile hierarchy: allow CC and CFLAGS to be overridden from the top
Mychaela Falconia <falcon@freecalypso.org>
parents: 349
diff changeset
13 cd $@; ${MAKE} ${MFLAGS} CC=${CC} CFLAGS=${CFLAGS}
338
97a72ec0a6c1 uptools/Makefile created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
14
97a72ec0a6c1 uptools/Makefile created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
15 clean: FRC
97a72ec0a6c1 uptools/Makefile created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
16 rm -f a.out core errs
97a72ec0a6c1 uptools/Makefile created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
17 for i in ${SUBDIR}; do (cd $$i; ${MAKE} ${MFLAGS} clean); done
97a72ec0a6c1 uptools/Makefile created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
18
97a72ec0a6c1 uptools/Makefile created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
19 install: FRC
97a72ec0a6c1 uptools/Makefile created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
20 for i in ${PROGDIR}; do (cd $$i; ${MAKE} ${MFLAGS} install); done
97a72ec0a6c1 uptools/Makefile created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
21
97a72ec0a6c1 uptools/Makefile created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
22 FRC: