comparison 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
comparison
equal deleted inserted replaced
20:93ed41fb4038 21:b82ac486c1d7
1 CC= gcc 1 CC= gcc
2 CFLAGS= -O2 2 CFLAGS= -O2
3 SUBDIR= dev frtest libgsmfrp libtest pcap 3
4 SUBDIR_LIBPROD= libgsmfrp
5 SUBDIR_UTILS= frtest pcap
6 SUBDIR_INT= dev libtest
7
8 SUBDIR= ${SUBDIR_LIBPROD} ${SUBDIR_UTILS} ${SUBDIR_INT}
4 9
5 all: ${SUBDIR} 10 all: ${SUBDIR}
6 11
7 frtest: libgsmfrp libtest 12 frtest: libgsmfrp libtest
8 13
9 ${SUBDIR}: FRC 14 ${SUBDIR}: FRC
10 cd $@; ${MAKE} ${MFLAGS} CC=${CC} CFLAGS="${CFLAGS}" 15 cd $@; ${MAKE} ${MFLAGS} CC=${CC} CFLAGS="${CFLAGS}"
11 16
17 install-lib: FRC
18 for i in ${SUBDIR_LIBPROD}; do (cd $$i; ${MAKE} ${MFLAGS} install); done
19
20 install-utils: FRC
21 for i in ${SUBDIR_UTILS}; do (cd $$i; ${MAKE} ${MFLAGS} install); done
22
12 clean: FRC 23 clean: FRC
13 rm -f a.out core errs 24 rm -f a.out core errs
14 for i in ${SUBDIR}; do (cd $$i; ${MAKE} ${MFLAGS} clean); done 25 for i in ${SUBDIR}; do (cd $$i; ${MAKE} ${MFLAGS} clean); done
15 26
16 FRC: 27 FRC: