make an event queue for X events. the queue's min size is 16 XEvents (~3k)
[mikachu/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 obtpubincludedir= $(includedir)/openbox/@OBT_VERSION@/obt
12 rrpubincludedir = $(includedir)/openbox/@RR_VERSION@/obrender
13 pixmapdir       = $(datadir)/pixmaps
14 xsddir          = $(datadir)/openbox
15 appsdir         = $(datadir)/applications
16
17 theme = Clearlooks
18
19 AUTOMAKE_OPTIONS = subdir-objects foreign
20
21 ACLOCAL_AMFLAGS = -I m4
22
23 INCLUDES = -I.
24
25 check_PROGRAMS = \
26         obrender/rendertest
27
28 lib_LTLIBRARIES = \
29         obt/libobt.la \
30         obrender/libobrender.la
31
32 bin_PROGRAMS = \
33         openbox/openbox \
34         tools/gdm-control/gdm-control \
35         tools/gnome-panel-control/gnome-panel-control \
36         tools/obxprop/obxprop
37
38 nodist_bin_SCRIPTS = \
39         data/xsession/openbox-session \
40         data/xsession/openbox-gnome-session \
41         data/xsession/openbox-kde-session
42
43 dist_rc_SCRIPTS = \
44         data/environment \
45         data/autostart/autostart
46
47 dist_libexec_SCRIPTS = \
48         data/autostart/openbox-xdg-autostart \
49         data/autostart/openbox-autostart
50
51
52 ## obrender ##
53
54 obrender_rendertest_CPPFLAGS = \
55         $(PANGO_CFLAGS) \
56         $(GLIB_CFLAGS) \
57         -DG_LOG_DOMAIN=\"RenderTest\"
58 obrender_rendertest_LDADD = \
59         obt/libobt.la \
60         obrender/libobrender.la \
61         $(GLIB_LIBS) \
62         $(PANGO_LIBS) \
63         $(XML_LIBS) \
64         $(X_LIBS)
65 obrender_rendertest_SOURCES = obrender/test.c
66
67 obrender_libobrender_la_CPPFLAGS = \
68         $(X_CFLAGS) \
69         $(GLIB_CFLAGS) \
70         $(XML_CFLAGS) \
71         $(PANGO_CFLAGS) \
72         $(IMLIB2_CFLAGS) \
73         -DG_LOG_DOMAIN=\"ObRender\" \
74         -DDEFAULT_THEME=\"$(theme)\"
75 obrender_libobrender_la_LDFLAGS = \
76         -version-info $(RR_CURRENT):$(RR_REVISION):$(RR_AGE)
77 obrender_libobrender_la_LIBADD = \
78         $(X_LIBS) \
79         $(PANGO_LIBS) \
80         $(GLIB_LIBS) \
81         $(IMLIB2_LIBS) \
82         $(XML_LIBS)
83 obrender_libobrender_la_SOURCES = \
84         gettext.h \
85         obrender/color.h \
86         obrender/color.c \
87         obrender/font.h \
88         obrender/font.c \
89         obrender/geom.h \
90         obrender/gradient.h \
91         obrender/gradient.c \
92         obrender/icon.h \
93         obrender/image.h \
94         obrender/image.c \
95         obrender/imagecache.h \
96         obrender/imagecache.c \
97         obrender/instance.h \
98         obrender/instance.c \
99         obrender/mask.h \
100         obrender/mask.c \
101         obrender/render.h \
102         obrender/render.c \
103         obrender/theme.h \
104         obrender/theme.c
105
106 ## obt ##
107
108 obt_libobt_la_CPPFLAGS = \
109         $(XINERAMA_CFLAGS) \
110         $(XKB_CFLAGS) \
111         $(XRANDR_CFLAGS) \
112         $(XSHAPE_CFLAGS) \
113         $(XSYNC_CFLAGS) \
114         $(GLIB_CFLAGS) \
115         $(XML_CFLAGS) \
116         -DG_LOG_DOMAIN=\"Obt\" \
117         -DLOCALEDIR=\"$(localedir)\" \
118         -DDATADIR=\"$(datadir)\" \
119         -DCONFIGDIR=\"$(configdir)\"
120 obt_libobt_la_LDFLAGS = \
121         -version-info $(OBT_CURRENT):$(OBT_REVISION):$(OBT_AGE)
122 obt_libobt_la_LIBADD = \
123         $(XINERAMA_LIBS) \
124         $(XKB_LIBS) \
125         $(XRANDR_LIBS) \
126         $(XSHAPE_LIBS) \
127         $(XSYNC_LIBS) \
128         $(GLIB_LIBS) \
129         $(XML_LIBS)
130 obt_libobt_la_SOURCES = \
131         obt/bsearch.h \
132         obt/display.h \
133         obt/display.c \
134         obt/internal.h \
135         obt/keyboard.h \
136         obt/keyboard.c \
137         obt/mainloop.h \
138         obt/mainloop.c \
139         obt/xml.h \
140         obt/xml.c \
141         obt/ddparse.h \
142         obt/ddparse.c \
143         obt/link.h \
144         obt/link.c \
145         obt/paths.h \
146         obt/paths.c \
147         obt/prop.h \
148         obt/prop.c \
149         obt/util.h \
150         obt/xevent.h \
151         obt/xevent.c \
152         obt/xqueue.h \
153         obt/xqueue.c
154
155 ## openbox ##
156
157 openbox_openbox_CPPFLAGS = \
158         $(SM_CFLAGS) \
159         $(X_CFLAGS) \
160         $(XCURSOR_CFLAGS) \
161         $(SM_CFLAGS) \
162         $(PANGO_CFLAGS) \
163         $(GLIB_CFLAGS) \
164         $(LIBSN_CFLAGS) \
165         $(XML_CFLAGS) \
166         -DLOCALEDIR=\"$(localedir)\" \
167         -DDATADIR=\"$(datadir)\" \
168         -DCONFIGDIR=\"$(configdir)\" \
169         -DG_LOG_DOMAIN=\"Openbox\"
170 openbox_openbox_LDADD = \
171         $(SM_LIBS) \
172         $(GLIB_LIBS) \
173         $(X_LIBS) \
174         $(XCURSOR_LIBS) \
175         $(LIBSN_LIBS) \
176         $(XML_LIBS) \
177         $(EFENCE_LIBS) \
178         $(LIBINTL) \
179         obrender/libobrender.la \
180         obt/libobt.la
181 openbox_openbox_LDFLAGS = -export-dynamic
182 openbox_openbox_SOURCES = \
183         gettext.h \
184         openbox/actions/all.c \
185         openbox/actions/all.h \
186         openbox/actions/addremovedesktop.c \
187         openbox/actions/breakchroot.c \
188         openbox/actions/close.c \
189         openbox/actions/cyclewindows.c \
190         openbox/actions/debug.c \
191         openbox/actions/decorations.c \
192         openbox/actions/desktop.c \
193         openbox/actions/dockautohide.c \
194         openbox/actions/directionalwindows.c \
195         openbox/actions/execute.c \
196         openbox/actions/exit.c \
197         openbox/actions/focus.c \
198         openbox/actions/focustobottom.c \
199         openbox/actions/fullscreen.c \
200         openbox/actions/growtoedge.c \
201         openbox/actions/iconify.c \
202         openbox/actions/if.c \
203         openbox/actions/kill.c \
204         openbox/actions/layer.c \
205         openbox/actions/lower.c \
206         openbox/actions/maximize.c \
207         openbox/actions/move.c \
208         openbox/actions/moverelative.c \
209         openbox/actions/moveresizeto.c \
210         openbox/actions/movetoedge.c \
211         openbox/actions/omnipresent.c \
212         openbox/actions/raise.c \
213         openbox/actions/raiselower.c \
214         openbox/actions/reconfigure.c \
215         openbox/actions/resize.c \
216         openbox/actions/resizerelative.c \
217         openbox/actions/restart.c \
218         openbox/actions/shade.c \
219         openbox/actions/shadelowerraise.c \
220         openbox/actions/showdesktop.c \
221         openbox/actions/showmenu.c \
222         openbox/actions/unfocus.c \
223         openbox/actions.c \
224         openbox/actions.h \
225         openbox/client.c \
226         openbox/client.h \
227         openbox/client_list_menu.c \
228         openbox/client_list_menu.h \
229         openbox/client_list_combined_menu.c \
230         openbox/client_list_combined_menu.h \
231         openbox/client_menu.c \
232         openbox/client_menu.h \
233         openbox/config.c \
234         openbox/config.h \
235         openbox/debug.c \
236         openbox/debug.h \
237         openbox/dock.c \
238         openbox/dock.h \
239         openbox/event.c \
240         openbox/event.h \
241         openbox/focus.c \
242         openbox/focus.h \
243         openbox/focus_cycle.c \
244         openbox/focus_cycle.h \
245         openbox/focus_cycle_indicator.c \
246         openbox/focus_cycle_indicator.h \
247         openbox/focus_cycle_popup.c \
248         openbox/focus_cycle_popup.h \
249         openbox/frame.c \
250         openbox/frame.h \
251         openbox/framerender.c \
252         openbox/framerender.h \
253         openbox/geom.h \
254         openbox/grab.c \
255         openbox/grab.h \
256         openbox/group.c \
257         openbox/group.h \
258         openbox/keyboard.c \
259         openbox/keyboard.h \
260         openbox/keytree.c \
261         openbox/keytree.h \
262         openbox/menuframe.c \
263         openbox/menuframe.h \
264         openbox/menu.c \
265         openbox/menu.h \
266         openbox/misc.h \
267         openbox/mouse.c \
268         openbox/mouse.h \
269         openbox/moveresize.c \
270         openbox/moveresize.h \
271         openbox/mwm.h \
272         openbox/openbox.c \
273         openbox/openbox.h \
274         openbox/ping.c \
275         openbox/ping.h \
276         openbox/place.c \
277         openbox/place.h \
278         openbox/prompt.c \
279         openbox/prompt.h \
280         openbox/popup.c \
281         openbox/popup.h \
282         openbox/resist.c \
283         openbox/resist.h \
284         openbox/screen.c \
285         openbox/screen.h \
286         openbox/session.c \
287         openbox/session.h \
288         openbox/stacking.c \
289         openbox/stacking.h \
290         openbox/startupnotify.c \
291         openbox/startupnotify.h \
292         openbox/translate.c \
293         openbox/translate.h \
294         openbox/window.c \
295         openbox/window.h
296
297
298 ## gnome-panel-control ##
299
300 tools_gnome_panel_control_gnome_panel_control_CPPFLAGS = \
301         $(X_CFLAGS)
302 tools_gnome_panel_control_gnome_panel_control_LDADD = \
303         $(X_LIBS)
304 tools_gnome_panel_control_gnome_panel_control_SOURCES = \
305         tools/gnome-panel-control/gnome-panel-control.c
306
307 ## obxprop ##
308
309 tools_obxprop_obxprop_CPPFLAGS = \
310         $(GLIB_CFLAGS) \
311         $(X_CFLAGS)
312 tools_obxprop_obxprop_LDADD = \
313         $(GLIB_LIBS) \
314         $(X_LIBS)
315 tools_obxprop_obxprop_SOURCES = \
316         tools/obxprop/obxprop.c
317
318 ## gdm-control ##
319
320 tools_gdm_control_gdm_control_CPPFLAGS = \
321         $(X_CFLAGS) \
322         $(GLIB_CFLAGS)
323 tools_gdm_control_gdm_control_LDADD = \
324         $(X_LIBS) \
325         $(GLIB_LIBS)
326 tools_gdm_control_gdm_control_SOURCES = \
327         tools/gdm-control/gdm-control.c
328
329
330 ## default button masks ##
331 dist_docxbm_DATA = \
332         data/xbm/bullet.xbm \
333         data/xbm/close.xbm \
334         data/xbm/desk_toggled.xbm \
335         data/xbm/desk.xbm \
336         data/xbm/iconify.xbm \
337         data/xbm/max_toggled.xbm \
338         data/xbm/max.xbm \
339         data/xbm/shade_toggled.xbm \
340         data/xbm/shade.xbm
341
342
343 ## themes ##
344
345 clearlooks_themedir = $(themedir)/Clearlooks/openbox-3
346 dist_clearlooks_theme_DATA= \
347         themes/Clearlooks/openbox-3/themerc
348
349 clearlooks34_themedir = $(themedir)/Clearlooks/openbox-3
350 dist_clearlooks34_theme_DATA= \
351         themes/Clearlooks-3.4/openbox-3/themerc
352
353 clearlooksolive_themedir = $(themedir)/Clearlooks-Olive/openbox-3
354 dist_clearlooksolive_theme_DATA= \
355         themes/Clearlooks-Olive/openbox-3/themerc
356
357 mikachu_themedir = $(themedir)/Mikachu/openbox-3
358 dist_mikachu_theme_DATA= \
359         themes/Mikachu/openbox-3/bullet.xbm \
360         themes/Mikachu/openbox-3/close.xbm \
361         themes/Mikachu/openbox-3/desk.xbm \
362         themes/Mikachu/openbox-3/iconify.xbm \
363         themes/Mikachu/openbox-3/max.xbm \
364         themes/Mikachu/openbox-3/themerc
365
366
367 natura_themedir = $(themedir)/Natura/openbox-3
368 dist_natura_theme_DATA= \
369         themes/Natura/openbox-3/close_hover.xbm \
370         themes/Natura/openbox-3/close.xbm \
371         themes/Natura/openbox-3/desk_toggled.xbm \
372         themes/Natura/openbox-3/desk_hover.xbm \
373         themes/Natura/openbox-3/desk.xbm \
374         themes/Natura/openbox-3/iconify_hover.xbm \
375         themes/Natura/openbox-3/iconify.xbm \
376         themes/Natura/openbox-3/max_hover.xbm \
377         themes/Natura/openbox-3/max_toggled.xbm \
378         themes/Natura/openbox-3/max.xbm \
379         themes/Natura/openbox-3/shade.xbm \
380         themes/Natura/openbox-3/shade_hover.xbm \
381         themes/Natura/openbox-3/themerc
382
383 artwizboxed_themedir = $(themedir)/Artwiz-boxed/openbox-3
384 dist_artwizboxed_theme_DATA= \
385         themes/Artwiz-boxed/openbox-3/themerc
386
387 bear2_themedir = $(themedir)/Bear2/openbox-3
388 dist_bear2_theme_DATA= \
389         themes/Bear2/openbox-3/close_pressed.xbm \
390         themes/Bear2/openbox-3/close.xbm \
391         themes/Bear2/openbox-3/desk_toggled.xbm \
392         themes/Bear2/openbox-3/desk.xbm \
393         themes/Bear2/openbox-3/iconify_pressed.xbm \
394         themes/Bear2/openbox-3/iconify.xbm \
395         themes/Bear2/openbox-3/max_pressed.xbm \
396         themes/Bear2/openbox-3/max_toggled.xbm \
397         themes/Bear2/openbox-3/max.xbm \
398         themes/Bear2/openbox-3/shade_pressed.xbm \
399         themes/Bear2/openbox-3/shade.xbm \
400         themes/Bear2/openbox-3/themerc
401
402 orang_themedir = $(themedir)/Orang/openbox-3
403 dist_orang_theme_DATA= \
404         themes/Orang/openbox-3/themerc
405
406 onyx_themedir = $(themedir)/Onyx/openbox-3
407 dist_onyx_theme_DATA= \
408         themes/Onyx/openbox-3/themerc
409
410 onyxcitrus_themedir = $(themedir)/Onyx-Citrus/openbox-3
411 dist_onyxcitrus_theme_DATA= \
412         themes/Onyx-Citrus/openbox-3/themerc
413
414 syscrash_themedir = $(themedir)/Syscrash/openbox-3
415 dist_syscrash_theme_DATA= \
416         themes/Syscrash/openbox-3/max_disabled.xbm \
417         themes/Syscrash/openbox-3/max_pressed.xbm \
418         themes/Syscrash/openbox-3/max_toggled.xbm \
419         themes/Syscrash/openbox-3/max.xbm \
420         themes/Syscrash/openbox-3/themerc
421
422 ## public headers ##
423
424 rrpubinclude_HEADERS = \
425         obrender/color.h \
426         obrender/font.h \
427         obrender/geom.h \
428         obrender/gradient.h \
429         obrender/image.h \
430         obrender/instance.h \
431         obrender/mask.h \
432         obrender/render.h \
433         obrender/theme.h \
434         obrender/version.h
435
436 obtpubinclude_HEADERS = \
437         obt/link.h \
438         obt/display.h \
439         obt/keyboard.h \
440         obt/mainloop.h \
441         obt/xml.h \
442         obt/paths.h \
443         obt/prop.h \
444         obt/util.h \
445         obt/version.h \
446         obt/xevent.h \
447         obt/xqueue.h
448
449 nodist_pkgconfig_DATA = \
450         obrender/obrender-3.5.pc \
451         obt/obt-3.5.pc
452
453 ## data ##
454
455 dist_apps_DATA = \
456         data/openbox.desktop
457
458 dist_pixmap_DATA = \
459         data/openbox.png
460
461 dist_rc_DATA = \
462         data/rc.xml \
463         data/menu.xml
464
465 edit = $(SED) \
466         -e 's!@version\@!$(VERSION)!' \
467         -e 's!@configdir\@!$(configdir)!' \
468         -e 's!@libexecdir\@!$(libexecdir)!' \
469         -e 's!@bindir\@!$(bindir)!'
470
471 data/autostart/autostart: $(srcdir)/data/autostart/autostart.in Makefile
472         @echo make: creating $@
473         @$(edit) $< >$@
474
475 data/autostart/openbox-autostart: $(srcdir)/data/autostart/openbox-autostart.in Makefile
476         @echo make: creating $@
477         @$(edit) $< >$@
478
479 %.desktop: %.desktop.in Makefile
480         @echo make: creating $@
481         @$(edit) $< >$@ 
482
483 %-session: %-session.in Makefile
484         @echo make: creating $@
485         @$(edit) $< >$@ 
486
487 %.1.in: %.1.sgml
488         @echo make: creating $@
489         @docbook-to-man $< >$@
490
491 %.1: %.1.in Makefile
492         @echo make: creating $@
493         @$(edit) $< >$@ 
494
495 dist_gnomewmfiles_DATA = \
496         data/gnome-wm-properties/openbox.desktop
497
498 nodist_xsessions_DATA = \
499         data/xsession/openbox.desktop \
500         data/xsession/openbox-gnome.desktop \
501         data/xsession/openbox-kde.desktop
502
503 dist_noinst_DATA = \
504         data/rc.xsd \
505         data/menu.xsd \
506         data/autostart/autostart.in \
507         data/autostart/openbox-autostart.in \
508         data/xsession/openbox.desktop.in \
509         data/xsession/openbox-gnome.desktop.in \
510         data/xsession/openbox-kde.desktop.in \
511         data/xsession/openbox-session.in \
512         data/xsession/openbox-gnome-session.in \
513         data/xsession/openbox-kde-session.in \
514         doc/openbox.1.sgml \
515         doc/openbox.1.in \
516         doc/openbox-session.1.sgml \
517         doc/openbox-session.1.in \
518         doc/openbox-gnome-session.1.sgml \
519         doc/openbox-gnome-session.1.in \
520         doc/openbox-kde-session.1.sgml \
521         doc/openbox-kde-session.1.in \
522         doc/obxprop.1.sgml \
523         doc/obxprop.1.in \
524         obrender/version.h.in \
525         obrender/obrender-3.5.pc.in \
526         obt/obt-3.5.pc.in \
527         obt/version.h.in \
528         tools/themeupdate/themeupdate.py \
529         tests/hideshow.py \
530         tests/Makefile \
531         tests/aspect.c \
532         tests/fullscreen.c \
533         tests/grav.c \
534         tests/grouptran.c \
535         tests/icons.c \
536         tests/modal2.c \
537         tests/modal3.c \
538         tests/modal.c \
539         tests/noresize.c \
540         tests/override.c \
541         tests/positioned.c \
542         tests/strut.c \
543         tests/title.c \
544         tests/urgent.c
545
546 dist_doc_DATA = \
547         COMPLIANCE \
548         README \
549         AUTHORS \
550         CHANGELOG \
551         COPYING \
552         data/rc.xsd \
553         data/menu.xsd \
554         doc/rc-mouse-focus.xml
555
556 nodist_man_MANS = \
557         doc/openbox.1 \
558         doc/openbox-session.1 \
559         doc/openbox-gnome-session.1 \
560         doc/openbox-kde-session.1 \
561         doc/obxprop.1
562
563 EXTRA_DIST = \
564         config.rpath
565
566 # make clean doesn't delete these for some reason, even though they are
567 # built by make
568 CLEANFILES = \
569         doc/openbox.1 \
570         doc/openbox-session.1 \
571         doc/openbox-gnome-session.1 \
572         doc/openbox-kde-session.1 \
573         data/xsession/openbox-session \
574         data/xsession/openbox-gnome-session \
575         data/xsession/openbox-kde-session \
576         data/xsession/openbox.desktop \
577         data/xsession/openbox-gnome.desktop \
578         data/xsession/openbox-kde.desktop
579
580 #doc:
581 #       $(MAKE) -$(MAKEFLAGS) -C doc/doxygen doc
582
583 distclean-local:
584         for d in . m4 po obrender parser obt openbox; do \
585                 for p in core core.* gmon.out *\~ *.orig *.rej .\#*; do \
586                         rm -f "$$d/$$p"; \
587                 done \
588         done
589
590 .PHONY: doc