FreeCalypso > hg > sms-coding-utils
annotate Makefile @ 22:8a2038c6a156
LICENSE: same as FC host tools and FC SIM tools
The present code is mostly pieced together from FC User Phone Tools
(freecalypso-tools/uptools) and fc-sim-tools, hence it makes no rational
sense for it to be subject to any different license terms than those two
major packages - but make it explicit.
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Thu, 31 Aug 2023 23:03:38 +0000 |
parents | b014abaf0898 |
children | 2a19b44c272e |
rev | line source |
---|---|
3
367dce9bf5a7
add top level Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1 CC= gcc |
367dce9bf5a7
add top level Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
2 CFLAGS= -O2 |
14
b014abaf0898
top Makefile: add scripts
Mychaela Falconia <falcon@freecalypso.org>
parents:
9
diff
changeset
|
3 PROGDIR=enc-text gen-pdu scripts |
3
367dce9bf5a7
add top level Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
4 LIBDIR= libcoding |
367dce9bf5a7
add top level Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
5 SUBDIR= ${PROGDIR} ${LIBDIR} |
367dce9bf5a7
add top level Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
6 |
367dce9bf5a7
add top level Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
7 INSTALL_PREFIX= /opt/freecalypso |
367dce9bf5a7
add top level Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
8 |
367dce9bf5a7
add top level Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
9 all: ${SUBDIR} |
367dce9bf5a7
add top level Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
10 |
367dce9bf5a7
add top level Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
11 enc-text: libcoding |
9
003660a57f99
new program sms-gen-tpdu
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
12 gen-pdu: libcoding |
3
367dce9bf5a7
add top level Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
13 |
367dce9bf5a7
add top level Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
14 ${SUBDIR}: FRC |
367dce9bf5a7
add top level Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
15 cd $@; ${MAKE} ${MFLAGS} CC=${CC} CFLAGS="${CFLAGS}" |
367dce9bf5a7
add top level Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
16 |
367dce9bf5a7
add top level Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
17 clean: FRC |
367dce9bf5a7
add top level Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
18 rm -f a.out core errs |
367dce9bf5a7
add top level Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
19 for i in ${SUBDIR}; do (cd $$i; ${MAKE} ${MFLAGS} clean); done |
367dce9bf5a7
add top level Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
20 |
367dce9bf5a7
add top level Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
21 install: FRC |
367dce9bf5a7
add top level Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
22 mkdir -p ${INSTALL_PREFIX} |
367dce9bf5a7
add top level Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
23 for i in ${PROGDIR}; do (cd $$i; ${MAKE} ${MFLAGS} \ |
367dce9bf5a7
add top level Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
24 INSTALL_PREFIX=${INSTALL_PREFIX} install); done |
367dce9bf5a7
add top level Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
25 |
367dce9bf5a7
add top level Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
26 FRC: |