annotate utils/Makefile @ 11:3d6cfb615d90

add make install hierarchy
author Mychaela Falconia <falcon@freecalypso.org>
date Wed, 13 Dec 2023 05:16:12 +0000
parents 0b4d54289ef3
children 78319ed870dc
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
11
3d6cfb615d90 add make install hierarchy
Mychaela Falconia <falcon@freecalypso.org>
parents: 9
diff changeset
1 INSTALL_PREFIX= /opt/themwi
3d6cfb615d90 add make install hierarchy
Mychaela Falconia <falcon@freecalypso.org>
parents: 9
diff changeset
2
3
5bf2648e5413 themwi-update-numdb compiles in the new model
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
3 CC= gcc
5bf2648e5413 themwi-update-numdb compiles in the new model
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
4 CFLAGS= -O2 -I../build-inc
9
0b4d54289ef3 themwi-short-dial compiles in the new model
Mychaela Falconia <falcon@freecalypso.org>
parents: 7
diff changeset
5 PROGS= themwi-check-own themwi-dump-numdb themwi-short-dial themwi-update-numdb
3
5bf2648e5413 themwi-update-numdb compiles in the new model
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
6 LIBNUMDB=../libnumdb/libnumdb.a
5bf2648e5413 themwi-update-numdb compiles in the new model
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
7 LIBUTIL=../libnumutil/libnumutil.a
11
3d6cfb615d90 add make install hierarchy
Mychaela Falconia <falcon@freecalypso.org>
parents: 9
diff changeset
8 INSTBIN=${INSTALL_PREFIX}/bin
3
5bf2648e5413 themwi-update-numdb compiles in the new model
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
9
5bf2648e5413 themwi-update-numdb compiles in the new model
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
10 all: ${PROGS}
5bf2648e5413 themwi-update-numdb compiles in the new model
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
11
7
dc1554b7dfb8 themwi-check-own compiles in the new model
Mychaela Falconia <falcon@freecalypso.org>
parents: 5
diff changeset
12 themwi-check-own: themwi-check-own.o ${LIBNUMDB} ${LIBUTIL}
dc1554b7dfb8 themwi-check-own compiles in the new model
Mychaela Falconia <falcon@freecalypso.org>
parents: 5
diff changeset
13 ${CC} -o $@ $@.o ${LIBNUMDB} ${LIBUTIL}
dc1554b7dfb8 themwi-check-own compiles in the new model
Mychaela Falconia <falcon@freecalypso.org>
parents: 5
diff changeset
14
5
2729f94f38fb themwi-dump-numdb compiles in the new model
Mychaela Falconia <falcon@freecalypso.org>
parents: 3
diff changeset
15 themwi-dump-numdb: themwi-dump-numdb.c
2729f94f38fb themwi-dump-numdb compiles in the new model
Mychaela Falconia <falcon@freecalypso.org>
parents: 3
diff changeset
16 ${CC} ${CFLAGS} -o $@ $@.c
2729f94f38fb themwi-dump-numdb compiles in the new model
Mychaela Falconia <falcon@freecalypso.org>
parents: 3
diff changeset
17
9
0b4d54289ef3 themwi-short-dial compiles in the new model
Mychaela Falconia <falcon@freecalypso.org>
parents: 7
diff changeset
18 themwi-short-dial: themwi-short-dial.o ${LIBNUMDB} ${LIBUTIL}
0b4d54289ef3 themwi-short-dial compiles in the new model
Mychaela Falconia <falcon@freecalypso.org>
parents: 7
diff changeset
19 ${CC} -o $@ $@.o ${LIBNUMDB} ${LIBUTIL}
0b4d54289ef3 themwi-short-dial compiles in the new model
Mychaela Falconia <falcon@freecalypso.org>
parents: 7
diff changeset
20
3
5bf2648e5413 themwi-update-numdb compiles in the new model
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
21 themwi-update-numdb: themwi-update-numdb.o ${LIBUTIL}
5bf2648e5413 themwi-update-numdb compiles in the new model
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
22 ${CC} -o $@ $@.o ${LIBUTIL}
5bf2648e5413 themwi-update-numdb compiles in the new model
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
23
11
3d6cfb615d90 add make install hierarchy
Mychaela Falconia <falcon@freecalypso.org>
parents: 9
diff changeset
24 install:
3d6cfb615d90 add make install hierarchy
Mychaela Falconia <falcon@freecalypso.org>
parents: 9
diff changeset
25 mkdir -p ${INSTBIN}
3d6cfb615d90 add make install hierarchy
Mychaela Falconia <falcon@freecalypso.org>
parents: 9
diff changeset
26 install -c -m 755 ${PROGS} ${INSTBIN}
3d6cfb615d90 add make install hierarchy
Mychaela Falconia <falcon@freecalypso.org>
parents: 9
diff changeset
27
3
5bf2648e5413 themwi-update-numdb compiles in the new model
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
28 clean:
5bf2648e5413 themwi-update-numdb compiles in the new model
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
29 rm -f *.o ${PROGS} errs