annotate Makefile @ 21:b82ac486c1d7

top Makefile: add install-lib and install-utils
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 20 Nov 2022 06:44:40 +0000
parents 851ca64e38e9
children baadb1cb744d
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
9
4229247843c0 top Makefile: initial version
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
1 CC= gcc
4229247843c0 top Makefile: initial version
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
2 CFLAGS= -O2
21
b82ac486c1d7 top Makefile: add install-lib and install-utils
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
3
b82ac486c1d7 top Makefile: add install-lib and install-utils
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
4 SUBDIR_LIBPROD= libgsmfrp
b82ac486c1d7 top Makefile: add install-lib and install-utils
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
5 SUBDIR_UTILS= frtest pcap
b82ac486c1d7 top Makefile: add install-lib and install-utils
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
6 SUBDIR_INT= dev libtest
b82ac486c1d7 top Makefile: add install-lib and install-utils
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
7
b82ac486c1d7 top Makefile: add install-lib and install-utils
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
8 SUBDIR= ${SUBDIR_LIBPROD} ${SUBDIR_UTILS} ${SUBDIR_INT}
9
4229247843c0 top Makefile: initial version
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
9
4229247843c0 top Makefile: initial version
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
10 all: ${SUBDIR}
4229247843c0 top Makefile: initial version
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
11
12
f88817a233fb gsmfr-decode test program written
Mychaela Falconia <falcon@freecalypso.org>
parents: 9
diff changeset
12 frtest: libgsmfrp libtest
f88817a233fb gsmfr-decode test program written
Mychaela Falconia <falcon@freecalypso.org>
parents: 9
diff changeset
13
9
4229247843c0 top Makefile: initial version
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
14 ${SUBDIR}: FRC
4229247843c0 top Makefile: initial version
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
15 cd $@; ${MAKE} ${MFLAGS} CC=${CC} CFLAGS="${CFLAGS}"
4229247843c0 top Makefile: initial version
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
16
21
b82ac486c1d7 top Makefile: add install-lib and install-utils
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
17 install-lib: FRC
b82ac486c1d7 top Makefile: add install-lib and install-utils
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
18 for i in ${SUBDIR_LIBPROD}; do (cd $$i; ${MAKE} ${MFLAGS} install); done
b82ac486c1d7 top Makefile: add install-lib and install-utils
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
19
b82ac486c1d7 top Makefile: add install-lib and install-utils
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
20 install-utils: FRC
b82ac486c1d7 top Makefile: add install-lib and install-utils
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
21 for i in ${SUBDIR_UTILS}; do (cd $$i; ${MAKE} ${MFLAGS} install); done
b82ac486c1d7 top Makefile: add install-lib and install-utils
Mychaela Falconia <falcon@freecalypso.org>
parents: 15
diff changeset
22
9
4229247843c0 top Makefile: initial version
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
23 clean: FRC
4229247843c0 top Makefile: initial version
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
24 rm -f a.out core errs
4229247843c0 top Makefile: initial version
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
25 for i in ${SUBDIR}; do (cd $$i; ${MAKE} ${MFLAGS} clean); done
4229247843c0 top Makefile: initial version
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
26
4229247843c0 top Makefile: initial version
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
27 FRC: