-ob3_LDADD=@LIBINTL@ ../render/librender.a
-ob3_LDFLAGS=-export-dynamic
-ob3_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
+openbox3_LDADD=-lobrender -L../render
+openbox3_LDFLAGS=-export-dynamic
+openbox3_SOURCES=parse.tab.c parse.lex.c action.c client.c config.c \
+ extensions.c focus.c frame.c grab.c menu.c menu_render.c \
+ openbox.c framerender.c parse.c plugin.c prop.c screen.c \
+ stacking.c dispatch.c event.c group.c timer.c xerror.c \
+ moveresize.c startup.c popup.c dock.c window.c
+
+noinst_HEADERS=action.h client.h config.h dispatch.h event.h extensions.h \
+ focus.h frame.h framerender.h geom.h gettext.h grab.h group.h \
+ menu.h openbox.h parse.h parse.tab.h plugin.h prop.h screen.h \
+ stacking.h timer.h xerror.h moveresize.h startup.h popup.h \
+ dock.h window.h
+
+# kill the implicit .c.y rule
+%.c: %.y
+ @
+
+%.lex.c: %.l
+ $(FLEX) -o$@ $<
+
+%.tab.c: %.y
+ $(BISON) -d -o $@ $<