Remove unneeded obrender/button.h
[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 gnomesessiondir = $(datadir)/gnome-session/sessions
10 gnomewmfilesdir = $(datadir)/gnome/wm-properties
11 pkgconfigdir    = $(libdir)/pkgconfig
12 obtpubincludedir= $(includedir)/openbox/@OBT_VERSION@/obt
13 rrpubincludedir = $(includedir)/openbox/@RR_VERSION@/obrender
14 pixmapdir       = $(datadir)/pixmaps
15 xsddir          = $(datadir)/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 nodist_bin_SCRIPTS = \
40         data/xsession/openbox-session \
41         data/xsession/openbox-gnome-session \
42         data/xsession/openbox-kde-session
43
44 dist_rc_SCRIPTS = \
45         data/environment
46
47 nodist_rc_SCRIPTS = \
48         data/autostart/autostart
49
50 dist_libexec_SCRIPTS = \
51         data/autostart/openbox-xdg-autostart
52
53 nodist_libexec_SCRIPTS = \
54         data/autostart/openbox-autostart
55
56
57 ## obrender ##
58
59 obrender_rendertest_CPPFLAGS = \
60         $(PANGO_CFLAGS) \
61         $(GLIB_CFLAGS) \
62         -DG_LOG_DOMAIN=\"RenderTest\"
63 obrender_rendertest_LDADD = \
64         obt/libobt.la \
65         obrender/libobrender.la \
66         $(GLIB_LIBS) \
67         $(PANGO_LIBS) \
68         $(XML_LIBS) \
69         $(X_LIBS)
70 obrender_rendertest_SOURCES = obrender/test.c
71
72 obrender_libobrender_la_CPPFLAGS = \
73         $(X_CFLAGS) \
74         $(GLIB_CFLAGS) \
75         $(XML_CFLAGS) \
76         $(PANGO_CFLAGS) \
77         $(IMLIB2_CFLAGS) \
78         $(LIBRSVG_CFLAGS) \
79         -DG_LOG_DOMAIN=\"ObRender\" \
80         -DDEFAULT_THEME=\"$(theme)\"
81 obrender_libobrender_la_LDFLAGS = \
82         -version-info $(RR_CURRENT):$(RR_REVISION):$(RR_AGE)
83 obrender_libobrender_la_LIBADD = \
84         obt/libobt.la \
85         $(X_LIBS) \
86         $(PANGO_LIBS) \
87         $(GLIB_LIBS) \
88         $(IMLIB2_LIBS) \
89         $(LIBRSVG_LIBS) \
90         $(XML_LIBS)
91 obrender_libobrender_la_SOURCES = \
92         gettext.h \
93         obrender/button.c \
94         obrender/color.h \
95         obrender/color.c \
96         obrender/font.h \
97         obrender/font.c \
98         obrender/geom.h \
99         obrender/gradient.h \
100         obrender/gradient.c \
101         obrender/icon.h \
102         obrender/image.h \
103         obrender/image.c \
104         obrender/imagecache.h \
105         obrender/imagecache.c \
106         obrender/instance.h \
107         obrender/instance.c \
108         obrender/mask.h \
109         obrender/mask.c \
110         obrender/render.h \
111         obrender/render.c \
112         obrender/theme.h \
113         obrender/theme.c
114
115 ## obt ##
116
117 obt_libobt_la_CPPFLAGS = \
118         $(X_CFLAGS) \
119         $(XINERAMA_CFLAGS) \
120         $(XKB_CFLAGS) \
121         $(XRANDR_CFLAGS) \
122         $(XSHAPE_CFLAGS) \
123         $(XSYNC_CFLAGS) \
124         $(GLIB_CFLAGS) \
125         $(XML_CFLAGS) \
126         -DG_LOG_DOMAIN=\"Obt\" \
127         -DLOCALEDIR=\"$(localedir)\" \
128         -DDATADIR=\"$(datadir)\" \
129         -DCONFIGDIR=\"$(configdir)\"
130 obt_libobt_la_LDFLAGS = \
131         -version-info $(OBT_CURRENT):$(OBT_REVISION):$(OBT_AGE)
132 obt_libobt_la_LIBADD = \
133         $(X_LIBS) \
134         $(XINERAMA_LIBS) \
135         $(XKB_LIBS) \
136         $(XRANDR_LIBS) \
137         $(XSHAPE_LIBS) \
138         $(XSYNC_LIBS) \
139         $(GLIB_LIBS) \
140         $(XML_LIBS)
141 obt_libobt_la_SOURCES = \
142         obt/bsearch.h \
143         obt/display.h \
144         obt/display.c \
145         obt/internal.h \
146         obt/keyboard.h \
147         obt/keyboard.c \
148         obt/xml.h \
149         obt/xml.c \
150         obt/ddparse.h \
151         obt/ddparse.c \
152         obt/link.h \
153         obt/link.c \
154         obt/paths.h \
155         obt/paths.c \
156         obt/prop.h \
157         obt/prop.c \
158         obt/signal.h \
159         obt/signal.c \
160         obt/util.h \
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/client.c \
238         openbox/client.h \
239         openbox/client_list_menu.c \
240         openbox/client_list_menu.h \
241         openbox/client_list_combined_menu.c \
242         openbox/client_list_combined_menu.h \
243         openbox/client_menu.c \
244         openbox/client_menu.h \
245         openbox/config.c \
246         openbox/config.h \
247         openbox/debug.c \
248         openbox/debug.h \
249         openbox/dock.c \
250         openbox/dock.h \
251         openbox/event.c \
252         openbox/event.h \
253         openbox/focus.c \
254         openbox/focus.h \
255         openbox/focus_cycle.c \
256         openbox/focus_cycle.h \
257         openbox/focus_cycle_indicator.c \
258         openbox/focus_cycle_indicator.h \
259         openbox/focus_cycle_popup.c \
260         openbox/focus_cycle_popup.h \
261         openbox/frame.c \
262         openbox/frame.h \
263         openbox/framerender.c \
264         openbox/framerender.h \
265         openbox/geom.h \
266         openbox/grab.c \
267         openbox/grab.h \
268         openbox/group.c \
269         openbox/group.h \
270         openbox/keyboard.c \
271         openbox/keyboard.h \
272         openbox/keytree.c \
273         openbox/keytree.h \
274         openbox/menuframe.c \
275         openbox/menuframe.h \
276         openbox/menu.c \
277         openbox/menu.h \
278         openbox/misc.h \
279         openbox/mouse.c \
280         openbox/mouse.h \
281         openbox/moveresize.c \
282         openbox/moveresize.h \
283         openbox/mwm.h \
284         openbox/openbox.c \
285         openbox/openbox.h \
286         openbox/ping.c \
287         openbox/ping.h \
288         openbox/place.c \
289         openbox/place.h \
290         openbox/place_overlap.c \
291         openbox/place_overlap.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/display.h \
455         obt/keyboard.h \
456         obt/xml.h \
457         obt/paths.h \
458         obt/prop.h \
459         obt/signal.h \
460         obt/util.h \
461         obt/version.h \
462         obt/xqueue.h
463
464 nodist_pkgconfig_DATA = \
465         obrender/obrender-3.5.pc \
466         obt/obt-3.5.pc
467
468 ## data ##
469
470 dist_apps_DATA = \
471         data/openbox.desktop
472
473 dist_pixmap_DATA = \
474         data/openbox.png
475
476 dist_rc_DATA = \
477         data/rc.xml \
478         data/menu.xml
479
480 edit = $(SED) \
481         -e 's!@version\@!$(VERSION)!' \
482         -e 's!@configdir\@!$(configdir)!' \
483         -e 's!@rcdir\@!$(rcdir)!' \
484         -e 's!@libexecdir\@!$(libexecdir)!' \
485         -e 's!@bindir\@!$(bindir)!'
486
487 data/autostart/autostart: $(top_srcdir)/data/autostart/autostart.in Makefile
488         @echo make: creating $@
489         @test -d $(shell dirname $(top_builddir)/$@) || \
490           mkdir $(shell dirname $(top_builddir)/$@)
491         @$(edit) $< >$(top_builddir)/$@
492
493 data/autostart/openbox-autostart: $(top_srcdir)/data/autostart/openbox-autostart.in Makefile
494         @echo make: creating $@
495         @test -d $(shell dirname $(top_builddir)/$@) || \
496           mkdir $(shell dirname $(top_builddir)/$@)
497         @$(edit) $< >$(top_builddir)/$@
498
499 %.desktop: %.desktop.in Makefile
500         @echo make: creating $@
501         @$(edit) $< >$@ 
502
503 %-session: %-session.in Makefile
504         @echo make: creating $@
505         @$(edit) $< >$@ 
506
507 %.1.in: %.1.sgml
508         @echo make: creating $@
509         @docbook-to-man $< >$@
510
511 %.1: %.1.in Makefile
512         @echo make: creating $@
513         @$(edit) $< >$@ 
514
515 dist_gnomewmfiles_DATA = \
516         data/gnome-wm-properties/openbox.desktop
517
518 nodist_xsessions_DATA = \
519         data/xsession/openbox.desktop \
520         data/xsession/openbox-gnome.desktop \
521         data/xsession/openbox-kde.desktop
522
523 dist_gnomesession_DATA = \
524         data/gnome-session/openbox-gnome.session \
525         data/gnome-session/openbox-gnome-fallback.session
526
527 dist_noinst_DATA = \
528         data/rc.xsd \
529         data/menu.xsd \
530         data/autostart/autostart.in \
531         data/autostart/openbox-autostart.in \
532         data/xsession/openbox.desktop.in \
533         data/xsession/openbox-gnome.desktop.in \
534         data/xsession/openbox-kde.desktop.in \
535         data/xsession/openbox-session.in \
536         data/xsession/openbox-gnome-session.in \
537         data/xsession/openbox-kde-session.in \
538         doc/openbox.1.sgml \
539         doc/openbox.1.in \
540         doc/openbox-session.1.sgml \
541         doc/openbox-session.1.in \
542         doc/openbox-gnome-session.1.sgml \
543         doc/openbox-gnome-session.1.in \
544         doc/openbox-kde-session.1.sgml \
545         doc/openbox-kde-session.1.in \
546         doc/obxprop.1.sgml \
547         doc/obxprop.1.in \
548         obrender/version.h.in \
549         obrender/obrender-3.5.pc.in \
550         obt/obt-3.5.pc.in \
551         obt/version.h.in \
552         tools/themeupdate/themeupdate.py \
553         tests/hideshow.py \
554         tests/Makefile \
555         tests/aspect.c \
556         tests/fullscreen.c \
557         tests/grav.c \
558         tests/grouptran.c \
559         tests/icons.c \
560         tests/modal2.c \
561         tests/modal3.c \
562         tests/modal.c \
563         tests/noresize.c \
564         tests/override.c \
565         tests/positioned.c \
566         tests/strut.c \
567         tests/title.c \
568         tests/urgent.c
569
570 dist_doc_DATA = \
571         COMPLIANCE \
572         README \
573         AUTHORS \
574         CHANGELOG \
575         COPYING \
576         data/rc.xsd \
577         data/menu.xsd \
578         doc/rc-mouse-focus.xml
579
580 nodist_man_MANS = \
581         doc/openbox.1 \
582         doc/openbox-session.1 \
583         doc/openbox-gnome-session.1 \
584         doc/openbox-kde-session.1 \
585         doc/obxprop.1
586
587 EXTRA_DIST = \
588         config.rpath
589
590 # make clean doesn't delete these for some reason, even though they are
591 # built by make
592 CLEANFILES = \
593         $(nodist_man_MANS) \
594         $(nodist_bin_SCRIPTS) \
595         $(nodist_xsessions_DATA) \
596         $(nodist_rc_SCRIPTS) \
597         $(nodist_libexec_SCRIPTS)
598
599 #doc:
600 #       $(MAKE) -$(MAKEFLAGS) -C doc/doxygen doc
601
602 distclean-local:
603         for d in . m4 po obrender parser obt openbox; do \
604                 for p in core core.* gmon.out *\~ *.orig *.rej .\#*; do \
605                         rm -f "$$d/$$p"; \
606                 done \
607         done
608
609 .PHONY: doc