comparison Makefile @ 3:90e78243d367

add top Makefile
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 23 Jun 2024 17:17:18 +0000
parents
children 42373f9992cc
comparison
equal deleted inserted replaced
2:c03ec046471f 3:90e78243d367
1 PROGDIR=pcm
2 LIBDIR= libutil
3 SUBDIR= ${PROGDIR} ${LIBDIR}
4 DESTDIR=
5
6 all: ${SUBDIR}
7
8 pcm: libutil
9
10 ${SUBDIR}: FRC config.defs
11 cd $@; ${MAKE} ${MFLAGS}
12
13 config.defs:
14 @echo 'You must run ./configure before make'
15 @false
16
17 clean: FRC
18 rm -f a.out core errs
19 for i in ${SUBDIR}; do (cd $$i; ${MAKE} ${MFLAGS} clean); done
20
21 install: FRC
22 for i in ${PROGDIR}; do (cd $$i; ${MAKE} ${MFLAGS} \
23 DESTDIR=${DESTDIR} install); done
24
25 FRC: