FreeCalypso > hg > sms-coding-utils
annotate Makefile @ 15:5854e48d0ef7
sms-gen-tpdu: add support for alphanumeric user-addr
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sun, 27 Aug 2023 06:43:23 +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: |