the menu.c was renamed
[dana/openbox.git] / Makefile.am
1 SUBDIRS = m4 po
2
3 docxbmdir       = $(docdir)/xbm
4 themedir        = $(datadir)/themes
5 localedir       = $(datadir)/locale
6 configdir       = $(sysconfdir)/xdg
7 rcdir           = $(configdir)/openbox
8 xsessionsdir    = $(datadir)/xsessions
9 gnomewmfilesdir = $(datadir)/gnome/wm-properties
10 pkgconfigdir    = $(libdir)/pkgconfig
11 pubincludedir   = $(includedir)/openbox/@OB_VERSION@/openbox
12 pixmapdir       = $(datadir)/pixmaps
13 xsddir          = $(datadir)/openbox
14
15 theme = Clearlooks
16
17 AUTOMAKE_OPTIONS = subdir-objects foreign
18
19 ACLOCAL_AMFLAGS = -I m4
20
21 INCLUDES = -I.
22
23 check_PROGRAMS = \
24         render/rendertest
25
26 lib_LTLIBRARIES = \
27         parser/libobparser.la \
28         render/libobrender.la
29
30 bin_PROGRAMS = \
31         openbox/openbox \
32         tools/gnome-panel-control/gnome-panel-control
33
34 nodist_bin_SCRIPTS = \
35         data/xsession/openbox-session \
36         data/xsession/openbox-gnome-session \
37         data/xsession/openbox-kde-session
38
39 ## render ##
40
41 render_rendertest_CPPFLAGS = \
42         $(PANGO_CFLAGS) \
43         $(XFT_CFLAGS) \
44         $(GLIB_CFLAGS) \
45         -DG_LOG_DOMAIN=\"RenderTest\"
46 render_rendertest_LDADD = \
47         parser/libobparser.la \
48         render/libobrender.la \
49         $(GLIB_LIBS) \
50         $(PANGO_LIBS) \
51         $(XFT_LIBS) \
52         $(XML_LIBS) \
53         $(X_LIBS)
54 render_rendertest_SOURCES = render/test.c
55
56 render_libobrender_la_CPPFLAGS = \
57         $(X_CFLAGS) \
58         $(GLIB_CFLAGS) \
59         $(XML_CFLAGS) \
60         $(PANGO_CFLAGS) \
61         $(XFT_CFLAGS) \
62         -DG_LOG_DOMAIN=\"ObRender\" \
63         -DDEFAULT_THEME=\"$(theme)\"
64 render_libobrender_la_LDFLAGS = \
65         -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
66 render_libobrender_la_LIBADD = \
67         parser/libobparser.la \
68         $(X_LIBS) \
69         $(PANGO_LIBS) \
70         $(XFT_LIBS) \
71         $(GLIB_LIBS) \
72         $(XML_LIBS)
73 render_libobrender_la_SOURCES = \
74         gettext.h \
75         render/color.h \
76         render/color.c \
77         render/font.h \
78         render/font.c \
79         render/geom.h \
80         render/gradient.h \
81         render/gradient.c \
82         render/icon.h \
83         render/image.h \
84         render/image.c \
85         render/instance.h \
86         render/instance.c \
87         render/mask.h \
88         render/mask.c \
89         render/render.h \
90         render/render.c \
91         render/theme.h \
92         render/theme.c
93
94 ## parser ##
95
96 parser_libobparser_la_CPPFLAGS = \
97         $(GLIB_CFLAGS) \
98         $(XML_CFLAGS) \
99         -DG_LOG_DOMAIN=\"ObParser\" \
100         -DLOCALEDIR=\"$(localedir)\" \
101         -DDATADIR=\"$(datadir)\" \
102         -DCONFIGDIR=\"$(configdir)\"
103 parser_libobparser_la_LDFLAGS = \
104         -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
105 parser_libobparser_la_LIBADD = \
106         $(GLIB_LIBS) \
107         $(XML_LIBS) 
108 parser_libobparser_la_SOURCES = \
109         parser/parse.h \
110         parser/parse.c
111
112 ## openbox ##
113
114 openbox_openbox_CPPFLAGS = \
115         $(SM_CFLAGS) \
116         $(XINERAMA_CFLAGS) \
117         $(XKB_CFLAGS) \
118         $(XRANDR_CFLAGS) \
119         $(XSHAPE_CFLAGS) \
120         $(XSYNC_CFLAGS) \
121         $(X_CFLAGS) \
122         $(XCURSOR_CFLAGS) \
123         $(SM_CFLAGS) \
124         $(PANGO_CFLAGS) \
125         $(GLIB_CFLAGS) \
126         $(LIBSN_CFLAGS) \
127         $(XML_CFLAGS) \
128         -DLOCALEDIR=\"$(localedir)\" \
129         -DDATADIR=\"$(datadir)\" \
130         -DCONFIGDIR=\"$(configdir)\" \
131         -DG_LOG_DOMAIN=\"Openbox\"
132 openbox_openbox_LDADD = \
133         $(SM_LIBS) \
134         $(XINERAMA_LIBS) \
135         $(XKB_LIBS) \
136         $(XRANDR_LIBS) \
137         $(XSHAPE_LIBS) \
138         $(XSYNC_LIBS) \
139         $(GLIB_LIBS) \
140         $(X_LIBS) \
141         $(XCURSOR_LIBS) \
142         $(LIBSN_LIBS) \
143         $(XML_LIBS) \
144         $(EFENCE_LIBS) \
145         $(LIBINTL) \
146         render/libobrender.la \
147         parser/libobparser.la
148 openbox_openbox_LDFLAGS = -export-dynamic
149 openbox_openbox_SOURCES = \
150         gettext.h \
151         openbox/actions/all.c \
152         openbox/actions/all.h \
153         openbox/actions/addremovedesktop.c \
154         openbox/actions/breakchroot.c \
155         openbox/actions/close.c \
156         openbox/actions/cyclewindows.c \
157         openbox/actions/debug.c \
158         openbox/actions/decorations.c \
159         openbox/actions/desktop.c \
160         openbox/actions/dockautohide.c \
161         openbox/actions/directionalwindows.c \
162         openbox/actions/execute.c \
163         openbox/actions/exit.c \
164         openbox/actions/focus.c \
165         openbox/actions/fullscreen.c \
166         openbox/actions/growtoedge.c \
167         openbox/actions/iconify.c \
168         openbox/actions/if.c \
169         openbox/actions/kill.c \
170         openbox/actions/layer.c \
171         openbox/actions/lower.c \
172         openbox/actions/maximize.c \
173         openbox/actions/move.c \
174         openbox/actions/moverelative.c \
175         openbox/actions/moveresizeto.c \
176         openbox/actions/movetoedge.c \
177         openbox/actions/omnipresent.c \
178         openbox/actions/raise.c \
179         openbox/actions/raiselower.c \
180         openbox/actions/reconfigure.c \
181         openbox/actions/resize.c \
182         openbox/actions/resizerelative.c \
183         openbox/actions/restart.c \
184         openbox/actions/shade.c \
185         openbox/actions/showdesktop.c \
186         openbox/actions/showmenu.c \
187         openbox/actions/unfocus.c \
188         openbox/actions.c \
189         openbox/actions.h \
190         openbox/client.c \
191         openbox/client.h \
192         openbox/client_list_menu.c \
193         openbox/client_list_menu.h \
194         openbox/client_list_combined_menu.c \
195         openbox/client_list_combined_menu.h \
196         openbox/client_menu.c \
197         openbox/client_menu.h \
198         openbox/config.c \
199         openbox/config.h \
200         openbox/debug.c \
201         openbox/debug.h \
202         openbox/dock.c \
203         openbox/dock.h \
204         openbox/event.c \
205         openbox/event.h \
206         openbox/extensions.c \
207         openbox/extensions.h \
208         openbox/focus.c \
209         openbox/focus.h \
210         openbox/focus_cycle.c \
211         openbox/focus_cycle.h \
212         openbox/focus_cycle_indicator.c \
213         openbox/focus_cycle_indicator.h \
214         openbox/focus_cycle_popup.c \
215         openbox/focus_cycle_popup.h \
216         openbox/frame.c \
217         openbox/frame.h \
218         openbox/framerender.c \
219         openbox/framerender.h \
220         openbox/geom.h \
221         openbox/grab.c \
222         openbox/grab.h \
223         openbox/group.c \
224         openbox/group.h \
225         openbox/keyboard.c \
226         openbox/keyboard.h \
227         openbox/keytree.c \
228         openbox/keytree.h \
229         openbox/mainloop.c \
230         openbox/mainloop.h \
231         openbox/menuframe.c \
232         openbox/menuframe.h \
233         openbox/menu.c \
234         openbox/menu.h \
235         openbox/misc.h \
236         openbox/modkeys.c \
237         openbox/modkeys.h \
238         openbox/mouse.c \
239         openbox/mouse.h \
240         openbox/moveresize.c \
241         openbox/moveresize.h \
242         openbox/mwm.h \
243         openbox/openbox.c \
244         openbox/openbox.h \
245         openbox/place.c \
246         openbox/place.h \
247         openbox/popup.c \
248         openbox/popup.h \
249         openbox/prop.c \
250         openbox/prop.h \
251         openbox/propwin.c \
252         openbox/propwin.h \
253         openbox/resist.c \
254         openbox/resist.h \
255         openbox/screen.c \
256         openbox/screen.h \
257         openbox/session.c \
258         openbox/session.h \
259         openbox/stacking.c \
260         openbox/stacking.h \
261         openbox/startupnotify.c \
262         openbox/startupnotify.h \
263         openbox/translate.c \
264         openbox/translate.h \
265         openbox/window.c \
266         openbox/window.h \
267         openbox/xerror.c \
268         openbox/xerror.h
269
270
271 ## gnome-panel-control ##
272
273 tools_gnome_panel_control_gnome_panel_control_CPPFLAGS = \
274         $(X_CFLAGS)
275 tools_gnome_panel_control_gnome_panel_control_LDADD = \
276         $(X_LIBS)
277 tools_gnome_panel_control_gnome_panel_control_SOURCES = \
278         tools/gnome-panel-control/gnome-panel-control.c
279
280
281 ## default button masks ##
282 dist_docxbm_DATA = \
283         data/xbm/bullet.xbm \
284         data/xbm/close.xbm \
285         data/xbm/desk_toggled.xbm \
286         data/xbm/desk.xbm \
287         data/xbm/iconify.xbm \
288         data/xbm/max_toggled.xbm \
289         data/xbm/max.xbm \
290         data/xbm/shade_toggled.xbm \
291         data/xbm/shade.xbm
292
293
294 ## themes ##
295
296 clearlooks_themedir = $(themedir)/Clearlooks/openbox-3
297 dist_clearlooks_theme_DATA= \
298         themes/Clearlooks/openbox-3/themerc
299
300 clearlooksolive_themedir = $(themedir)/Clearlooks-Olive/openbox-3
301 dist_clearlooksolive_theme_DATA= \
302         themes/Clearlooks-Olive/openbox-3/themerc
303
304 mikachu_themedir = $(themedir)/Mikachu/openbox-3
305 dist_mikachu_theme_DATA= \
306         themes/Mikachu/openbox-3/bullet.xbm \
307         themes/Mikachu/openbox-3/close.xbm \
308         themes/Mikachu/openbox-3/desk.xbm \
309         themes/Mikachu/openbox-3/iconify.xbm \
310         themes/Mikachu/openbox-3/max.xbm \
311         themes/Mikachu/openbox-3/themerc
312
313
314 natura_themedir = $(themedir)/Natura/openbox-3
315 dist_natura_theme_DATA= \
316         themes/Natura/openbox-3/close_hover.xbm \
317         themes/Natura/openbox-3/close.xbm \
318         themes/Natura/openbox-3/desk_toggled.xbm \
319         themes/Natura/openbox-3/desk_hover.xbm \
320         themes/Natura/openbox-3/desk.xbm \
321         themes/Natura/openbox-3/iconify_hover.xbm \
322         themes/Natura/openbox-3/iconify.xbm \
323         themes/Natura/openbox-3/max_hover.xbm \
324         themes/Natura/openbox-3/max_toggled.xbm \
325         themes/Natura/openbox-3/max.xbm \
326         themes/Natura/openbox-3/shade.xbm \
327         themes/Natura/openbox-3/shade_hover.xbm \
328         themes/Natura/openbox-3/themerc
329
330 artwizboxed_themedir = $(themedir)/Artwiz-boxed/openbox-3
331 dist_artwizboxed_theme_DATA= \
332         themes/Artwiz-boxed/openbox-3/themerc
333
334 bear2_themedir = $(themedir)/Bear2/openbox-3
335 dist_bear2_theme_DATA= \
336         themes/Bear2/openbox-3/close_pressed.xbm \
337         themes/Bear2/openbox-3/close.xbm \
338         themes/Bear2/openbox-3/desk_toggled.xbm \
339         themes/Bear2/openbox-3/desk.xbm \
340         themes/Bear2/openbox-3/iconify_pressed.xbm \
341         themes/Bear2/openbox-3/iconify.xbm \
342         themes/Bear2/openbox-3/max_pressed.xbm \
343         themes/Bear2/openbox-3/max_toggled.xbm \
344         themes/Bear2/openbox-3/max.xbm \
345         themes/Bear2/openbox-3/shade_pressed.xbm \
346         themes/Bear2/openbox-3/shade.xbm \
347         themes/Bear2/openbox-3/themerc
348
349 orang_themedir = $(themedir)/Orang/openbox-3
350 dist_orang_theme_DATA= \
351         themes/Orang/openbox-3/themerc
352
353 onyx_themedir = $(themedir)/Onyx/openbox-3
354 dist_onyx_theme_DATA= \
355         themes/Onyx/openbox-3/themerc
356
357 onyxcitrus_themedir = $(themedir)/Onyx-Citrus/openbox-3
358 dist_onyxcitrus_theme_DATA= \
359         themes/Onyx-Citrus/openbox-3/themerc
360
361 syscrash_themedir = $(themedir)/Syscrash/openbox-3
362 dist_syscrash_theme_DATA= \
363         themes/Syscrash/openbox-3/max_disabled.xbm \
364         themes/Syscrash/openbox-3/max_pressed.xbm \
365         themes/Syscrash/openbox-3/max_toggled.xbm \
366         themes/Syscrash/openbox-3/max.xbm \
367         themes/Syscrash/openbox-3/themerc
368
369 ## public headers ##
370
371 pubinclude_HEADERS = \
372         render/color.h \
373         render/font.h \
374         render/geom.h \
375         render/gradient.h \
376         render/image.h \
377         render/instance.h \
378         render/mask.h \
379         render/render.h \
380         render/theme.h \
381         parser/parse.h
382
383 nodist_pubinclude_HEADERS = \
384         version.h
385
386 nodist_pkgconfig_DATA = \
387         render/obrender-3.0.pc \
388         parser/obparser-3.0.pc
389
390 ## data ##
391
392 dist_pixmap_DATA = \
393         data/openbox.png
394
395 dist_rc_DATA = \
396         data/autostart.sh \
397         data/rc.xml \
398         data/menu.xml
399
400 edit = $(SED) \
401         -e 's!@version\@!$(VERSION)!' \
402         -e 's!@configdir\@!$(configdir)!' \
403         -e 's!@bindir\@!$(bindir)!'
404
405 %.desktop: %.desktop.in Makefile
406         @echo make: creating $@
407         @$(edit) $< >$@ 
408
409 %-session: %-session.in Makefile
410         @echo make: creating $@
411         @$(edit) $< >$@ 
412
413 %.1.in: %.1.sgml
414         @echo make: creating $@
415         @docbook-to-man $< >$@
416
417 %.1: %.1.in Makefile
418         @echo make: creating $@
419         @$(edit) $< >$@ 
420
421 dist_gnomewmfiles_DATA = \
422         data/gnome-wm-properties/openbox.desktop
423
424 nodist_xsessions_DATA = \
425         data/xsession/openbox.desktop \
426         data/xsession/openbox-gnome.desktop \
427         data/xsession/openbox-kde.desktop
428
429 dist_noinst_DATA = \
430         version.h.in \
431         data/rc.xsd \
432         data/menu.xsd \
433         data/xsession/openbox.desktop.in \
434         data/xsession/openbox-gnome.desktop.in \
435         data/xsession/openbox-kde.desktop.in \
436         data/xsession/openbox-session.in \
437         data/xsession/openbox-gnome-session.in \
438         data/xsession/openbox-kde-session.in \
439         doc/openbox.1.sgml \
440         doc/openbox.1.in \
441         doc/openbox-session.1.sgml \
442         doc/openbox-session.1.in \
443         doc/openbox-gnome-session.1.sgml \
444         doc/openbox-gnome-session.1.in \
445         doc/openbox-kde-session.1.sgml \
446         doc/openbox-kde-session.1.in \
447         render/obrender-3.0.pc.in \
448         parser/obparser-3.0.pc.in \
449         tools/themeupdate/themeupdate.py \
450         tests/hideshow.py \
451         tests/Makefile \
452         tests/aspect.c \
453         tests/fullscreen.c \
454         tests/grav.c \
455         tests/grouptran.c \
456         tests/icons.c \
457         tests/modal2.c \
458         tests/modal3.c \
459         tests/modal.c \
460         tests/noresize.c \
461         tests/override.c \
462         tests/positioned.c \
463         tests/strut.c \
464         tests/title.c \
465         tests/urgent.c
466
467 dist_doc_DATA = \
468         COMPLIANCE \
469         README \
470         AUTHORS \
471         CHANGELOG \
472         COPYING \
473         data/rc.xsd \
474         data/menu.xsd \
475         doc/rc-mouse-focus.xml
476
477 nodist_man_MANS = \
478         doc/openbox.1 \
479         doc/openbox-session.1 \
480         doc/openbox-gnome-session.1 \
481         doc/openbox-kde-session.1
482
483 EXTRA_DIST = \
484         config.rpath \
485         mkinstalldirs
486
487 # make clean doesn't delete these for some reason, even though they are
488 # built by make
489 CLEANFILES = \
490         doc/openbox.1 \
491         doc/openbox-session.1 \
492         doc/openbox-gnome-session.1 \
493         doc/openbox-kde-session.1 \
494         data/xsession/openbox-session \
495         data/xsession/openbox-gnome-session \
496         data/xsession/openbox-kde-session \
497         data/xsession/openbox.desktop \
498         data/xsession/openbox-gnome.desktop \
499         data/xsession/openbox-kde.desktop
500
501 #doc:
502 #       $(MAKE) -$(MAKEFLAGS) -C doc/doxygen doc
503
504 distclean-local:
505         for d in . m4 po render; do \
506                 for p in core core.* gmon.out *\~ *.orig *.rej .\#*; do \
507                         rm -f "$$d/$$p"; \
508                 done \
509         done
510
511 .PHONY: doc