add restart action
[dana/openbox-history.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 pubincludedir   = $(includedir)/openbox/@OB_VERSION@/openbox
12 pixmapdir       = $(datadir)/pixmaps
13 xsddir          = $(datadir)/openbox
14
15 theme = Clearlooks
16
17 AUTOMAKE_OPTIONS = subdir-objects foreign
18
19 ACLOCAL_AMFLAGS = -I m4
20
21 INCLUDES = -I.
22
23 check_PROGRAMS = \
24         render/rendertest
25
26 lib_LTLIBRARIES = \
27         parser/libobparser.la \
28         render/libobrender.la
29
30 bin_PROGRAMS = \
31         openbox/openbox \
32         tools/gnome-panel-control/gnome-panel-control
33
34 nodist_bin_SCRIPTS = \
35         data/xsession/openbox-session \
36         data/xsession/openbox-gnome-session \
37         data/xsession/openbox-kde-session
38
39 ## render ##
40
41 render_rendertest_CPPFLAGS = \
42         $(PANGO_CFLAGS) \
43         $(XFT_CFLAGS) \
44         $(GLIB_CFLAGS) \
45         -DG_LOG_DOMAIN=\"RenderTest\"
46 render_rendertest_LDADD = \
47         parser/libobparser.la \
48         render/libobrender.la \
49         $(GLIB_LIBS) \
50         $(PANGO_LIBS) \
51         $(XFT_LIBS) \
52         $(XML_LIBS) \
53         $(X_LIBS)
54 render_rendertest_SOURCES = render/test.c
55
56 render_libobrender_la_CPPFLAGS = \
57         $(X_CFLAGS) \
58         $(GLIB_CFLAGS) \
59         $(XML_CFLAGS) \
60         $(PANGO_CFLAGS) \
61         $(XFT_CFLAGS) \
62         -DG_LOG_DOMAIN=\"ObRender\" \
63         -DDEFAULT_THEME=\"$(theme)\"
64 render_libobrender_la_LDFLAGS = \
65         -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
66 render_libobrender_la_LIBADD = \
67         parser/libobparser.la \
68         $(X_LIBS) \
69         $(PANGO_LIBS) \
70         $(XFT_LIBS) \
71         $(GLIB_LIBS) \
72         $(XML_LIBS)
73 render_libobrender_la_SOURCES = \
74         gettext.h \
75         render/color.h \
76         render/color.c \
77         render/font.h \
78         render/font.c \
79         render/geom.h \
80         render/gradient.h \
81         render/gradient.c \
82         render/icon.h \
83         render/image.h \
84         render/image.c \
85         render/instance.h \
86         render/instance.c \
87         render/mask.h \
88         render/mask.c \
89         render/render.h \
90         render/render.c \
91         render/theme.h \
92         render/theme.c
93
94 ## parser ##
95
96 parser_libobparser_la_CPPFLAGS = \
97         $(GLIB_CFLAGS) \
98         $(XML_CFLAGS) \
99         -DG_LOG_DOMAIN=\"ObParser\" \
100         -DLOCALEDIR=\"$(localedir)\" \
101         -DDATADIR=\"$(datadir)\" \
102         -DCONFIGDIR=\"$(configdir)\"
103 parser_libobparser_la_LDFLAGS = \
104         -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
105 parser_libobparser_la_LIBADD = \
106         $(GLIB_LIBS) \
107         $(XML_LIBS) 
108 parser_libobparser_la_SOURCES = \
109         parser/parse.h \
110         parser/parse.c
111
112 ## openbox ##
113
114 openbox_openbox_CPPFLAGS = \
115         $(SM_CFLAGS) \
116         $(XINERAMA_CFLAGS) \
117         $(XKB_CFLAGS) \
118         $(XRANDR_CFLAGS) \
119         $(XSHAPE_CFLAGS) \
120         $(XSYNC_CFLAGS) \
121         $(XRENDER_CFLAGS) \
122         $(XDAMAGE_CFLAGS) \
123         $(XCOMPOSITE_CFLAGS) \
124         $(X_CFLAGS) \
125         $(XCURSOR_CFLAGS) \
126         $(SM_CFLAGS) \
127         $(PANGO_CFLAGS) \
128         $(GLIB_CFLAGS) \
129         $(LIBSN_CFLAGS) \
130         $(XML_CFLAGS) \
131         -DLOCALEDIR=\"$(localedir)\" \
132         -DDATADIR=\"$(datadir)\" \
133         -DCONFIGDIR=\"$(configdir)\" \
134         -DG_LOG_DOMAIN=\"Openbox\"
135 openbox_openbox_LDADD = \
136         $(SM_LIBS) \
137         $(XINERAMA_LIBS) \
138         $(XKB_LIBS) \
139         $(XRANDR_LIBS) \
140         $(XSHAPE_LIBS) \
141         $(XSYNC_LIBS) \
142         $(GLIB_LIBS) \
143         $(XRENDER_LIBS) \
144         $(XDAMAGE_LIBS) \
145         $(XCOMPOSITE_LIBS) \
146         $(X_LIBS) \
147         $(XCURSOR_LIBS) \
148         $(LIBSN_LIBS) \
149         $(XML_LIBS) \
150         $(EFENCE_LIBS) \
151         $(LIBINTL) \
152         render/libobrender.la \
153         parser/libobparser.la
154 openbox_openbox_LDFLAGS = -export-dynamic
155 openbox_openbox_SOURCES = \
156         gettext.h \
157         openbox/actions/all.c \
158         openbox/actions/all.h \
159         openbox/actions/debug.c \
160         openbox/actions/execute.c \
161         openbox/actions/exit.c \
162         openbox/actions/reconfigure.c \
163         openbox/actions/restart.c \
164         openbox/actions/showdesktop.c \
165         openbox/actions/showmenu.c \
166         openbox/actions.c \
167         openbox/actions.h \
168         openbox/client.c \
169         openbox/client.h \
170         openbox/client_list_menu.c \
171         openbox/client_list_menu.h \
172         openbox/client_list_combined_menu.c \
173         openbox/client_list_combined_menu.h \
174         openbox/client_menu.c \
175         openbox/client_menu.h \
176         openbox/composite.c \
177         openbox/composite.h \
178         openbox/config.c \
179         openbox/config.h \
180         openbox/debug.c \
181         openbox/debug.h \
182         openbox/dock.c \
183         openbox/dock.h \
184         openbox/event.c \
185         openbox/event.h \
186         openbox/extensions.c \
187         openbox/extensions.h \
188         openbox/focus.c \
189         openbox/focus.h \
190         openbox/focus_cycle.c \
191         openbox/focus_cycle.h \
192         openbox/focus_cycle_indicator.c \
193         openbox/focus_cycle_indicator.h \
194         openbox/focus_cycle_popup.c \
195         openbox/focus_cycle_popup.h \
196         openbox/frame.c \
197         openbox/frame.h \
198         openbox/framerender.c \
199         openbox/framerender.h \
200         openbox/geom.h \
201         openbox/grab.c \
202         openbox/grab.h \
203         openbox/group.c \
204         openbox/group.h \
205         openbox/keyboard.c \
206         openbox/keyboard.h \
207         openbox/keytree.c \
208         openbox/keytree.h \
209         openbox/mainloop.c \
210         openbox/mainloop.h \
211         openbox/menuframe.c \
212         openbox/menuframe.h \
213         openbox/menu.c \
214         openbox/menu.h \
215         openbox/misc.h \
216         openbox/modkeys.c \
217         openbox/modkeys.h \
218         openbox/mouse.c \
219         openbox/mouse.h \
220         openbox/moveresize.c \
221         openbox/moveresize.h \
222         openbox/mwm.h \
223         openbox/openbox.c \
224         openbox/openbox.h \
225         openbox/place.c \
226         openbox/place.h \
227         openbox/popup.c \
228         openbox/popup.h \
229         openbox/prop.c \
230         openbox/prop.h \
231         openbox/propwin.c \
232         openbox/propwin.h \
233         openbox/resist.c \
234         openbox/resist.h \
235         openbox/screen.c \
236         openbox/screen.h \
237         openbox/session.c \
238         openbox/session.h \
239         openbox/stacking.c \
240         openbox/stacking.h \
241         openbox/startupnotify.c \
242         openbox/startupnotify.h \
243         openbox/translate.c \
244         openbox/translate.h \
245         openbox/window.c \
246         openbox/window.h \
247         openbox/xerror.c \
248         openbox/xerror.h
249
250
251 ## gnome-panel-control ##
252
253 tools_gnome_panel_control_gnome_panel_control_CPPFLAGS = \
254         $(X_CFLAGS)
255 tools_gnome_panel_control_gnome_panel_control_LDADD = \
256         $(X_LIBS)
257 tools_gnome_panel_control_gnome_panel_control_SOURCES = \
258         tools/gnome-panel-control/gnome-panel-control.c
259
260
261 ## default button masks ##
262 dist_docxbm_DATA = \
263         data/xbm/bullet.xbm \
264         data/xbm/close.xbm \
265         data/xbm/desk_toggled.xbm \
266         data/xbm/desk.xbm \
267         data/xbm/iconify.xbm \
268         data/xbm/max_toggled.xbm \
269         data/xbm/max.xbm \
270         data/xbm/shade_toggled.xbm \
271         data/xbm/shade.xbm
272
273
274 ## themes ##
275
276 clearlooks_themedir = $(themedir)/Clearlooks/openbox-3
277 dist_clearlooks_theme_DATA= \
278         themes/Clearlooks/openbox-3/themerc
279
280 clearlooksolive_themedir = $(themedir)/Clearlooks-Olive/openbox-3
281 dist_clearlooksolive_theme_DATA= \
282         themes/Clearlooks-Olive/openbox-3/themerc
283
284 mikachu_themedir = $(themedir)/Mikachu/openbox-3
285 dist_mikachu_theme_DATA= \
286         themes/Mikachu/openbox-3/bullet.xbm \
287         themes/Mikachu/openbox-3/close.xbm \
288         themes/Mikachu/openbox-3/desk.xbm \
289         themes/Mikachu/openbox-3/iconify.xbm \
290         themes/Mikachu/openbox-3/max.xbm \
291         themes/Mikachu/openbox-3/themerc
292
293
294 natura_themedir = $(themedir)/Natura/openbox-3
295 dist_natura_theme_DATA= \
296         themes/Natura/openbox-3/close_hover.xbm \
297         themes/Natura/openbox-3/close.xbm \
298         themes/Natura/openbox-3/desk_toggled.xbm \
299         themes/Natura/openbox-3/desk_hover.xbm \
300         themes/Natura/openbox-3/desk.xbm \
301         themes/Natura/openbox-3/iconify_hover.xbm \
302         themes/Natura/openbox-3/iconify.xbm \
303         themes/Natura/openbox-3/max_hover.xbm \
304         themes/Natura/openbox-3/max_toggled.xbm \
305         themes/Natura/openbox-3/max.xbm \
306         themes/Natura/openbox-3/shade.xbm \
307         themes/Natura/openbox-3/shade_hover.xbm \
308         themes/Natura/openbox-3/themerc
309
310 artwizboxed_themedir = $(themedir)/Artwiz-boxed/openbox-3
311 dist_artwizboxed_theme_DATA= \
312         themes/Artwiz-boxed/openbox-3/themerc
313
314 bear2_themedir = $(themedir)/Bear2/openbox-3
315 dist_bear2_theme_DATA= \
316         themes/Bear2/openbox-3/close_pressed.xbm \
317         themes/Bear2/openbox-3/close.xbm \
318         themes/Bear2/openbox-3/desk_toggled.xbm \
319         themes/Bear2/openbox-3/desk.xbm \
320         themes/Bear2/openbox-3/iconify_pressed.xbm \
321         themes/Bear2/openbox-3/iconify.xbm \
322         themes/Bear2/openbox-3/max_pressed.xbm \
323         themes/Bear2/openbox-3/max_toggled.xbm \
324         themes/Bear2/openbox-3/max.xbm \
325         themes/Bear2/openbox-3/shade_pressed.xbm \
326         themes/Bear2/openbox-3/shade.xbm \
327         themes/Bear2/openbox-3/themerc
328
329 orang_themedir = $(themedir)/Orang/openbox-3
330 dist_orang_theme_DATA= \
331         themes/Orang/openbox-3/themerc
332
333 onyx_themedir = $(themedir)/Onyx/openbox-3
334 dist_onyx_theme_DATA= \
335         themes/Onyx/openbox-3/themerc
336
337 onyxcitrus_themedir = $(themedir)/Onyx-Citrus/openbox-3
338 dist_onyxcitrus_theme_DATA= \
339         themes/Onyx-Citrus/openbox-3/themerc
340
341 syscrash_themedir = $(themedir)/Syscrash/openbox-3
342 dist_syscrash_theme_DATA= \
343         themes/Syscrash/openbox-3/max_disabled.xbm \
344         themes/Syscrash/openbox-3/max_pressed.xbm \
345         themes/Syscrash/openbox-3/max_toggled.xbm \
346         themes/Syscrash/openbox-3/max.xbm \
347         themes/Syscrash/openbox-3/themerc
348
349 ## public headers ##
350
351 pubinclude_HEADERS = \
352         render/color.h \
353         render/font.h \
354         render/geom.h \
355         render/gradient.h \
356         render/image.h \
357         render/instance.h \
358         render/mask.h \
359         render/render.h \
360         render/theme.h \
361         parser/parse.h
362
363 nodist_pubinclude_HEADERS = \
364         version.h
365
366 nodist_pkgconfig_DATA = \
367         render/obrender-3.0.pc \
368         parser/obparser-3.0.pc
369
370 ## data ##
371
372 dist_pixmap_DATA = \
373         data/openbox.png
374
375 dist_rc_DATA = \
376         data/autostart.sh \
377         data/rc.xml \
378         data/menu.xml
379
380 edit = $(SED) \
381         -e 's!@version\@!$(VERSION)!' \
382         -e 's!@configdir\@!$(configdir)!' \
383         -e 's!@bindir\@!$(bindir)!'
384
385 %.desktop: %.desktop.in Makefile
386         @echo make: creating $@
387         @$(edit) $< >$@ 
388
389 %-session: %-session.in Makefile
390         @echo make: creating $@
391         @$(edit) $< >$@ 
392
393 %.1.in: %.1.sgml
394         @echo make: creating $@
395         @docbook-to-man $< >$@
396
397 %.1: %.1.in Makefile
398         @echo make: creating $@
399         @$(edit) $< >$@ 
400
401 dist_gnomewmfiles_DATA = \
402         data/gnome-wm-properties/openbox.desktop
403
404 nodist_xsessions_DATA = \
405         data/xsession/openbox.desktop \
406         data/xsession/openbox-gnome.desktop \
407         data/xsession/openbox-kde.desktop
408
409 dist_noinst_DATA = \
410         version.h.in \
411         data/rc.xsd \
412         data/menu.xsd \
413         data/xsession/openbox.desktop.in \
414         data/xsession/openbox-gnome.desktop.in \
415         data/xsession/openbox-kde.desktop.in \
416         data/xsession/openbox-session.in \
417         data/xsession/openbox-gnome-session.in \
418         data/xsession/openbox-kde-session.in \
419         doc/openbox.1.sgml \
420         doc/openbox.1.in \
421         doc/openbox-session.1.sgml \
422         doc/openbox-session.1.in \
423         doc/openbox-gnome-session.1.sgml \
424         doc/openbox-gnome-session.1.in \
425         doc/openbox-kde-session.1.sgml \
426         doc/openbox-kde-session.1.in \
427         render/obrender-3.0.pc.in \
428         parser/obparser-3.0.pc.in \
429         tools/themeupdate/themeupdate.py \
430         tests/hideshow.py \
431         tests/Makefile \
432         tests/aspect.c \
433         tests/fullscreen.c \
434         tests/grav.c \
435         tests/grouptran.c \
436         tests/icons.c \
437         tests/modal2.c \
438         tests/modal3.c \
439         tests/modal.c \
440         tests/noresize.c \
441         tests/override.c \
442         tests/positioned.c \
443         tests/strut.c \
444         tests/title.c \
445         tests/urgent.c
446
447 dist_doc_DATA = \
448         COMPLIANCE \
449         README \
450         AUTHORS \
451         CHANGELOG \
452         COPYING \
453         data/rc.xsd \
454         data/menu.xsd \
455         doc/rc-mouse-focus.xml
456
457 nodist_man_MANS = \
458         doc/openbox.1 \
459         doc/openbox-session.1 \
460         doc/openbox-gnome-session.1 \
461         doc/openbox-kde-session.1
462
463 EXTRA_DIST = \
464         debian/changelog.in \
465         debian/compat \
466         debian/conffiles \
467         debian/control \
468         debian/copyright \
469         debian/menu \
470         debian/postinst \
471         debian/postrm \
472         debian/rules \
473         config.rpath \
474         mkinstalldirs
475
476 # make clean doesn't delete these for some reason, even though they are
477 # built by make
478 CLEANFILES = \
479         doc/openbox.1 \
480         doc/openbox-session.1 \
481         doc/openbox-gnome-session.1 \
482         doc/openbox-kde-session.1 \
483         data/xsession/openbox-session \
484         data/xsession/openbox-gnome-session \
485         data/xsession/openbox-kde-session \
486         data/xsession/openbox.desktop \
487         data/xsession/openbox-gnome.desktop \
488         data/xsession/openbox-kde.desktop
489
490 #doc:
491 #       $(MAKE) -$(MAKEFLAGS) -C doc/doxygen doc
492
493 distclean-local:
494         for d in . m4 po render; do \
495                 for p in core core.* gmon.out *\~ *.orig *.rej .\#*; do \
496                         rm -f "$$d/$$p"; \
497                 done \
498         done
499
500 .PHONY: doc