termite/Makefile
Evan Purkhiser 6d48b706c3 Make ncurses recognize UTF8 support
Add the U8#1 option to the terminfo file, this is an extended option in
the terminfo specifying support for utf8 line graphics.

This fixes some issues with ncurses not rendering utf8 glpyhs for it's
extended ASCII set when termite supports utf8 just fine.
2013-05-16 03:33:15 -04:00

53 lines
1.3 KiB
Makefile

VERSION = $(shell git describe --tags)
PREFIX = /usr/local
GTK = gtk+-3.0
VTE = vte-2.90
TERMINFO = ${PREFIX}/share/terminfo
CXXFLAGS := -std=c++11 -O3 \
-Wall -Wextra -pedantic \
-Winit-self \
-Wshadow \
-Wformat=2 \
-Wmissing-declarations \
-Wstrict-overflow=5 \
-Wcast-align \
-Wcast-qual \
-Wconversion \
-Wunused-macros \
-Wwrite-strings \
-DNDEBUG \
-D_POSIX_C_SOURCE=200809L \
-DTERMITE_VERSION=\"${VERSION}\" \
${shell pkg-config --cflags ${GTK} ${VTE}} \
${CXXFLAGS}
ifeq (${CXX}, g++)
CXXFLAGS += -Wno-missing-field-initializers
endif
ifeq (${CXX}, clang++)
CXXFLAGS += -Wimplicit-fallthrough
endif
LDFLAGS := -s -Wl,--as-needed ${LDFLAGS}
LDLIBS := ${shell pkg-config --libs ${GTK} ${VTE}}
termite: termite.cc url_regex.hh util/clamp.hh util/maybe.hh util/memory.hh
${CXX} ${CXXFLAGS} ${LDFLAGS} $< ${LDLIBS} -o $@
install: termite termite.desktop termite.terminfo
mkdir -p ${DESTDIR}${TERMINFO}
install -Dm755 termite ${DESTDIR}${PREFIX}/bin/termite
install -Dm644 termite.desktop ${DESTDIR}${PREFIX}/share/applications/termite.desktop
install -Dm644 termite.1 ${DESTDIR}${PREFIX}/share/man/man1/termite.1
tic -x termite.terminfo -o ${DESTDIR}${TERMINFO}
uninstall:
rm -f ${DESTDIR}${PREFIX}/bin/termite
clean:
rm termite
.PHONY: clean install uninstall