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