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