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