all my changes while i was offline.
[dana/openbox-history.git] / openbox / Makefile.am
1 localedir=$(datadir)/locale
2 plugindir=$(libdir)/openbox/plugins
3 rcdir=$(datadir)/openbox
4
5 binary=openbox3
6 url=http://icculus.org/openbox
7
8 CPPFLAGS=$(X_CFLAGS) $(XFT_CFLAGS) $(GLIB_CFLAGS) $(GMODULE_CFLAGS) \
9           @CPPFLAGS@ \
10          -DLOCALEDIR=\"$(localedir)\" \
11          -DRCDIR=\"$(rcdir)\" \
12          -DPLUGINDIR=\"$(plugindir)\" \
13          -DG_LOG_DOMAIN=\"Openbox\" \
14          -DBINARY=\"$(binary)\"
15
16 INCLUDES=-I..
17 LIBS=$(X_LIBS) $(XFT_LIBS) $(XINERAMA_LIBS) $(XKB_LIBS) $(XRANDR_LIBS) \
18         $(VIDMODE_LIBS) $(XSHAPE_LIBS) $(GLIB_LIBS) $(GMODULE_LIBS) @LIBS@ \
19         @LIBINTL@
20
21 bin_PROGRAMS=$(binary)
22
23 openbox3_LDADD=-lobrender -L../render
24 openbox3_LDFLAGS=-export-dynamic
25 openbox3_SOURCES=parse.tab.c parse.lex.c action.c client.c config.c \
26                  extensions.c focus.c frame.c grab.c menu.c menu_render.c \
27                  openbox.c framerender.c parse.c plugin.c prop.c screen.c \
28                  stacking.c dispatch.c event.c group.c timer.c xerror.c \
29                  moveresize.c startup.c popup.c
30
31 noinst_HEADERS=action.h client.h config.h dispatch.h event.h extensions.h \
32                focus.h frame.h framerender.h geom.h gettext.h grab.h group.h \
33                menu.h openbox.h parse.h parse.tab.h plugin.h prop.h screen.h \
34                stacking.h timer.h xerror.h moveresize.h startup.h popup.h
35
36 # kill the implicit .c.y rule
37 %.c: %.y
38         @
39
40 %.lex.c: %.l
41         $(FLEX) -o$@ $<
42
43 %.tab.c: %.y
44         $(BISON) -d -o $@ $<
45
46 MAINTAINERCLEANFILES=Makefile.in
47
48 clean-local:
49         $(RM) parse.lex.c parse.tab.c parse.tab.h
50
51 distclean-local:
52         $(RM) *\~ *.orig *.rej .\#*