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