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