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