termite/Makefile
Daniel Micay 85eafbf950 use -Wc++-compat and fix the warnings
this makes termite compilable as C++, and as a bonus turns on stricter
type checking
2012-06-02 06:13:59 -04:00

33 lines
697 B
Makefile

PREFIX = /usr/local
GTK = gtk+-3.0
VTE = vte-2.90
CFLAGS += -std=c99 -O3 \
-Wall -Wextra -pedantic \
-Winit-self \
-Wshadow \
-Wformat=2 \
-Wmissing-declarations \
-Wstrict-overflow=5 \
-Wcast-align \
-Wcast-qual \
-Wconversion \
-Wc++-compat \
-Wbad-function-cast \
$(shell pkg-config --cflags ${GTK} ${VTE})
LDFLAGS += -s -Wl,--as-needed $(shell pkg-config --libs ${GTK} ${VTE})
termite: termite.c config.h
${CC} ${CFLAGS} -o $@ $< ${LDFLAGS}
install: termite
mkdir -p ${DESTDIR}${PREFIX}/bin
cp -f termite ${DESTDIR}${PREFIX}/bin
chmod 755 ${DESTDIR}${PREFIX}/bin/termite
uninstall:
rm -f ${DESTDIR}${PREFIX}/bin/termite
.PHONY: install uninstall