forked from mjording/ttyrec
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
37 lines (26 loc) · 837 Bytes
/
Makefile
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
CC = gcc
DEFS= -DSVR4 -D_GNU_SOURCE
CFLAGS = -O2 -g -fomit-frame-pointer -Wall $(DEFS)
VERSION = 1.0.8
DESTDIR=
TARGET = ttyrec ttyplay ttytime
DIST = ttyrec.c ttyplay.c ttyrec.h io.c io.h ttytime.c\
README Makefile ttyrec.1 ttyplay.1 ttytime.1
all: $(TARGET)
ttyrec: ttyrec.o io.o
$(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o ttyrec ttyrec.o io.o
ttyplay: ttyplay.o io.o
$(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o ttyplay ttyplay.o io.o
ttytime: ttytime.o io.o
$(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o ttytime ttytime.o io.o
install:
install ttyrec ttyplay ttytime $(DESTDIR)/usr/bin
clean:
rm -f *.o $(TARGET) ttyrecord *~
dist:
rm -rf ttyrec-$(VERSION)
rm -f ttyrec-$(VERSION).tar.gz
mkdir ttyrec-$(VERSION)
cp $(DIST) ttyrec-$(VERSION)
tar zcf ttyrec-$(VERSION).tar.gz ttyrec-$(VERSION)
rm -rf ttyrec-$(VERSION)