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