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