blob: be3217032b7952baf19adf3504398b15712dfc3a (
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
EXPVERSION = 5.31
CC = gcc
CPLUSPLUS = g++
CPLUSPLUSLIBDIR = -L/depot/gnu/arch/lib
CPLUSPLUSLIB = -lg++
CFLAGS = -g -I..
LIBEXPECT = -L.. -lexpect$(EXPVERSION)
LIBS = $(LIBEXPECT) -lm
SCRIPTS = su2 noidle script.exp bonfield.exp
all: chesslib chesslib2 chesslib++
# this can be compiled with either cc or gcc
chesslib: chesslib.o
$(CC) -g -o chesslib chesslib.o $(LIBS)
# this can be compiled with either cc or gcc
chesslib2: chesslib2.o
$(CC) -g -o chesslib2 chesslib2.o $(LIBS)
# this is compiled with c++
chesslib++: chesslib++.o
$(CPLUSPLUS) -g -o chesslib++ chesslib++.o $(LIBS) \
$(CPLUSPLUSLIBDIR) $(CPLUSPLUSLIB)
chesslib++.o: chesslib++.c
$(CPLUSPLUS) -c $(CFLAGS) chesslib++.c
unbuffer-standalone: unbuffer.o
$(CC) -g -o unbuffer-standalone unbuffer.o $(LIBS)
printvars: printvars.o
$(CC) -o printvars printvars.o $(LIBS)
ftplib: ftplib.o
$(CC) -g -o ftplib ftplib.o $(LIBS)
match_max: match_max.o
$(CC) -g -o match_max match_max.o $(LIBS)
jaj1: jaj1.o
$(CC) -g -o jaj1 jaj1.o $(LIBS)
jaj2: jaj2.o
$(CC) -g -o jaj2 jaj2.o $(LIBS)
# wrap up password-generation examples
passgen:
shar passgen.README tkpasswd mkpasswd mkpasswd.man > /tmp/passgen
cleanup:
rm -f expect devtty exho dumb test.raw test.results test.tmp
# copy some contributed scripts over to public-accessible directory
SCRIPTDIR = ~ftp/pub/expect/scripts
ftp:
rcp README.scripts durer:$(SCRIPTDIR)/README
rcp $(SCRIPTS) durer:$(SCRIPTDIR)
rsh durer ls -l $(SCRIPTDIR)
|