comparison utils/Makefile @ 14:78319ed870dc

convert to new ThemWi configure and build system
author Mychaela Falconia <falcon@freecalypso.org>
date Tue, 21 May 2024 00:15:24 +0000
parents 3d6cfb615d90
children
comparison
equal deleted inserted replaced
13:c0bfd300b6e5 14:78319ed870dc
1 INSTALL_PREFIX= /opt/themwi 1 CPPFLAGS=-I../build-inc
2
3 CC= gcc
4 CFLAGS= -O2 -I../build-inc
5 PROGS= themwi-check-own themwi-dump-numdb themwi-short-dial themwi-update-numdb 2 PROGS= themwi-check-own themwi-dump-numdb themwi-short-dial themwi-update-numdb
6 LIBNUMDB=../libnumdb/libnumdb.a 3 LIBNUMDB=../libnumdb/libnumdb.a
7 LIBUTIL=../libnumutil/libnumutil.a 4 LIBUTIL=../libnumutil/libnumutil.a
8 INSTBIN=${INSTALL_PREFIX}/bin 5
6 include ../config.defs
9 7
10 all: ${PROGS} 8 all: ${PROGS}
11 9
12 themwi-check-own: themwi-check-own.o ${LIBNUMDB} ${LIBUTIL} 10 themwi-check-own: themwi-check-own.o ${LIBNUMDB} ${LIBUTIL}
13 ${CC} -o $@ $@.o ${LIBNUMDB} ${LIBUTIL} 11 ${CC} -o $@ $@.o ${LIBNUMDB} ${LIBUTIL}
14 12
15 themwi-dump-numdb: themwi-dump-numdb.c 13 themwi-dump-numdb: themwi-dump-numdb.c
16 ${CC} ${CFLAGS} -o $@ $@.c 14 ${CC} ${CFLAGS} ${CPPFLAGS} -o $@ $@.c
17 15
18 themwi-short-dial: themwi-short-dial.o ${LIBNUMDB} ${LIBUTIL} 16 themwi-short-dial: themwi-short-dial.o ${LIBNUMDB} ${LIBUTIL}
19 ${CC} -o $@ $@.o ${LIBNUMDB} ${LIBUTIL} 17 ${CC} -o $@ $@.o ${LIBNUMDB} ${LIBUTIL}
20 18
21 themwi-update-numdb: themwi-update-numdb.o ${LIBUTIL} 19 themwi-update-numdb: themwi-update-numdb.o ${LIBUTIL}
22 ${CC} -o $@ $@.o ${LIBUTIL} 20 ${CC} -o $@ $@.o ${LIBUTIL}
23 21
24 install: 22 install:
25 mkdir -p ${INSTBIN} 23 mkdir -p ${DESTDIR}${bindir}
26 install -c -m 755 ${PROGS} ${INSTBIN} 24 install -c -m 755 ${PROGS} ${DESTDIR}${bindir}
27 25
28 clean: 26 clean:
29 rm -f *.o ${PROGS} errs 27 rm -f *.o ${PROGS} errs