2012-05-22 06:34:35 +02:00
|
|
|
PREFIX = /usr/local
|
|
|
|
|
|
|
|
CC = gcc
|
2012-05-22 15:02:59 +02:00
|
|
|
CFLAGS = -std=c99 -O3 \
|
|
|
|
-Wall -Wextra -pedantic \
|
|
|
|
-Winit-self \
|
|
|
|
-Wshadow \
|
|
|
|
-Wformat=2 \
|
|
|
|
-Wmissing-declarations
|
2012-05-22 06:34:35 +02:00
|
|
|
|
|
|
|
CFLAGS += $(shell pkg-config --cflags gtk+-2.0 vte)
|
2012-05-22 09:51:26 +02:00
|
|
|
LDFLAGS += -s -Wl,--as-needed $(shell pkg-config --libs gtk+-2.0 vte)
|
2012-05-22 06:34:35 +02:00
|
|
|
|
|
|
|
term: term.c config.h
|
|
|
|
${CC} ${CFLAGS} -o $@ $< ${LDFLAGS}
|
|
|
|
|
|
|
|
install: term
|
|
|
|
mkdir -p ${DESTDIR}${PREFIX}/bin
|
|
|
|
cp -f term ${DESTDIR}${PREFIX}/bin
|
|
|
|
chmod 755 ${DESTDIR}${PREFIX}/bin/term
|
|
|
|
|
|
|
|
uninstall:
|
|
|
|
rm -f ${DESTDIR}${PREFIX}/bin/term
|
|
|
|
|
|
|
|
.PHONY: install uninstall
|