Optimize redraws, reduce cursor flickering
[dvtm.git] / Makefile
blobeb849f421a0e19b4503123488638656efaf40bd0
1 include config.mk
3 SRC += dvtm.c vt.c
4 OBJ = ${SRC:.c=.o}
6 all: clean options dvtm
8 options:
9 @echo dvtm build options:
10 @echo "CFLAGS = ${CFLAGS}"
11 @echo "LDFLAGS = ${LDFLAGS}"
12 @echo "CC = ${CC}"
14 config.h:
15 cp config.def.h config.h
17 .c.o:
18 @echo CC $<
19 @${CC} -c ${CFLAGS} $<
21 ${OBJ}: config.h config.mk
23 dvtm: ${OBJ}
24 @echo CC -o $@
25 @${CC} -o $@ ${OBJ} ${LDFLAGS}
27 debug: clean
28 @make CFLAGS='${DEBUG_CFLAGS}'
30 clean:
31 @echo cleaning
32 @rm -f dvtm ${OBJ} dvtm-${VERSION}.tar.gz
34 dist: clean
35 @echo creating dist tarball
36 @mkdir -p dvtm-${VERSION}
37 @cp -R LICENSE Makefile README config.def.h config.mk \
38 ${SRC} vt.h forkpty-aix.c tile.c bstack.c tstack.c grid.c fullscreen.c \
39 fibonacci.c dvtm-status dvtm.info dvtm.1 dvtm-${VERSION}
40 @tar -cf dvtm-${VERSION}.tar dvtm-${VERSION}
41 @gzip dvtm-${VERSION}.tar
42 @rm -rf dvtm-${VERSION}
44 install: dvtm
45 @echo stripping executable
46 @strip -s dvtm
47 @echo installing executable file to ${DESTDIR}${PREFIX}/bin
48 @mkdir -p ${DESTDIR}${PREFIX}/bin
49 @cp -f dvtm ${DESTDIR}${PREFIX}/bin
50 @chmod 755 ${DESTDIR}${PREFIX}/bin/dvtm
51 @cp -f dvtm-status ${DESTDIR}${PREFIX}/bin
52 @chmod 755 ${DESTDIR}${PREFIX}/bin/dvtm-status
53 @echo installing manual page to ${DESTDIR}${MANPREFIX}/man1
54 @mkdir -p ${DESTDIR}${MANPREFIX}/man1
55 @sed "s/VERSION/${VERSION}/g" < dvtm.1 > ${DESTDIR}${MANPREFIX}/man1/dvtm.1
56 @chmod 644 ${DESTDIR}${MANPREFIX}/man1/dvtm.1
57 @echo installing terminfo description
58 @tic -o ${DESTDIR}/usr/share/terminfo -s dvtm.info
60 uninstall:
61 @echo removing executable file from ${DESTDIR}${PREFIX}/bin
62 @rm -f ${DESTDIR}${PREFIX}/bin/dvtm
63 @rm -f ${DESTDIR}${PREFIX}/bin/dvtm-status
64 @echo removing manual page from ${DESTDIR}${MANPREFIX}/man1
65 @rm -f ${DESTDIR}${MANPREFIX}/man1/dvtm.1
67 .PHONY: all options clean dist install uninstall debug