ttyrex

ttyrec with more options
git clone https://a3nm.net/git/ttyrex/
Log | Files | Refs | README

Makefile (768B)


      1 CC = gcc
      2 DEFS= -DSVR4 -D_GNU_SOURCE
      3 CFLAGS = -O2 -g -fomit-frame-pointer -Wall $(DEFS)
      4 VERSION = 1.0.8
      5 
      6 DESTDIR=
      7 
      8 TARGET = ttyrec ttyplay ttytime
      9 
     10 DIST =	ttyrec.c ttyplay.c ttyrec.h io.c io.h ttytime.c\
     11 	README Makefile ttyrec.1 ttyplay.1 ttytime.1
     12 
     13 all: $(TARGET)
     14 
     15 ttyrec: ttyrec.o io.o
     16 	$(CC) $(CFLAGS) -o ttyrec ttyrec.o io.o
     17 
     18 ttyplay: ttyplay.o io.o
     19 	$(CC) $(CFLAGS) -o ttyplay ttyplay.o io.o
     20 
     21 ttytime: ttytime.o io.o
     22 	$(CC) $(CFLAGS) -o ttytime ttytime.o io.o
     23 
     24 install:
     25 	install ttyrec ttyplay ttytime $(DESTDIR)/usr/bin
     26 
     27 clean:
     28 	rm -f *.o $(TARGET) ttyrecord *~
     29 
     30 dist:
     31 	rm -rf ttyrec-$(VERSION)
     32 	rm -f ttyrec-$(VERSION).tar.gz
     33 
     34 	mkdir ttyrec-$(VERSION)
     35 	cp $(DIST) ttyrec-$(VERSION)
     36 	tar zcf ttyrec-$(VERSION).tar.gz  ttyrec-$(VERSION)
     37 	rm -rf ttyrec-$(VERSION)