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