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