Explicitly call flex and bison instead of lex and yacc (Thanks mxf)
This commit is contained in:
parent
2493c4b232
commit
aa02fda067
3
DEPENDS
3
DEPENDS
|
@ -6,6 +6,7 @@ In that case, please try using the versions mentioned below until a fix is provi
|
||||||
* libxcb-1.1.93 (2008-12-11)
|
* libxcb-1.1.93 (2008-12-11)
|
||||||
* xcb-util-0.3.3 (2009-01-31)
|
* xcb-util-0.3.3 (2009-01-31)
|
||||||
* libev
|
* libev
|
||||||
|
* flex and bison
|
||||||
* asciidoc >= 8.3.0 for docs/hacking-howto
|
* asciidoc >= 8.3.0 for docs/hacking-howto
|
||||||
* asciidoc, xmlto, docbook-xml for man/i3.man
|
* asciidoc, xmlto, docbook-xml for man/i3.man
|
||||||
* Xlib, the one that comes with your X-Server
|
* Xlib, the one that comes with your X-Server
|
||||||
|
@ -19,6 +20,8 @@ http://xcb.freedesktop.org/dist/xcb-proto-1.5.tar.bz2
|
||||||
http://xcb.freedesktop.org/dist/libxcb-1.1.93.tar.bz2
|
http://xcb.freedesktop.org/dist/libxcb-1.1.93.tar.bz2
|
||||||
http://xcb.freedesktop.org/dist/xcb-util-0.3.5.tar.bz2
|
http://xcb.freedesktop.org/dist/xcb-util-0.3.5.tar.bz2
|
||||||
http://libev.schmorp.de/
|
http://libev.schmorp.de/
|
||||||
|
http://flex.sourceforge.net/
|
||||||
|
http://www.gnu.org/software/bison/
|
||||||
|
|
||||||
http://i3.zekjur.net/i3lock/
|
http://i3.zekjur.net/i3lock/
|
||||||
http://tools.suckless.org/dmenu
|
http://tools.suckless.org/dmenu
|
||||||
|
|
4
Makefile
4
Makefile
|
@ -24,12 +24,12 @@ all: src/cfgparse.y.o src/cfgparse.yy.o ${FILES}
|
||||||
|
|
||||||
src/cfgparse.yy.o: src/cfgparse.l
|
src/cfgparse.yy.o: src/cfgparse.l
|
||||||
echo "LEX $<"
|
echo "LEX $<"
|
||||||
lex -i -o $(@:.o=.c) $<
|
flex -i -o$(@:.o=.c) $<
|
||||||
$(CC) $(CFLAGS) -c -o $@ $(@:.o=.c)
|
$(CC) $(CFLAGS) -c -o $@ $(@:.o=.c)
|
||||||
|
|
||||||
src/cfgparse.y.o: src/cfgparse.y
|
src/cfgparse.y.o: src/cfgparse.y
|
||||||
echo "YACC $<"
|
echo "YACC $<"
|
||||||
yacc --debug --verbose -b $(basename $< .y) -d $<
|
bison --debug --verbose -b $(basename $< .y) -d $<
|
||||||
$(CC) $(CFLAGS) -c -o $@ $(<:.y=.tab.c)
|
$(CC) $(CFLAGS) -c -o $@ $(<:.y=.tab.c)
|
||||||
|
|
||||||
install: all
|
install: all
|
||||||
|
|
Loading…
Reference in New Issue