-
Notifications
You must be signed in to change notification settings - Fork 26
/
Makefile.in
159 lines (130 loc) · 5.67 KB
/
Makefile.in
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
# Makefile for es ($Revision: 1.4 $)
# Some of the advice here is rather old and out of date. The
# configuration of es will be improved by 0.9beta, but I didn't
# want to hunt out machines from now til eternity.
# comment out the CFLAGS -Wall if you're not using gcc,
# but i'd encourage you to compile with full warnings on.
# let us know what warnings you get, though we don't promise
# to shut them all up. if you're using sun's SPARCcompiler
# we recommend -Xa mode. if you're using the native alpha
# compile, we recommend -g3 -O -Olimit 1000. on recent
# SGI Irix releases using the native compiler, you will
# probably need -xansi.
# see config.h for command-line -D flags you may want to use.
# if you're using SunOS 5 (Solaris 2), be sure to include
# -DSOLARIS in the CFLAGS, since sun made it difficult to
# detect which system you're running. also, since sun really
# seems to have screwed up and removed both getrusage() and
# wait3() in Solaris 2, you should probably add -DBUILTIN_TIME=0
# to the cflags. if you're running an OSF1 derivative, try -DOSF1.
# if you're using HP/UX do a -DHPUX.
# also, please use whatever -D flags you need to in order
# to get definitions of all signals from <sys/signal.h>.
# _POSIX_SOURCE, _XOPEN_SOURCE are the obvious ones.
prefix = @prefix@
datarootdir = @datarootdir@
datadir = @datadir@
exec_prefix = @exec_prefix@
mandir = @mandir@
bindir = @bindir@
srcdir = @srcdir@
testdir = @srcdir@/test
SHELL = /bin/sh
CC = @CC@
INSTALL = @INSTALL@
INSTALL_PROGRAM = ${INSTALL}
INSTALL_DATA = ${INSTALL} -m 644
MKDIR_P = @MKDIR_P@
## Bison is generating incorrect parsers. So do not use, for now
# YACC = @YACC@
CFLAGS = $(ADDCFLAGS) -I. -I$(srcdir) -W -Wall -Wdeclaration-after-statement @READLINE_CFLAGS@ @CFLAGS@
LDFLAGS = $(ADDLDFLAGS) @LDFLAGS@
LIBS = $(ADDLIBS) @READLINE_LIBS@ @LIBS@
VPATH = $(srcdir)
HFILES = config.h es.h gc.h input.h prim.h print.h sigmsgs.h \
stdenv.h syntax.h term.h var.h
CFILES = access.c closure.c conv.c dict.c eval.c except.c fd.c gc.c glob.c \
glom.c input.c heredoc.c list.c main.c match.c open.c opt.c \
prim-ctl.c prim-etc.c prim-io.c prim-sys.c prim.c print.c proc.c \
sigmsgs.c signal.c split.c status.c str.c syntax.c term.c token.c \
tree.c util.c var.c vec.c version.c y.tab.c dump.c
OFILES = access.o closure.o conv.o dict.o eval.o except.o fd.o gc.o glob.o \
glom.o input.o heredoc.o list.o main.o match.o open.o opt.o \
prim-ctl.o prim-etc.o prim-io.o prim-sys.o prim.o print.o proc.o \
sigmsgs.o signal.o split.o status.o str.o syntax.o term.o token.o \
tree.o util.o var.o vec.o version.o y.tab.o
OTHER = Makefile parse.y mksignal
GEN = esdump y.tab.c y.tab.h y.output token.h sigmsgs.c initial.c
SIGFILES = @SIGFILES@
es : ${OFILES} initial.o
${CC} -o es ${LDFLAGS} ${OFILES} initial.o ${LIBS}
esdump : ${OFILES} dump.o
${CC} -o esdump ${LDFLAGS} ${OFILES} dump.o ${LIBS}
clean :
rm -f es testrun ${OFILES} ${GEN} dump.o initial.o
distclean: clean
rm -f config.cache config.log config.h Makefile cscope.out tags TAGS core cs.out config.status ltmain.sh
rm -rf autom4te.cache
MANIFEST:
find . -type f | sed s/..// > MANIFEST
install : es
$(MKDIR_P) $(DESTDIR)$(bindir)
$(INSTALL_PROGRAM) -s es $(DESTDIR)$(bindir)
$(MKDIR_P) $(DESTDIR)$(mandir)/man1
$(INSTALL_DATA) $(srcdir)/doc/es.1 $(DESTDIR)$(mandir)/man1
$(MKDIR_P) $(DESTDIR)$(datadir)/es
$(INSTALL_DATA) $(srcdir)/share/* $(DESTDIR)$(datadir)/es
testrun : $(testdir)/testrun.c
${CC} -o testrun $(testdir)/testrun.c
test : es testrun $(testdir)/test.es
./es -s < $(testdir)/test.es $(testdir)/tests/*
src :
@echo ${OTHER} ${CFILES} ${HFILES}
y.tab.c y.tab.h : parse.y
${YACC} -vd $(srcdir)/parse.y
token.h : y.tab.h
-cmp -s y.tab.h token.h || cp y.tab.h token.h
initial.c : esdump $(srcdir)/initial.es
./esdump < $(srcdir)/initial.es > initial.c
sigmsgs.c : mksignal $(SIGFILES)
sh $(srcdir)/mksignal $(SIGFILES) > sigmsgs.c
config.h : config.h.in
./configure
# for linux use:
# --- dependencies ---
access.o : access.c es.h config.h stdenv.h prim.h
closure.o : closure.c es.h config.h stdenv.h gc.h
conv.o : conv.c es.h config.h stdenv.h print.h
dict.o : dict.c es.h config.h stdenv.h gc.h
eval.o : eval.c es.h config.h stdenv.h
except.o : except.c es.h config.h stdenv.h print.h
fd.o : fd.c es.h config.h stdenv.h
gc.o : gc.c es.h config.h stdenv.h gc.h
glob.o : glob.c es.h config.h stdenv.h gc.h
glom.o : glom.c es.h config.h stdenv.h gc.h
input.o : input.c es.h config.h stdenv.h input.h
heredoc.o : heredoc.c es.h config.h stdenv.h gc.h input.h syntax.h
list.o : list.c es.h config.h stdenv.h gc.h
main.o : main.c es.h config.h stdenv.h
match.o : match.c es.h config.h stdenv.h
open.o : open.c es.h config.h stdenv.h
opt.o : opt.c es.h config.h stdenv.h
prim.o : prim.c es.h config.h stdenv.h prim.h
prim-ctl.o : prim-ctl.c es.h config.h stdenv.h prim.h
prim-etc.o : prim-etc.c es.h config.h stdenv.h prim.h
prim-io.o : prim-io.c es.h config.h stdenv.h gc.h prim.h
prim-sys.o : prim-sys.c es.h config.h stdenv.h prim.h
print.o : print.c es.h config.h stdenv.h print.h
proc.o : proc.c es.h config.h stdenv.h prim.h
signal.o : signal.c es.h config.h stdenv.h sigmsgs.h
split.o : split.c es.h config.h stdenv.h gc.h
status.o : status.c es.h config.h stdenv.h term.h
str.o : str.c es.h config.h stdenv.h gc.h print.h
syntax.o : syntax.c es.h config.h stdenv.h input.h syntax.h token.h
term.o : term.c es.h config.h stdenv.h gc.h term.h
token.o : token.c es.h config.h stdenv.h input.h syntax.h token.h
tree.o : tree.c es.h config.h stdenv.h gc.h
util.o : util.c es.h config.h stdenv.h
var.o : var.c es.h config.h stdenv.h gc.h var.h term.h
vec.o : vec.c es.h config.h stdenv.h gc.h
version.o : version.c es.h config.h stdenv.h