retty.1: See also blindtty(1)
[retty.git] / Makefile
blobce27f15f72ed78950c6b23182edc78a77c44b7a4
1 ARCH=`./getarch.sh -arch`
2 OS=`./getarch.sh -os`
3 FULLARCH=$(ARCH)-$(OS)
5 CFLAGS=-Wall -g -DARCH=$(ARCH) -DOS=$(OS)
6 LIBS=-lutil
7 LDFLAGS=$(LIBS)
8 EXE=blindtty retty
10 all: $(EXE)
12 blindtty: blindtty.o
13 retty: retty.o
15 retty.o: bc-attach.i bc-detach.i
17 bc-attach.i: attach.o
18 objdump -j .text -d $^ | ./bytecode.pl attach_code >$@
20 bc-detach.i: detach.o
21 objdump -j .text -d $^ | ./bytecode.pl detach_code >$@
23 attach.o:
24 make -f arch/Makefile attach-$(FULLARCH).o
25 mv attach-$(FULLARCH).o attach.o
27 detach.o:
28 make -f arch/Makefile detach-$(FULLARCH).o
29 mv detach-$(FULLARCH).o detach.o
31 clean:
32 rm -f *.o $(EXE) bc-attach.* bc-detach.* test arch/*.o