FreeCalypso > hg > sms-coding-utils
comparison Makefile @ 3:367dce9bf5a7
add top level Makefile
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sat, 05 Aug 2023 02:10:16 +0000 |
parents | |
children | 003660a57f99 |
comparison
equal
deleted
inserted
replaced
2:a16b1b9728f6 | 3:367dce9bf5a7 |
---|---|
1 CC= gcc | |
2 CFLAGS= -O2 | |
3 PROGDIR=enc-text | |
4 LIBDIR= libcoding | |
5 SUBDIR= ${PROGDIR} ${LIBDIR} | |
6 | |
7 INSTALL_PREFIX= /opt/freecalypso | |
8 | |
9 all: ${SUBDIR} | |
10 | |
11 enc-text: libcoding | |
12 | |
13 ${SUBDIR}: FRC | |
14 cd $@; ${MAKE} ${MFLAGS} CC=${CC} CFLAGS="${CFLAGS}" | |
15 | |
16 clean: FRC | |
17 rm -f a.out core errs | |
18 for i in ${SUBDIR}; do (cd $$i; ${MAKE} ${MFLAGS} clean); done | |
19 | |
20 install: FRC | |
21 mkdir -p ${INSTALL_PREFIX} | |
22 for i in ${PROGDIR}; do (cd $$i; ${MAKE} ${MFLAGS} \ | |
23 INSTALL_PREFIX=${INSTALL_PREFIX} install); done | |
24 | |
25 FRC: |