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