annotate Makefile @ 9:003660a57f99

new program sms-gen-tpdu
author Mychaela Falconia <falcon@freecalypso.org>
date Sat, 05 Aug 2023 07:43:45 +0000
parents 367dce9bf5a7
children b014abaf0898
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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: