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