termite/Makefile

22 lines
483 B
Makefile
Raw Normal View History

2012-05-22 06:34:35 +02:00
PREFIX = /usr/local
CC = gcc
2012-05-22 10:47:27 +02:00
CFLAGS = -std=c99 -O3 -Wall -Wextra -pedantic -Wformat=2
2012-05-22 06:34:35 +02:00
LDFLAGS = -s
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