annotate Makefile @ 9:2cc790b66359

libnumdb: implement refresh
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 26 Jun 2022 13:24:47 -0800
parents 9f1ce81522ea
children 6560915b0d27
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
5
9f1ce81522ea add top Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
1 CC= gcc
9f1ce81522ea add top Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
2 CFLAGS= -O2
9f1ce81522ea add top Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
3
9f1ce81522ea add top Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
4 PROGDIR=utils
9f1ce81522ea add top Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
5 LIBDIR= libutil
9f1ce81522ea add top Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
6 SUBDIR= ${PROGDIR} ${LIBDIR}
9f1ce81522ea add top Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
7
9f1ce81522ea add top Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
8 all: ${SUBDIR}
9f1ce81522ea add top Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
9
9f1ce81522ea add top Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
10 utils: libutil
9f1ce81522ea add top Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
11
9f1ce81522ea add top Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
12 ${SUBDIR}: FRC
9f1ce81522ea add top Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
13 cd $@; ${MAKE} ${MFLAGS} CC=${CC} CFLAGS="${CFLAGS}"
9f1ce81522ea add top Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
14
9f1ce81522ea add top Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
15 clean: FRC
9f1ce81522ea add top Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
16 rm -f a.out core errs
9f1ce81522ea add top Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
17 for i in ${SUBDIR}; do (cd $$i; ${MAKE} ${MFLAGS} clean); done
9f1ce81522ea add top Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
18
9f1ce81522ea add top Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
19 install: FRC
9f1ce81522ea add top Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
20 for i in ${PROGDIR}; do (cd $$i; ${MAKE} ${MFLAGS} install); done
9f1ce81522ea add top Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
21
9f1ce81522ea add top Makefile
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
22 FRC: