FreeCalypso > hg > sms-coding-utils
annotate Makefile @ 13:b8d8f8a3cdb7
scripts: wrappers for network-side SMS-DELIVER PDU generation
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sun, 27 Aug 2023 05:11:21 +0000 |
parents | 003660a57f99 |
children | b014abaf0898 |
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 |
9
003660a57f99
new program sms-gen-tpdu
Mychaela Falconia <falcon@freecalypso.org>
parents:
3
diff
changeset
|
3 PROGDIR=enc-text gen-pdu |
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: |