localedir=$(datadir)/locale
-themercdir=$(datadir)/openbox
enginedir=$(libdir)/openbox/engines
plugindir=$(libdir)/openbox/plugins
+rcdir=$(datadir)/openbox
binary=openbox3
url=http://icculus.org/openbox
CPPFLAGS=$(XFT_CFLAGS) $(GLIB_CFLAGS) $(GMODULE_CFLAGS) \
@CPPFLAGS@ \
-DLOCALEDIR=\"$(localedir)\" \
--DTHEMERCDIR=\"$(themercdir)\" \
+-DRCDIR=\"$(rcdir)\" \
-DPLUGINDIR=\"$(plugindir)\" \
-DENGINEDIR=\"$(enginedir)\" \
-DDEFAULT_ENGINE=\"openbox\" \
openbox3_LDADD=@LIBINTL@ ../render/librender.a
openbox3_LDFLAGS=-export-dynamic
openbox3_SOURCES=client.c event.c extensions.c focus.c frame.c openbox.c \
- prop.c screen.c stacking.c xerror.c themerc.c timer.c dispatch.c \
- engine.c plugin.c action.c grab.c cparse.l config.c
+ prop.c screen.c stacking.c xerror.c timer.c dispatch.c \
+ engine.c plugin.c action.c grab.c config.c menu.c \
+ parse.tab.c lex.yy.c parse.c
noinst_HEADERS=client.h event.h extensions.h focus.h frame.h geom.h gettext.h \
- openbox.h prop.h screen.h stacking.h xerror.h themerc.h dispatch.h \
- timer.h engine.h plugin.h action.h grab.h config.h
+ openbox.h prop.h screen.h stacking.h xerror.h dispatch.h \
+ timer.h engine.h plugin.h action.h grab.h config.h menu.h parse.h \
+ parse.tab.h
+
+lex.yy.c: parse.l
+ $(FLEX) $^
+
+parse.h: parse.tab.h
+
+parse.tab.h:parse.tab.c
+
+parse.tab.c: parse.y
+ $(YACC) -d $<
MAINTAINERCLEANFILES= Makefile.in
+clean-local:
+ $(RM) y.tab.c y.tab.h lex.yy.c
+
distclean-local:
$(RM) *\~ *.orig *.rej .\#*