]> icculus.org git repositories - mikachu/openbox.git/blob - Makefile.am
Add mostly working LowerOne and very buggy RaiseOne
[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/xml.h \
138         obt/xml.c \
139         obt/ddparse.h \
140         obt/ddparse.c \
141         obt/link.h \
142         obt/link.c \
143         obt/paths.h \
144         obt/paths.c \
145         obt/prop.h \
146         obt/prop.c \
147         obt/signal.h \
148         obt/signal.c \
149         obt/util.h \
150         obt/watch.h \
151         obt/watch.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/dock.c \
194         openbox/actions/dockautohide.c \
195         openbox/actions/directionalwindows.c \
196         openbox/actions/execute.c \
197         openbox/actions/exit.c \
198         openbox/actions/focus.c \
199         openbox/actions/focustobottom.c \
200         openbox/actions/fullscreen.c \
201         openbox/actions/growtoedge.c \
202         openbox/actions/iconify.c \
203         openbox/actions/if.c \
204         openbox/actions/kill.c \
205         openbox/actions/layer.c \
206         openbox/actions/lower.c \
207         openbox/actions/lowerraiseone.c \
208         openbox/actions/maximize.c \
209         openbox/actions/move.c \
210         openbox/actions/moverelative.c \
211         openbox/actions/moveresizeto.c \
212         openbox/actions/movetoedge.c \
213         openbox/actions/omnipresent.c \
214         openbox/actions/raise.c \
215         openbox/actions/raiselower.c \
216         openbox/actions/reconfigure.c \
217         openbox/actions/resize.c \
218         openbox/actions/resizerelative.c \
219         openbox/actions/restart.c \
220         openbox/actions/shade.c \
221         openbox/actions/shadelowerraise.c \
222         openbox/actions/showdesktop.c \
223         openbox/actions/showmenu.c \
224         openbox/actions/unfocus.c \
225         openbox/actions.c \
226         openbox/actions.h \
227         openbox/client.c \
228         openbox/client.h \
229         openbox/client_list_menu.c \
230         openbox/client_list_menu.h \
231         openbox/client_list_combined_menu.c \
232         openbox/client_list_combined_menu.h \
233         openbox/client_menu.c \
234         openbox/client_menu.h \
235         openbox/config.c \
236         openbox/config.h \
237         openbox/debug.c \
238         openbox/debug.h \
239         openbox/dock.c \
240         openbox/dock.h \
241         openbox/event.c \
242         openbox/event.h \
243         openbox/focus.c \
244         openbox/focus.h \
245         openbox/focus_cycle.c \
246         openbox/focus_cycle.h \
247         openbox/focus_cycle_indicator.c \
248         openbox/focus_cycle_indicator.h \
249         openbox/focus_cycle_popup.c \
250         openbox/focus_cycle_popup.h \
251         openbox/frame.c \
252         openbox/frame.h \
253         openbox/framerender.c \
254         openbox/framerender.h \
255         openbox/geom.h \
256         openbox/grab.c \
257         openbox/grab.h \
258         openbox/group.c \
259         openbox/group.h \
260         openbox/keyboard.c \
261         openbox/keyboard.h \
262         openbox/keytree.c \
263         openbox/keytree.h \
264         openbox/menuframe.c \
265         openbox/menuframe.h \
266         openbox/menu.c \
267         openbox/menu.h \
268         openbox/misc.h \
269         openbox/mouse.c \
270         openbox/mouse.h \
271         openbox/moveresize.c \
272         openbox/moveresize.h \
273         openbox/mwm.h \
274         openbox/openbox.c \
275         openbox/openbox.h \
276         openbox/ping.c \
277         openbox/ping.h \
278         openbox/place.c \
279         openbox/place.h \
280         openbox/prompt.c \
281         openbox/prompt.h \
282         openbox/popup.c \
283         openbox/popup.h \
284         openbox/resist.c \
285         openbox/resist.h \
286         openbox/screen.c \
287         openbox/screen.h \
288         openbox/session.c \
289         openbox/session.h \
290         openbox/stacking.c \
291         openbox/stacking.h \
292         openbox/startupnotify.c \
293         openbox/startupnotify.h \
294         openbox/translate.c \
295         openbox/translate.h \
296         openbox/window.c \
297         openbox/window.h
298
299
300 ## gnome-panel-control ##
301
302 tools_gnome_panel_control_gnome_panel_control_CPPFLAGS = \
303         $(X_CFLAGS)
304 tools_gnome_panel_control_gnome_panel_control_LDADD = \
305         $(X_LIBS)
306 tools_gnome_panel_control_gnome_panel_control_SOURCES = \
307         tools/gnome-panel-control/gnome-panel-control.c
308
309 ## obxprop ##
310
311 tools_obxprop_obxprop_CPPFLAGS = \
312         $(GLIB_CFLAGS) \
313         $(X_CFLAGS)
314 tools_obxprop_obxprop_LDADD = \
315         $(GLIB_LIBS) \
316         $(X_LIBS)
317 tools_obxprop_obxprop_SOURCES = \
318         tools/obxprop/obxprop.c
319
320 ## gdm-control ##
321
322 tools_gdm_control_gdm_control_CPPFLAGS = \
323         $(X_CFLAGS) \
324         $(GLIB_CFLAGS)
325 tools_gdm_control_gdm_control_LDADD = \
326         $(X_LIBS) \
327         $(GLIB_LIBS)
328 tools_gdm_control_gdm_control_SOURCES = \
329         tools/gdm-control/gdm-control.c
330
331
332 ## default button masks ##
333 dist_docxbm_DATA = \
334         data/xbm/bullet.xbm \
335         data/xbm/close.xbm \
336         data/xbm/desk_toggled.xbm \
337         data/xbm/desk.xbm \
338         data/xbm/iconify.xbm \
339         data/xbm/max_toggled.xbm \
340         data/xbm/max.xbm \
341         data/xbm/shade_toggled.xbm \
342         data/xbm/shade.xbm
343
344
345 ## themes ##
346
347 clearlooks_themedir = $(themedir)/Clearlooks/openbox-3
348 dist_clearlooks_theme_DATA= \
349         themes/Clearlooks/openbox-3/themerc
350
351 clearlooks34_themedir = $(themedir)/Clearlooks/openbox-3
352 dist_clearlooks34_theme_DATA= \
353         themes/Clearlooks-3.4/openbox-3/themerc
354
355 clearlooksolive_themedir = $(themedir)/Clearlooks-Olive/openbox-3
356 dist_clearlooksolive_theme_DATA= \
357         themes/Clearlooks-Olive/openbox-3/themerc
358
359 mikachu_themedir = $(themedir)/Mikachu/openbox-3
360 dist_mikachu_theme_DATA= \
361         themes/Mikachu/openbox-3/bullet.xbm \
362         themes/Mikachu/openbox-3/close.xbm \
363         themes/Mikachu/openbox-3/desk.xbm \
364         themes/Mikachu/openbox-3/iconify.xbm \
365         themes/Mikachu/openbox-3/max.xbm \
366         themes/Mikachu/openbox-3/themerc
367
368
369 natura_themedir = $(themedir)/Natura/openbox-3
370 dist_natura_theme_DATA= \
371         themes/Natura/openbox-3/close_hover.xbm \
372         themes/Natura/openbox-3/close.xbm \
373         themes/Natura/openbox-3/desk_toggled.xbm \
374         themes/Natura/openbox-3/desk_hover.xbm \
375         themes/Natura/openbox-3/desk.xbm \
376         themes/Natura/openbox-3/iconify_hover.xbm \
377         themes/Natura/openbox-3/iconify.xbm \
378         themes/Natura/openbox-3/max_hover.xbm \
379         themes/Natura/openbox-3/max_toggled.xbm \
380         themes/Natura/openbox-3/max.xbm \
381         themes/Natura/openbox-3/shade.xbm \
382         themes/Natura/openbox-3/shade_hover.xbm \
383         themes/Natura/openbox-3/themerc
384
385 artwizboxed_themedir = $(themedir)/Artwiz-boxed/openbox-3
386 dist_artwizboxed_theme_DATA= \
387         themes/Artwiz-boxed/openbox-3/themerc
388
389 bear2_themedir = $(themedir)/Bear2/openbox-3
390 dist_bear2_theme_DATA= \
391         themes/Bear2/openbox-3/close_pressed.xbm \
392         themes/Bear2/openbox-3/close.xbm \
393         themes/Bear2/openbox-3/desk_toggled.xbm \
394         themes/Bear2/openbox-3/desk.xbm \
395         themes/Bear2/openbox-3/iconify_pressed.xbm \
396         themes/Bear2/openbox-3/iconify.xbm \
397         themes/Bear2/openbox-3/max_pressed.xbm \
398         themes/Bear2/openbox-3/max_toggled.xbm \
399         themes/Bear2/openbox-3/max.xbm \
400         themes/Bear2/openbox-3/shade_pressed.xbm \
401         themes/Bear2/openbox-3/shade.xbm \
402         themes/Bear2/openbox-3/themerc
403
404 orang_themedir = $(themedir)/Orang/openbox-3
405 dist_orang_theme_DATA= \
406         themes/Orang/openbox-3/themerc
407
408 onyx_themedir = $(themedir)/Onyx/openbox-3
409 dist_onyx_theme_DATA= \
410         themes/Onyx/openbox-3/themerc
411
412 onyxcitrus_themedir = $(themedir)/Onyx-Citrus/openbox-3
413 dist_onyxcitrus_theme_DATA= \
414         themes/Onyx-Citrus/openbox-3/themerc
415
416 syscrash_themedir = $(themedir)/Syscrash/openbox-3
417 dist_syscrash_theme_DATA= \
418         themes/Syscrash/openbox-3/max_disabled.xbm \
419         themes/Syscrash/openbox-3/max_pressed.xbm \
420         themes/Syscrash/openbox-3/max_toggled.xbm \
421         themes/Syscrash/openbox-3/max.xbm \
422         themes/Syscrash/openbox-3/themerc
423
424 ## public headers ##
425
426 rrpubinclude_HEADERS = \
427         obrender/color.h \
428         obrender/font.h \
429         obrender/geom.h \
430         obrender/gradient.h \
431         obrender/image.h \
432         obrender/instance.h \
433         obrender/mask.h \
434         obrender/render.h \
435         obrender/theme.h \
436         obrender/version.h
437
438 obtpubinclude_HEADERS = \
439         obt/link.h \
440         obt/display.h \
441         obt/keyboard.h \
442         obt/xml.h \
443         obt/paths.h \
444         obt/prop.h \
445         obt/signal.h \
446         obt/util.h \
447         obt/version.h \
448         obt/watch.h \
449         obt/xqueue.h
450
451 nodist_pkgconfig_DATA = \
452         obrender/obrender-3.5.pc \
453         obt/obt-3.5.pc
454
455 ## data ##
456
457 dist_apps_DATA = \
458         data/openbox.desktop
459
460 dist_pixmap_DATA = \
461         data/openbox.png
462
463 dist_rc_DATA = \
464         data/rc.xml \
465         data/menu.xml
466
467 edit = $(SED) \
468         -e 's!@version\@!$(VERSION)!' \
469         -e 's!@configdir\@!$(configdir)!' \
470         -e 's!@libexecdir\@!$(libexecdir)!' \
471         -e 's!@bindir\@!$(bindir)!'
472
473 data/autostart/autostart: $(srcdir)/data/autostart/autostart.in Makefile
474         @echo make: creating $@
475         @$(edit) $< >$@
476
477 data/autostart/openbox-autostart: $(srcdir)/data/autostart/openbox-autostart.in Makefile
478         @echo make: creating $@
479         @$(edit) $< >$@
480
481 %.desktop: %.desktop.in Makefile
482         @echo make: creating $@
483         @$(edit) $< >$@ 
484
485 %-session: %-session.in Makefile
486         @echo make: creating $@
487         @$(edit) $< >$@ 
488
489 %.1.in: %.1.sgml
490         @echo make: creating $@
491         @docbook-to-man $< >$@
492
493 %.1: %.1.in Makefile
494         @echo make: creating $@
495         @$(edit) $< >$@ 
496
497 dist_gnomewmfiles_DATA = \
498         data/gnome-wm-properties/openbox.desktop
499
500 nodist_xsessions_DATA = \
501         data/xsession/openbox.desktop \
502         data/xsession/openbox-gnome.desktop \
503         data/xsession/openbox-kde.desktop
504
505 dist_noinst_DATA = \
506         data/rc.xsd \
507         data/menu.xsd \
508         data/autostart/autostart.in \
509         data/autostart/openbox-autostart.in \
510         data/xsession/openbox.desktop.in \
511         data/xsession/openbox-gnome.desktop.in \
512         data/xsession/openbox-kde.desktop.in \
513         data/xsession/openbox-session.in \
514         data/xsession/openbox-gnome-session.in \
515         data/xsession/openbox-kde-session.in \
516         doc/openbox.1.sgml \
517         doc/openbox.1.in \
518         doc/openbox-session.1.sgml \
519         doc/openbox-session.1.in \
520         doc/openbox-gnome-session.1.sgml \
521         doc/openbox-gnome-session.1.in \
522         doc/openbox-kde-session.1.sgml \
523         doc/openbox-kde-session.1.in \
524         doc/obxprop.1.sgml \
525         doc/obxprop.1.in \
526         obrender/version.h.in \
527         obrender/obrender-3.5.pc.in \
528         obt/obt-3.5.pc.in \
529         obt/version.h.in \
530         tools/themeupdate/themeupdate.py \
531         tests/hideshow.py \
532         tests/Makefile \
533         tests/aspect.c \
534         tests/fullscreen.c \
535         tests/grav.c \
536         tests/grouptran.c \
537         tests/icons.c \
538         tests/modal2.c \
539         tests/modal3.c \
540         tests/modal.c \
541         tests/noresize.c \
542         tests/override.c \
543         tests/positioned.c \
544         tests/strut.c \
545         tests/title.c \
546         tests/urgent.c
547
548 dist_doc_DATA = \
549         COMPLIANCE \
550         README \
551         AUTHORS \
552         CHANGELOG \
553         COPYING \
554         data/rc.xsd \
555         data/menu.xsd \
556         doc/rc-mouse-focus.xml
557
558 nodist_man_MANS = \
559         doc/openbox.1 \
560         doc/openbox-session.1 \
561         doc/openbox-gnome-session.1 \
562         doc/openbox-kde-session.1 \
563         doc/obxprop.1
564
565 EXTRA_DIST = \
566         config.rpath
567
568 # make clean doesn't delete these for some reason, even though they are
569 # built by make
570 CLEANFILES = \
571         doc/openbox.1 \
572         doc/openbox-session.1 \
573         doc/openbox-gnome-session.1 \
574         doc/openbox-kde-session.1 \
575         data/xsession/openbox-session \
576         data/xsession/openbox-gnome-session \
577         data/xsession/openbox-kde-session \
578         data/xsession/openbox.desktop \
579         data/xsession/openbox-gnome.desktop \
580         data/xsession/openbox-kde.desktop
581
582 #doc:
583 #       $(MAKE) -$(MAKEFLAGS) -C doc/doxygen doc
584
585 distclean-local:
586         for d in . m4 po obrender parser obt openbox; do \
587                 for p in core core.* gmon.out *\~ *.orig *.rej .\#*; do \
588                         rm -f "$$d/$$p"; \
589                 done \
590         done
591
592 .PHONY: doc