add the iconify action
[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 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/breakchroot.c \
160         openbox/actions/close.c \
161         openbox/actions/cyclewindows.c \
162         openbox/actions/debug.c \
163         openbox/actions/execute.c \
164         openbox/actions/exit.c \
165         openbox/actions/focus.c \
166         openbox/actions/iconify.c \
167         openbox/actions/lower.c \
168         openbox/actions/move.c \
169         openbox/actions/raise.c \
170         openbox/actions/raiselower.c \
171         openbox/actions/reconfigure.c \
172         openbox/actions/restart.c \
173         openbox/actions/showdesktop.c \
174         openbox/actions/showmenu.c \
175         openbox/actions/unfocus.c \
176         openbox/actions.c \
177         openbox/actions.h \
178         openbox/client.c \
179         openbox/client.h \
180         openbox/client_list_menu.c \
181         openbox/client_list_menu.h \
182         openbox/client_list_combined_menu.c \
183         openbox/client_list_combined_menu.h \
184         openbox/client_menu.c \
185         openbox/client_menu.h \
186         openbox/composite.c \
187         openbox/composite.h \
188         openbox/config.c \
189         openbox/config.h \
190         openbox/debug.c \
191         openbox/debug.h \
192         openbox/dock.c \
193         openbox/dock.h \
194         openbox/event.c \
195         openbox/event.h \
196         openbox/extensions.c \
197         openbox/extensions.h \
198         openbox/focus.c \
199         openbox/focus.h \
200         openbox/focus_cycle.c \
201         openbox/focus_cycle.h \
202         openbox/focus_cycle_indicator.c \
203         openbox/focus_cycle_indicator.h \
204         openbox/focus_cycle_popup.c \
205         openbox/focus_cycle_popup.h \
206         openbox/frame.c \
207         openbox/frame.h \
208         openbox/framerender.c \
209         openbox/framerender.h \
210         openbox/geom.h \
211         openbox/grab.c \
212         openbox/grab.h \
213         openbox/group.c \
214         openbox/group.h \
215         openbox/keyboard.c \
216         openbox/keyboard.h \
217         openbox/keytree.c \
218         openbox/keytree.h \
219         openbox/mainloop.c \
220         openbox/mainloop.h \
221         openbox/menuframe.c \
222         openbox/menuframe.h \
223         openbox/menu.c \
224         openbox/menu.h \
225         openbox/misc.h \
226         openbox/modkeys.c \
227         openbox/modkeys.h \
228         openbox/mouse.c \
229         openbox/mouse.h \
230         openbox/moveresize.c \
231         openbox/moveresize.h \
232         openbox/mwm.h \
233         openbox/openbox.c \
234         openbox/openbox.h \
235         openbox/place.c \
236         openbox/place.h \
237         openbox/popup.c \
238         openbox/popup.h \
239         openbox/prop.c \
240         openbox/prop.h \
241         openbox/propwin.c \
242         openbox/propwin.h \
243         openbox/resist.c \
244         openbox/resist.h \
245         openbox/screen.c \
246         openbox/screen.h \
247         openbox/session.c \
248         openbox/session.h \
249         openbox/stacking.c \
250         openbox/stacking.h \
251         openbox/startupnotify.c \
252         openbox/startupnotify.h \
253         openbox/translate.c \
254         openbox/translate.h \
255         openbox/window.c \
256         openbox/window.h \
257         openbox/xerror.c \
258         openbox/xerror.h
259
260
261 ## gnome-panel-control ##
262
263 tools_gnome_panel_control_gnome_panel_control_CPPFLAGS = \
264         $(X_CFLAGS)
265 tools_gnome_panel_control_gnome_panel_control_LDADD = \
266         $(X_LIBS)
267 tools_gnome_panel_control_gnome_panel_control_SOURCES = \
268         tools/gnome-panel-control/gnome-panel-control.c
269
270
271 ## default button masks ##
272 dist_docxbm_DATA = \
273         data/xbm/bullet.xbm \
274         data/xbm/close.xbm \
275         data/xbm/desk_toggled.xbm \
276         data/xbm/desk.xbm \
277         data/xbm/iconify.xbm \
278         data/xbm/max_toggled.xbm \
279         data/xbm/max.xbm \
280         data/xbm/shade_toggled.xbm \
281         data/xbm/shade.xbm
282
283
284 ## themes ##
285
286 clearlooks_themedir = $(themedir)/Clearlooks/openbox-3
287 dist_clearlooks_theme_DATA= \
288         themes/Clearlooks/openbox-3/themerc
289
290 clearlooksolive_themedir = $(themedir)/Clearlooks-Olive/openbox-3
291 dist_clearlooksolive_theme_DATA= \
292         themes/Clearlooks-Olive/openbox-3/themerc
293
294 mikachu_themedir = $(themedir)/Mikachu/openbox-3
295 dist_mikachu_theme_DATA= \
296         themes/Mikachu/openbox-3/bullet.xbm \
297         themes/Mikachu/openbox-3/close.xbm \
298         themes/Mikachu/openbox-3/desk.xbm \
299         themes/Mikachu/openbox-3/iconify.xbm \
300         themes/Mikachu/openbox-3/max.xbm \
301         themes/Mikachu/openbox-3/themerc
302
303
304 natura_themedir = $(themedir)/Natura/openbox-3
305 dist_natura_theme_DATA= \
306         themes/Natura/openbox-3/close_hover.xbm \
307         themes/Natura/openbox-3/close.xbm \
308         themes/Natura/openbox-3/desk_toggled.xbm \
309         themes/Natura/openbox-3/desk_hover.xbm \
310         themes/Natura/openbox-3/desk.xbm \
311         themes/Natura/openbox-3/iconify_hover.xbm \
312         themes/Natura/openbox-3/iconify.xbm \
313         themes/Natura/openbox-3/max_hover.xbm \
314         themes/Natura/openbox-3/max_toggled.xbm \
315         themes/Natura/openbox-3/max.xbm \
316         themes/Natura/openbox-3/shade.xbm \
317         themes/Natura/openbox-3/shade_hover.xbm \
318         themes/Natura/openbox-3/themerc
319
320 artwizboxed_themedir = $(themedir)/Artwiz-boxed/openbox-3
321 dist_artwizboxed_theme_DATA= \
322         themes/Artwiz-boxed/openbox-3/themerc
323
324 bear2_themedir = $(themedir)/Bear2/openbox-3
325 dist_bear2_theme_DATA= \
326         themes/Bear2/openbox-3/close_pressed.xbm \
327         themes/Bear2/openbox-3/close.xbm \
328         themes/Bear2/openbox-3/desk_toggled.xbm \
329         themes/Bear2/openbox-3/desk.xbm \
330         themes/Bear2/openbox-3/iconify_pressed.xbm \
331         themes/Bear2/openbox-3/iconify.xbm \
332         themes/Bear2/openbox-3/max_pressed.xbm \
333         themes/Bear2/openbox-3/max_toggled.xbm \
334         themes/Bear2/openbox-3/max.xbm \
335         themes/Bear2/openbox-3/shade_pressed.xbm \
336         themes/Bear2/openbox-3/shade.xbm \
337         themes/Bear2/openbox-3/themerc
338
339 orang_themedir = $(themedir)/Orang/openbox-3
340 dist_orang_theme_DATA= \
341         themes/Orang/openbox-3/themerc
342
343 onyx_themedir = $(themedir)/Onyx/openbox-3
344 dist_onyx_theme_DATA= \
345         themes/Onyx/openbox-3/themerc
346
347 onyxcitrus_themedir = $(themedir)/Onyx-Citrus/openbox-3
348 dist_onyxcitrus_theme_DATA= \
349         themes/Onyx-Citrus/openbox-3/themerc
350
351 syscrash_themedir = $(themedir)/Syscrash/openbox-3
352 dist_syscrash_theme_DATA= \
353         themes/Syscrash/openbox-3/max_disabled.xbm \
354         themes/Syscrash/openbox-3/max_pressed.xbm \
355         themes/Syscrash/openbox-3/max_toggled.xbm \
356         themes/Syscrash/openbox-3/max.xbm \
357         themes/Syscrash/openbox-3/themerc
358
359 ## public headers ##
360
361 pubinclude_HEADERS = \
362         render/color.h \
363         render/font.h \
364         render/geom.h \
365         render/gradient.h \
366         render/image.h \
367         render/instance.h \
368         render/mask.h \
369         render/render.h \
370         render/theme.h \
371         parser/parse.h
372
373 nodist_pubinclude_HEADERS = \
374         version.h
375
376 nodist_pkgconfig_DATA = \
377         render/obrender-3.0.pc \
378         parser/obparser-3.0.pc
379
380 ## data ##
381
382 dist_pixmap_DATA = \
383         data/openbox.png
384
385 dist_rc_DATA = \
386         data/autostart.sh \
387         data/rc.xml \
388         data/menu.xml
389
390 edit = $(SED) \
391         -e 's!@version\@!$(VERSION)!' \
392         -e 's!@configdir\@!$(configdir)!' \
393         -e 's!@bindir\@!$(bindir)!'
394
395 %.desktop: %.desktop.in Makefile
396         @echo make: creating $@
397         @$(edit) $< >$@ 
398
399 %-session: %-session.in Makefile
400         @echo make: creating $@
401         @$(edit) $< >$@ 
402
403 %.1.in: %.1.sgml
404         @echo make: creating $@
405         @docbook-to-man $< >$@
406
407 %.1: %.1.in Makefile
408         @echo make: creating $@
409         @$(edit) $< >$@ 
410
411 dist_gnomewmfiles_DATA = \
412         data/gnome-wm-properties/openbox.desktop
413
414 nodist_xsessions_DATA = \
415         data/xsession/openbox.desktop \
416         data/xsession/openbox-gnome.desktop \
417         data/xsession/openbox-kde.desktop
418
419 dist_noinst_DATA = \
420         version.h.in \
421         data/rc.xsd \
422         data/menu.xsd \
423         data/xsession/openbox.desktop.in \
424         data/xsession/openbox-gnome.desktop.in \
425         data/xsession/openbox-kde.desktop.in \
426         data/xsession/openbox-session.in \
427         data/xsession/openbox-gnome-session.in \
428         data/xsession/openbox-kde-session.in \
429         doc/openbox.1.sgml \
430         doc/openbox.1.in \
431         doc/openbox-session.1.sgml \
432         doc/openbox-session.1.in \
433         doc/openbox-gnome-session.1.sgml \
434         doc/openbox-gnome-session.1.in \
435         doc/openbox-kde-session.1.sgml \
436         doc/openbox-kde-session.1.in \
437         render/obrender-3.0.pc.in \
438         parser/obparser-3.0.pc.in \
439         tools/themeupdate/themeupdate.py \
440         tests/hideshow.py \
441         tests/Makefile \
442         tests/aspect.c \
443         tests/fullscreen.c \
444         tests/grav.c \
445         tests/grouptran.c \
446         tests/icons.c \
447         tests/modal2.c \
448         tests/modal3.c \
449         tests/modal.c \
450         tests/noresize.c \
451         tests/override.c \
452         tests/positioned.c \
453         tests/strut.c \
454         tests/title.c \
455         tests/urgent.c
456
457 dist_doc_DATA = \
458         COMPLIANCE \
459         README \
460         AUTHORS \
461         CHANGELOG \
462         COPYING \
463         data/rc.xsd \
464         data/menu.xsd \
465         doc/rc-mouse-focus.xml
466
467 nodist_man_MANS = \
468         doc/openbox.1 \
469         doc/openbox-session.1 \
470         doc/openbox-gnome-session.1 \
471         doc/openbox-kde-session.1
472
473 EXTRA_DIST = \
474         debian/changelog.in \
475         debian/compat \
476         debian/conffiles \
477         debian/control \
478         debian/copyright \
479         debian/menu \
480         debian/postinst \
481         debian/postrm \
482         debian/rules \
483         config.rpath \
484         mkinstalldirs
485
486 # make clean doesn't delete these for some reason, even though they are
487 # built by make
488 CLEANFILES = \
489         doc/openbox.1 \
490         doc/openbox-session.1 \
491         doc/openbox-gnome-session.1 \
492         doc/openbox-kde-session.1 \
493         data/xsession/openbox-session \
494         data/xsession/openbox-gnome-session \
495         data/xsession/openbox-kde-session \
496         data/xsession/openbox.desktop \
497         data/xsession/openbox-gnome.desktop \
498         data/xsession/openbox-kde.desktop
499
500 #doc:
501 #       $(MAKE) -$(MAKEFLAGS) -C doc/doxygen doc
502
503 distclean-local:
504         for d in . m4 po render; do \
505                 for p in core core.* gmon.out *\~ *.orig *.rej .\#*; do \
506                         rm -f "$$d/$$p"; \
507                 done \
508         done
509
510 .PHONY: doc