FreeCalypso > hg > themwi-system-sw
comparison Makefile @ 5:9f1ce81522ea
add top Makefile
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sun, 26 Jun 2022 11:40:47 -0800 |
parents | |
children | 6560915b0d27 |
comparison
equal
deleted
inserted
replaced
4:4ad5deafaa87 | 5:9f1ce81522ea |
---|---|
1 CC= gcc | |
2 CFLAGS= -O2 | |
3 | |
4 PROGDIR=utils | |
5 LIBDIR= libutil | |
6 SUBDIR= ${PROGDIR} ${LIBDIR} | |
7 | |
8 all: ${SUBDIR} | |
9 | |
10 utils: libutil | |
11 | |
12 ${SUBDIR}: FRC | |
13 cd $@; ${MAKE} ${MFLAGS} CC=${CC} CFLAGS="${CFLAGS}" | |
14 | |
15 clean: FRC | |
16 rm -f a.out core errs | |
17 for i in ${SUBDIR}; do (cd $$i; ${MAKE} ${MFLAGS} clean); done | |
18 | |
19 install: FRC | |
20 for i in ${PROGDIR}; do (cd $$i; ${MAKE} ${MFLAGS} install); done | |
21 | |
22 FRC: |