comparison Makefile @ 4:ce450869db09

add top Makefile
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 09 Jun 2024 00:00:31 +0000
parents
children d0b86b144577
comparison
equal deleted inserted replaced
3:847690ea7f4a 4:ce450869db09
1 PROGDIR=mncc
2 LIBDIR= libutil
3 SUBDIR= ${PROGDIR} ${LIBDIR}
4 DESTDIR=
5
6 all: ${SUBDIR}
7
8 mncc: 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 install: FRC
18 for i in ${PROGDIR}; do (cd $$i; ${MAKE} ${MFLAGS} \
19 DESTDIR=${DESTDIR} install); done
20
21 clean: FRC
22 rm -f a.out core errs
23 for i in ${SUBDIR}; do (cd $$i; ${MAKE} ${MFLAGS} clean); done
24
25 FRC: