@@ -35,23 +35,21 @@ bindir = @bindir@
3535srcdir = @srcdir@
3636testdir = @srcdir@/test
3737
38+ VPATH = $(srcdir )
39+
3840
3941SHELL = /bin/sh
4042CC = @CC@
43+ YACC = @YACC@
4144INSTALL = @INSTALL@
42- INSTALL_PROGRAM = ${ INSTALL}
43- INSTALL_DATA = ${ INSTALL} -m 644
45+ INSTALL_PROGRAM = $( INSTALL )
46+ INSTALL_DATA = $( INSTALL ) -m 644
4447MKDIR_P = @MKDIR_P@
4548
4649
47- # # Bison is generating incorrect parsers. So do not use, for now
48- # YACC = @YACC@
49-
50- CFLAGS = $(ADDCFLAGS ) -I. -I$(srcdir ) -W -Wall -Wdeclaration-after-statement @READLINE_CFLAGS@ @CFLAGS@
51- LDFLAGS = $(ADDLDFLAGS ) @LDFLAGS@
52- LIBS = $(ADDLIBS ) @READLINE_LIBS@ @LIBS@
53-
54- VPATH = $(srcdir )
50+ CFLAGS = @STRICT_CFLAGS@ -I. -I$(srcdir ) -W -Wall @READLINE_CFLAGS@ @CFLAGS@ $(ADDCFLAGS )
51+ LDFLAGS = @LDFLAGS@ $(ADDLDFLAGS )
52+ LIBS = @READLINE_LIBS@ @LIBS@ $(ADDLIBS )
5553
5654HFILES = config.h es.h gc.h input.h prim.h print.h sigmsgs.h \
5755 stdenv.h syntax.h term.h var.h
@@ -70,18 +68,18 @@ GEN = esdump y.tab.c y.tab.h y.output token.h sigmsgs.c initial.c
7068
7169SIGFILES = @SIGFILES@
7270
73- es : ${ OFILES} initial.o
74- ${CC} -o es ${ LDFLAGS} ${ OFILES} initial.o ${ LIBS}
71+ es : $( OFILES ) initial.o
72+ $( CC ) -o es $( LDFLAGS ) $( OFILES ) initial.o $( LIBS )
7573
76- esdump : ${ OFILES} dump.o
77- ${CC} -o esdump ${ LDFLAGS} ${ OFILES} dump.o ${ LIBS}
74+ esdump : $( OFILES ) dump.o
75+ $( CC ) -o esdump $( LDFLAGS ) $( OFILES ) dump.o $( LIBS )
7876
7977clean :
80- rm -f es testrun ${ OFILES} ${ GEN} dump.o initial.o
78+ rm -f es $( OFILES ) $( GEN ) dump.o initial.o
8179
82- distclean : clean
80+ distclean : clean testclean
8381 rm -f config.cache config.log config.h Makefile cscope.out tags TAGS core cs.out config.status ltmain.sh
84- rm -rf autom4te.cache
82+ rm -rf autom4te.cache
8583
8684MANIFEST :
8785 find . -type f | sed s/..// > MANIFEST
@@ -95,16 +93,19 @@ install : es
9593 $(INSTALL_DATA ) $(srcdir ) /share/* $(DESTDIR )$(datadir ) /es
9694
9795testrun : $(testdir ) /testrun.c
98- ${CC} -o testrun $(testdir ) /testrun.c
96+ $( CC ) -o testrun $(testdir ) /testrun.c
9997
10098test : es testrun $(testdir ) /test.es
101- ./es -s < $(testdir ) /test.es $(testdir ) /tests/*
99+ ./es -ps < $(testdir ) /test.es $(testdir ) /tests/*
100+
101+ testclean :
102+ rm -f testrun
102103
103104src :
104- @echo ${ OTHER} ${ CFILES} ${ HFILES}
105+ @echo $( OTHER ) $( CFILES ) $( HFILES )
105106
106107y.tab.h : parse.y
107- ${ YACC} -vd $(srcdir ) /parse.y
108+ $( YACC ) -vd $(srcdir ) /parse.y
108109
109110y.tab.c : y.tab.h
110111
@@ -123,41 +124,40 @@ config.h : config.h.in
123124
124125# --- dependencies ---
125126
126- access.o : access.c es.h config.h stdenv.h prim.h
127- closure.o : closure.c es.h config.h stdenv.h gc.h
128- conv.o : conv.c es.h config.h stdenv.h print.h
129- dict.o : dict.c es.h config.h stdenv.h gc.h
130- eval.o : eval.c es.h config.h stdenv.h
131- except.o : except.c es.h config.h stdenv.h print.h
132- fd.o : fd.c es.h config.h stdenv.h
133- gc.o : gc.c es.h config.h stdenv.h gc.h
134- glob.o : glob.c es.h config.h stdenv.h gc.h
135- glom.o : glom.c es.h config.h stdenv.h gc.h
136- input.o : input.c es.h config.h stdenv.h input.h
137- heredoc.o : heredoc.c es.h config.h stdenv.h gc.h input.h syntax.h
138- history.o : history.c es.h config.h stdenv.h gc.h input.h
139- list.o : list.c es.h config.h stdenv.h gc.h
140- main.o : main.c es.h config.h stdenv.h
141- match.o : match.c es.h config.h stdenv.h
142- open.o : open.c es.h config.h stdenv.h
143- opt.o : opt.c es.h config.h stdenv.h
144- prim.o : prim.c es.h config.h stdenv.h prim.h
145- prim-ctl.o : prim-ctl.c es.h config.h stdenv.h prim.h
146- prim-etc.o : prim-etc.c es.h config.h stdenv.h prim.h
147- prim-io.o : prim-io.c es.h config.h stdenv.h gc.h prim.h
148- readline.o : readline.c es.h config.h stdenv.h prim.h
149- prim-sys.o : prim-sys.c es.h config.h stdenv.h prim.h
150- print.o : print.c es.h config.h stdenv.h print.h
151- proc.o : proc.c es.h config.h stdenv.h prim.h
152- signal.o : signal.c es.h config.h stdenv.h sigmsgs.h
153- split.o : split.c es.h config.h stdenv.h gc.h
154- status.o : status.c es.h config.h stdenv.h term.h
155- str.o : str.c es.h config.h stdenv.h gc.h print.h
156- syntax.o : syntax.c es.h config.h stdenv.h input.h syntax.h token.h
157- term.o : term.c es.h config.h stdenv.h gc.h term.h
158- token.o : token.c es.h config.h stdenv.h input.h syntax.h token.h
159- tree.o : tree.c es.h config.h stdenv.h gc.h
160- util.o : util.c es.h config.h stdenv.h
161- var.o : var.c es.h config.h stdenv.h gc.h var.h term.h
162- vec.o : vec.c es.h config.h stdenv.h gc.h
163- version.o : version.c es.h config.h stdenv.h
127+ access.o : access.c es.h config.h stdenv.h prim.h
128+ closure.o : closure.c es.h config.h stdenv.h gc.h
129+ conv.o : conv.c es.h config.h stdenv.h print.h
130+ dict.o : dict.c es.h config.h stdenv.h gc.h
131+ eval.o : eval.c es.h config.h stdenv.h
132+ except.o : except.c es.h config.h stdenv.h print.h
133+ fd.o : fd.c es.h config.h stdenv.h
134+ gc.o : gc.c es.h config.h stdenv.h gc.h
135+ glob.o : glob.c es.h config.h stdenv.h gc.h
136+ glom.o : glom.c es.h config.h stdenv.h gc.h
137+ input.o : input.c es.h config.h stdenv.h input.h
138+ heredoc.o : heredoc.c es.h config.h stdenv.h gc.h input.h syntax.h
139+ list.o : list.c es.h config.h stdenv.h gc.h
140+ main.o : main.c es.h config.h stdenv.h
141+ match.o : match.c es.h config.h stdenv.h
142+ open.o : open.c es.h config.h stdenv.h
143+ opt.o : opt.c es.h config.h stdenv.h
144+ prim.o : prim.c es.h config.h stdenv.h prim.h
145+ prim-ctl.o : prim-ctl.c es.h config.h stdenv.h prim.h
146+ prim-etc.o : prim-etc.c es.h config.h stdenv.h prim.h
147+ prim-io.o : prim-io.c es.h config.h stdenv.h gc.h prim.h
148+ readline.o : readline.c es.h config.h stdenv.h prim.h
149+ prim-sys.o : prim-sys.c es.h config.h stdenv.h prim.h
150+ print.o : print.c es.h config.h stdenv.h print.h
151+ proc.o : proc.c es.h config.h stdenv.h prim.h
152+ signal.o : signal.c es.h config.h stdenv.h sigmsgs.h
153+ split.o : split.c es.h config.h stdenv.h gc.h
154+ status.o : status.c es.h config.h stdenv.h term.h
155+ str.o : str.c es.h config.h stdenv.h gc.h print.h
156+ syntax.o : syntax.c es.h config.h stdenv.h input.h syntax.h token.h
157+ term.o : term.c es.h config.h stdenv.h gc.h term.h
158+ token.o : token.c es.h config.h stdenv.h input.h syntax.h token.h
159+ tree.o : tree.c es.h config.h stdenv.h gc.h
160+ util.o : util.c es.h config.h stdenv.h
161+ var.o : var.c es.h config.h stdenv.h gc.h var.h term.h
162+ vec.o : vec.c es.h config.h stdenv.h gc.h
163+ version.o : version.c es.h config.h stdenv.h
0 commit comments