9d8906fd0ce7c2afc7d528b5c3fc785352782a8a
[mikachu/openbox.git] / openbox / Makefile.am
1 localedir=$(datadir)/locale
2 enginedir=$(libdir)/openbox/engines
3 plugindir=$(libdir)/openbox/plugins
4 rcdir=$(datadir)/openbox
5
6 binary=openbox3
7 url=http://icculus.org/openbox
8 bugurl=http://bugzilla.icculus.org
9
10 CPPFLAGS=$(XFT_CFLAGS) $(GLIB_CFLAGS) $(GMODULE_CFLAGS) \
11 @CPPFLAGS@ \
12 -DLOCALEDIR=\"$(localedir)\" \
13 -DRCDIR=\"$(rcdir)\" \
14 -DPLUGINDIR=\"$(plugindir)\" \
15 -DENGINEDIR=\"$(enginedir)\" \
16 -DDEFAULT_ENGINE=\"openbox\" \
17 -DG_LOG_DOMAIN=\"Openbox\" \
18 -DBINARY=\"$(binary)\" \
19 -DURL=\"$(url)\" \
20 -DBUGURL=\"$(bugurl)\"
21
22 LIBS=$(XFT_LIBS) $(GLIB_LIBS) $(GMODULE_LIBS) @LIBS@
23
24 bin_PROGRAMS=$(binary)
25
26 openbox3_LDADD=@LIBINTL@ ../render/librender.a
27 openbox3_LDFLAGS=-export-dynamic
28 openbox3_SOURCES=client.c event.c extensions.c focus.c frame.c openbox.c \
29         prop.c screen.c stacking.c xerror.c timer.c dispatch.c \
30         engine.c plugin.c action.c grab.c config.c menu.c \
31         parse.tab.c lex.yy.c parse.c
32
33 noinst_HEADERS=client.h event.h extensions.h focus.h frame.h geom.h gettext.h \
34         openbox.h prop.h screen.h stacking.h xerror.h dispatch.h \
35         timer.h engine.h plugin.h action.h grab.h config.h menu.h parse.h \
36         parse.tab.h
37
38 lex.yy.c: parse.l
39         $(FLEX) $^
40
41 parse.h: parse.tab.h
42
43 parse.tab.h:parse.tab.c
44
45 parse.tab.c: parse.y
46         $(YACC) -d $<
47
48 MAINTAINERCLEANFILES= Makefile.in
49
50 clean-local:
51         $(RM) y.tab.c y.tab.h lex.yy.c
52
53 distclean-local:
54         $(RM) *\~ *.orig *.rej .\#*