blob: ef40ed076250dfec9b3b40d3fa320393a55e52a7 (
about) (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
DESTDIR = /
PREFIX = usr
INCS = `pkg-config --cflags gtk+-2.0 gdk-2.0 vte`
LIBS = `pkg-config --libs gtk+-2.0 gdk-2.0 vte`
CFLAGS = -std=c99 -pedantic -Wall -O2 ${INCS}
LDFLAGS = -s ${LIBS}
VER = 0.9
CC = cc
SRC = T.c Tc.c Td.c
OBJ = ${SRC:.c=.o}
all: Tc Td
%.o: %.c
@echo CC $<
@${CC} -c ${CFLAGS} -o $@ $<
${OBJ}: config.h T.h
Tc: T.o Tc.o
@echo CC -o $@
@${CC} -o $@ $^ ${LDFLAGS}
Td: T.o Td.o
@echo CC -o $@
@${CC} -o $@ $^ ${LDFLAGS}
clean:
@echo cleaning
@rm -f Tc Td ${OBJ}
install: all
@echo installing executable files in ${DESTDIR}${PREFIX}/bin
@install -D -m755 Tc ${DESTDIR}${PREFIX}/bin/Tc
@install -D -m755 Td ${DESTDIR}${PREFIX}/bin/Td
uninstall:
@echo removing executables files from ${DESTDIR}${PREFIX}/bin
@rm -f ${DESTDIR}${PREFIX}/bin/Tc
@rm -f ${DESTDIR}${PREFIX}/bin/Td
.PHONY: all clean install uninstall
|