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