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