We shouldn't enforce incr when the app resizes itself. But it's so confusing.
[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/button.h \
78         render/button.c \
79         render/color.h \
80         render/color.c \
81         render/font.h \
82         render/font.c \
83         render/geom.h \
84         render/gradient.h \
85         render/gradient.c \
86         render/icon.h \
87         render/image.h \
88         render/image.c \
89         render/imagecache.h \
90         render/imagecache.c \
91         render/instance.h \
92         render/instance.c \
93         render/mask.h \
94         render/mask.c \
95         render/render.h \
96         render/render.c \
97         render/theme.h \
98         render/theme.c
99
100 ## obt ##
101
102 obt_libobt_la_CPPFLAGS = \
103         $(XINERAMA_CFLAGS) \
104         $(XKB_CFLAGS) \
105         $(XRANDR_CFLAGS) \
106         $(XSHAPE_CFLAGS) \
107         $(XSYNC_CFLAGS) \
108         $(GLIB_CFLAGS) \
109         $(XML_CFLAGS) \
110         -DG_LOG_DOMAIN=\"Obt\" \
111         -DLOCALEDIR=\"$(localedir)\" \
112         -DDATADIR=\"$(datadir)\" \
113         -DCONFIGDIR=\"$(configdir)\"
114 obt_libobt_la_LDFLAGS = \
115         -version-info $(OBT_CURRENT):$(OBT_REVISION):$(OBT_AGE)
116 obt_libobt_la_LIBADD = \
117         $(XINERAMA_LIBS) \
118         $(XKB_LIBS) \
119         $(XRANDR_LIBS) \
120         $(XSHAPE_LIBS) \
121         $(XSYNC_LIBS) \
122         $(GLIB_LIBS) \
123         $(XML_LIBS)
124 obt_libobt_la_SOURCES = \
125         obt/display.h \
126         obt/display.c \
127         obt/internal.h \
128         obt/keyboard.h \
129         obt/keyboard.c \
130         obt/mainloop.h \
131         obt/mainloop.c \
132         obt/parse.h \
133         obt/parse.c \
134         obt/paths.h \
135         obt/paths.c \
136         obt/prop.h \
137         obt/prop.c \
138         obt/util.h \
139         obt/xevent.h \
140         obt/xevent.c
141
142 ## openbox ##
143
144 openbox_openbox_CPPFLAGS = \
145         $(SM_CFLAGS) \
146         $(X_CFLAGS) \
147         $(XCURSOR_CFLAGS) \
148         $(SM_CFLAGS) \
149         $(PANGO_CFLAGS) \
150         $(GLIB_CFLAGS) \
151         $(LIBSN_CFLAGS) \
152         $(XML_CFLAGS) \
153         $(IMLIB2_CFLAGS) \
154         -DLOCALEDIR=\"$(localedir)\" \
155         -DDATADIR=\"$(datadir)\" \
156         -DCONFIGDIR=\"$(configdir)\" \
157         -DG_LOG_DOMAIN=\"Openbox\"
158 openbox_openbox_LDADD = \
159         $(SM_LIBS) \
160         $(GLIB_LIBS) \
161         $(X_LIBS) \
162         $(XCURSOR_LIBS) \
163         $(LIBSN_LIBS) \
164         $(XML_LIBS) \
165         $(EFENCE_LIBS) \
166         $(LIBINTL) \
167         $(IMLIB2_LIBS) \
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/imageload.h \
258         openbox/keyboard.c \
259         openbox/keyboard.h \
260         openbox/keytree.c \
261         openbox/keytree.h \
262         openbox/menuframe.c \
263         openbox/menuframe.h \
264         openbox/menu.c \
265         openbox/menu.h \
266         openbox/misc.h \
267         openbox/mouse.c \
268         openbox/mouse.h \
269         openbox/moveresize.c \
270         openbox/moveresize.h \
271         openbox/mwm.h \
272         openbox/openbox.c \
273         openbox/openbox.h \
274         openbox/ping.c \
275         openbox/ping.h \
276         openbox/place.c \
277         openbox/place.h \
278         openbox/prompt.c \
279         openbox/prompt.h \
280         openbox/popup.c \
281         openbox/popup.h \
282         openbox/resist.c \
283         openbox/resist.h \
284         openbox/screen.c \
285         openbox/screen.h \
286         openbox/session.c \
287         openbox/session.h \
288         openbox/stacking.c \
289         openbox/stacking.h \
290         openbox/startupnotify.c \
291         openbox/startupnotify.h \
292         openbox/translate.c \
293         openbox/translate.h \
294         openbox/window.c \
295         openbox/window.h
296
297 if USE_IMLIB2
298     openbox_openbox_SOURCES += openbox/imageload.c
299 endif
300
301 ## gnome-panel-control ##
302
303 tools_gnome_panel_control_gnome_panel_control_CPPFLAGS = \
304         $(X_CFLAGS)
305 tools_gnome_panel_control_gnome_panel_control_LDADD = \
306         $(X_LIBS)
307 tools_gnome_panel_control_gnome_panel_control_SOURCES = \
308         tools/gnome-panel-control/gnome-panel-control.c
309
310 ## gdm-control ##
311
312 tools_gdm_control_gdm_control_CPPFLAGS = \
313         $(X_CFLAGS) \
314         $(GLIB_CFLAGS)
315 tools_gdm_control_gdm_control_LDADD = \
316         $(X_LIBS) \
317         $(GLIB_LIBS)
318 tools_gdm_control_gdm_control_SOURCES = \
319         tools/gdm-control/gdm-control.c
320
321
322 ## default button masks ##
323 dist_docxbm_DATA = \
324         data/xbm/bullet.xbm \
325         data/xbm/close.xbm \
326         data/xbm/desk_toggled.xbm \
327         data/xbm/desk.xbm \
328         data/xbm/iconify.xbm \
329         data/xbm/max_toggled.xbm \
330         data/xbm/max.xbm \
331         data/xbm/shade_toggled.xbm \
332         data/xbm/shade.xbm
333
334
335 ## themes ##
336
337 clearlooks_themedir = $(themedir)/Clearlooks/openbox-3
338 dist_clearlooks_theme_DATA= \
339         themes/Clearlooks/openbox-3/themerc
340
341 clearlooks34_themedir = $(themedir)/Clearlooks/openbox-3
342 dist_clearlooks34_theme_DATA= \
343         themes/Clearlooks-3.4/openbox-3/themerc
344
345 clearlooksolive_themedir = $(themedir)/Clearlooks-Olive/openbox-3
346 dist_clearlooksolive_theme_DATA= \
347         themes/Clearlooks-Olive/openbox-3/themerc
348
349 mikachu_themedir = $(themedir)/Mikachu/openbox-3
350 dist_mikachu_theme_DATA= \
351         themes/Mikachu/openbox-3/bullet.xbm \
352         themes/Mikachu/openbox-3/close.xbm \
353         themes/Mikachu/openbox-3/desk.xbm \
354         themes/Mikachu/openbox-3/iconify.xbm \
355         themes/Mikachu/openbox-3/max.xbm \
356         themes/Mikachu/openbox-3/themerc
357
358
359 natura_themedir = $(themedir)/Natura/openbox-3
360 dist_natura_theme_DATA= \
361         themes/Natura/openbox-3/close_hover.xbm \
362         themes/Natura/openbox-3/close.xbm \
363         themes/Natura/openbox-3/desk_toggled.xbm \
364         themes/Natura/openbox-3/desk_hover.xbm \
365         themes/Natura/openbox-3/desk.xbm \
366         themes/Natura/openbox-3/iconify_hover.xbm \
367         themes/Natura/openbox-3/iconify.xbm \
368         themes/Natura/openbox-3/max_hover.xbm \
369         themes/Natura/openbox-3/max_toggled.xbm \
370         themes/Natura/openbox-3/max.xbm \
371         themes/Natura/openbox-3/shade.xbm \
372         themes/Natura/openbox-3/shade_hover.xbm \
373         themes/Natura/openbox-3/themerc
374
375 artwizboxed_themedir = $(themedir)/Artwiz-boxed/openbox-3
376 dist_artwizboxed_theme_DATA= \
377         themes/Artwiz-boxed/openbox-3/themerc
378
379 bear2_themedir = $(themedir)/Bear2/openbox-3
380 dist_bear2_theme_DATA= \
381         themes/Bear2/openbox-3/close_pressed.xbm \
382         themes/Bear2/openbox-3/close.xbm \
383         themes/Bear2/openbox-3/desk_toggled.xbm \
384         themes/Bear2/openbox-3/desk.xbm \
385         themes/Bear2/openbox-3/iconify_pressed.xbm \
386         themes/Bear2/openbox-3/iconify.xbm \
387         themes/Bear2/openbox-3/max_pressed.xbm \
388         themes/Bear2/openbox-3/max_toggled.xbm \
389         themes/Bear2/openbox-3/max.xbm \
390         themes/Bear2/openbox-3/shade_pressed.xbm \
391         themes/Bear2/openbox-3/shade.xbm \
392         themes/Bear2/openbox-3/themerc
393
394 orang_themedir = $(themedir)/Orang/openbox-3
395 dist_orang_theme_DATA= \
396         themes/Orang/openbox-3/themerc
397
398 onyx_themedir = $(themedir)/Onyx/openbox-3
399 dist_onyx_theme_DATA= \
400         themes/Onyx/openbox-3/themerc
401
402 onyxcitrus_themedir = $(themedir)/Onyx-Citrus/openbox-3
403 dist_onyxcitrus_theme_DATA= \
404         themes/Onyx-Citrus/openbox-3/themerc
405
406 syscrash_themedir = $(themedir)/Syscrash/openbox-3
407 dist_syscrash_theme_DATA= \
408         themes/Syscrash/openbox-3/max_disabled.xbm \
409         themes/Syscrash/openbox-3/max_pressed.xbm \
410         themes/Syscrash/openbox-3/max_toggled.xbm \
411         themes/Syscrash/openbox-3/max.xbm \
412         themes/Syscrash/openbox-3/themerc
413
414 ## public headers ##
415
416 rrpubinclude_HEADERS = \
417         render/color.h \
418         render/font.h \
419         render/geom.h \
420         render/gradient.h \
421         render/image.h \
422         render/instance.h \
423         render/mask.h \
424         render/render.h \
425         render/theme.h \
426         render/version.h
427
428 obtpubinclude_HEADERS = \
429         obt/display.h \
430         obt/keyboard.h \
431         obt/mainloop.h \
432         obt/parse.h \
433         obt/paths.h \
434         obt/prop.h \
435         obt/util.h \
436         obt/version.h \
437         obt/xevent.h
438
439 nodist_pkgconfig_DATA = \
440         render/obrender-4.0.pc \
441         obt/obt-4.0.pc
442
443 ## data ##
444
445 dist_pixmap_DATA = \
446         data/openbox.png
447
448 nodist_rc_DATA = \
449         data/autostart.sh
450
451 dist_rc_DATA = \
452         data/rc.xml \
453         data/menu.xml
454
455 edit = $(SED) \
456         -e 's!@version\@!$(VERSION)!' \
457         -e 's!@configdir\@!$(configdir)!' \
458         -e 's!@secretbindir\@!$(secretbindir)!' \
459         -e 's!@bindir\@!$(bindir)!'
460
461 data/autostart.sh: $(srcdir)/data/autostart.sh.in Makefile
462         @echo make: creating $@
463         @$(edit) $< >$@
464
465 %.desktop: %.desktop.in Makefile
466         @echo make: creating $@
467         @$(edit) $< >$@ 
468
469 %-session: %-session.in Makefile
470         @echo make: creating $@
471         @$(edit) $< >$@ 
472
473 %.1.in: %.1.sgml
474         @echo make: creating $@
475         @docbook-to-man $< >$@
476
477 %.1: %.1.in Makefile
478         @echo make: creating $@
479         @$(edit) $< >$@ 
480
481 dist_gnomewmfiles_DATA = \
482         data/gnome-wm-properties/openbox.desktop
483
484 nodist_xsessions_DATA = \
485         data/xsession/openbox.desktop \
486         data/xsession/openbox-gnome.desktop \
487         data/xsession/openbox-kde.desktop
488
489 dist_noinst_DATA = \
490         data/autostart.sh.in \
491         data/rc.xsd \
492         data/menu.xsd \
493         data/xsession/openbox.desktop.in \
494         data/xsession/openbox-gnome.desktop.in \
495         data/xsession/openbox-kde.desktop.in \
496         data/xsession/openbox-session.in \
497         data/xsession/openbox-gnome-session.in \
498         data/xsession/openbox-kde-session.in \
499         doc/openbox.1.sgml \
500         doc/openbox.1.in \
501         doc/openbox-session.1.sgml \
502         doc/openbox-session.1.in \
503         doc/openbox-gnome-session.1.sgml \
504         doc/openbox-gnome-session.1.in \
505         doc/openbox-kde-session.1.sgml \
506         doc/openbox-kde-session.1.in \
507         render/version.h.in \
508         render/obrender-4.0.pc.in \
509         obt/obt-4.0.pc.in \
510         obt/version.h.in \
511         tools/themeupdate/themeupdate.py \
512         tests/hideshow.py \
513         tests/Makefile \
514         tests/aspect.c \
515         tests/fullscreen.c \
516         tests/grav.c \
517         tests/grouptran.c \
518         tests/icons.c \
519         tests/modal2.c \
520         tests/modal3.c \
521         tests/modal.c \
522         tests/noresize.c \
523         tests/override.c \
524         tests/positioned.c \
525         tests/strut.c \
526         tests/title.c \
527         tests/urgent.c
528
529 dist_doc_DATA = \
530         COMPLIANCE \
531         README \
532         AUTHORS \
533         CHANGELOG \
534         COPYING \
535         data/rc.xsd \
536         data/menu.xsd \
537         doc/rc-mouse-focus.xml
538
539 nodist_man_MANS = \
540         doc/openbox.1 \
541         doc/openbox-session.1 \
542         doc/openbox-gnome-session.1 \
543         doc/openbox-kde-session.1
544
545 EXTRA_DIST = \
546         config.rpath
547
548 # make clean doesn't delete these for some reason, even though they are
549 # built by make
550 CLEANFILES = \
551         doc/openbox.1 \
552         doc/openbox-session.1 \
553         doc/openbox-gnome-session.1 \
554         doc/openbox-kde-session.1 \
555         data/xsession/openbox-session \
556         data/xsession/openbox-gnome-session \
557         data/xsession/openbox-kde-session \
558         data/xsession/openbox.desktop \
559         data/xsession/openbox-gnome.desktop \
560         data/xsession/openbox-kde.desktop
561
562 #doc:
563 #       $(MAKE) -$(MAKEFLAGS) -C doc/doxygen doc
564
565 distclean-local:
566         for d in . m4 po render parser obt openbox; do \
567                 for p in core core.* gmon.out *\~ *.orig *.rej .\#*; do \
568                         rm -f "$$d/$$p"; \
569                 done \
570         done
571
572 .PHONY: doc