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