back to automake
[mikachu/openbox.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) $(GLIB_LIBS) $(GMODULE_LIBS) @LIBS@
18
19 bin_PROGRAMS=$(binary)
20
21 openbox3_LDADD=@LIBINTL@ -lobrender -L../render
22 openbox3_LDFLAGS=-export-dynamic
23 openbox3_SOURCES=parse.tab.c parse.lex.c action.c client.c config.c \
24                  extensions.c focus.c frame.c grab.c menu.c openbox.c \
25                  framerender.c parse.c plugin.c prop.c screen.c stacking.c \
26                  dispatch.c event.c group.c timer.c xerror.c 
27
28 noinst_HEADERS=action.h client.h config.h dispatch.h event.h extensions.h \
29                focus.h frame.h framerender.h geom.h gettext.h grab.h group.h \
30                menu.h openbox.h parse.h parse.tab.h plugin.h prop.h screen.h \
31                stacking.h timer.h xerror.h
32
33 # kill the implicit .c.y rule
34 %.c: %.y
35         @
36
37 %.lex.c: %.l
38         $(FLEX) -o$@ $<
39
40 %.tab.c: %.y
41         $(BISON) -d -o $@ $<
42
43 MAINTAINERCLEANFILES=Makefile.in
44
45 clean-local:
46         $(RM) parse.lex.c parse.tab.c parse.tab.h
47
48 distclean-local:
49         $(RM) *\~ *.orig *.rej .\#*