OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [insight/] [expect/] [example/] [Makefile] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 578 markom
TCLVERSION = 8.0
2
EXPVERSION = 5.25
3
TCLROOT = ../../tcl$(TCLVERSION)
4
 
5
# Tcl include files.  (If you haven't installed Tcl yet, read the README file).
6
# This must point to the directory that contains ALL of Tcl's include
7
# files, not just the public ones.
8
TCLHDIR = $(TCLROOT)/generic
9
 
10
# TCL library.  Very little actually comes out of it, but it is handy.
11
TCLLIB = $(TCLROOT)/unix/libtcl$(TCLVERSION).so
12
# if installed, you can use:
13
# TCLLIB = -ltcl
14
 
15
CC = gcc
16
CPLUSPLUS = g++
17
CPLUSPLUSLIBDIR = -L/depot/gnu/arch/lib
18
CPLUSPLUSLIB = -lg++
19
 
20
CFLAGS = -g -I.. -I$(TCLHDIR)
21
LIBEXPECT = -L.. -lexpect$(EXPVERSION)
22
 
23
LIBS = $(LIBEXPECT) $(TCLLIB) -lm
24
 
25
SCRIPTS = su2 noidle script.exp bonfield.exp
26
 
27
all: chesslib chesslib2 chesslib++
28
 
29
# this can be compiled with either cc or gcc
30
chesslib: chesslib.o
31
        $(CC) -g -o chesslib chesslib.o $(LIBS)
32
 
33
# this can be compiled with either cc or gcc
34
chesslib2: chesslib2.o
35
        $(CC) -g -o chesslib2 chesslib2.o $(LIBS)
36
 
37
# this is compiled with c++
38
chesslib++: chesslib++.o
39
        $(CPLUSPLUS) -g -o chesslib++ chesslib++.o $(LIBS) \
40
                $(CPLUSPLUSLIBDIR) $(CPLUSPLUSLIB)
41
 
42
chesslib++.o: chesslib++.c
43
        $(CPLUSPLUS) -c $(CFLAGS) chesslib++.c
44
 
45
unbuffer-standalone: unbuffer.o
46
        $(CC) -g -o unbuffer-standalone unbuffer.o $(LIBS)
47
 
48
printvars: printvars.o
49
        $(CC) -o printvars printvars.o $(LIBS)
50
 
51
ftplib: ftplib.o
52
        $(CC) -g -o ftplib ftplib.o $(LIBS)
53
 
54
match_max: match_max.o
55
        $(CC) -g -o match_max match_max.o $(LIBS)
56
 
57
jaj1: jaj1.o
58
        $(CC) -g -o jaj1 jaj1.o $(LIBS)
59
 
60
jaj2: jaj2.o
61
        $(CC) -g -o jaj2 jaj2.o $(LIBS)
62
 
63
# wrap up password-generation examples
64
passgen:
65
        shar passgen.README tkpasswd mkpasswd mkpasswd.man > /tmp/passgen
66
 
67
cleanup:
68
        rm -f expect devtty exho dumb test.raw test.results test.tmp
69
 
70
# copy some contributed scripts over to public-accessible directory
71
SCRIPTDIR = ~ftp/pub/expect/scripts
72
ftp:
73
        rcp README.scripts durer:$(SCRIPTDIR)/README
74
        rcp $(SCRIPTS) durer:$(SCRIPTDIR)
75
        rsh durer ls -l $(SCRIPTDIR)

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.