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