]> Dogcows Code - chaz/openbox/blob - Makefile.am
Some style changes, less ifdefs.
[chaz/openbox] / 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@/obrender
13 pixmapdir = $(datadir)/pixmaps
14 xsddir = $(datadir)/openbox
15 secretbindir = $(libdir)/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 dist_secretbin_SCRIPTS = \
40 tools/xdg-autostart/xdg-autostart
41
42 nodist_bin_SCRIPTS = \
43 data/xsession/openbox-session \
44 data/xsession/openbox-gnome-session \
45 data/xsession/openbox-kde-session
46
47 ## obrender ##
48
49 obrender_rendertest_CPPFLAGS = \
50 $(PANGO_CFLAGS) \
51 $(GLIB_CFLAGS) \
52 -DG_LOG_DOMAIN=\"RenderTest\"
53 obrender_rendertest_LDADD = \
54 obt/libobt.la \
55 obrender/libobrender.la \
56 $(GLIB_LIBS) \
57 $(PANGO_LIBS) \
58 $(XML_LIBS) \
59 $(X_LIBS)
60 obrender_rendertest_SOURCES = obrender/test.c
61
62 obrender_libobrender_la_CPPFLAGS = \
63 $(X_CFLAGS) \
64 $(GLIB_CFLAGS) \
65 $(XML_CFLAGS) \
66 $(PANGO_CFLAGS) \
67 -DG_LOG_DOMAIN=\"ObRender\" \
68 -DDEFAULT_THEME=\"$(theme)\"
69 obrender_libobrender_la_LDFLAGS = \
70 -version-info $(RR_CURRENT):$(RR_REVISION):$(RR_AGE)
71 obrender_libobrender_la_LIBADD = \
72 obt/libobt.la \
73 $(X_LIBS) \
74 $(PANGO_LIBS) \
75 $(GLIB_LIBS) \
76 $(XML_LIBS)
77 obrender_libobrender_la_SOURCES = \
78 gettext.h \
79 obrender/color.h \
80 obrender/color.c \
81 obrender/font.h \
82 obrender/font.c \
83 obrender/geom.h \
84 obrender/gradient.h \
85 obrender/gradient.c \
86 obrender/icon.h \
87 obrender/image.h \
88 obrender/image.c \
89 obrender/imagecache.h \
90 obrender/imagecache.c \
91 obrender/instance.h \
92 obrender/instance.c \
93 obrender/mask.h \
94 obrender/mask.c \
95 obrender/render.h \
96 obrender/render.c \
97 obrender/theme.h \
98 obrender/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/xml.h \
133 obt/xml.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 obrender/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/addremovedesktop.c \
176 openbox/actions/breakchroot.c \
177 openbox/actions/close.c \
178 openbox/actions/cyclewindows.c \
179 openbox/actions/debug.c \
180 openbox/actions/decorations.c \
181 openbox/actions/desktop.c \
182 openbox/actions/dockautohide.c \
183 openbox/actions/directionalwindows.c \
184 openbox/actions/execute.c \
185 openbox/actions/exit.c \
186 openbox/actions/focus.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/lower.c \
195 openbox/actions/maximize.c \
196 openbox/actions/move.c \
197 openbox/actions/moverelative.c \
198 openbox/actions/moveresizeto.c \
199 openbox/actions/movetoedge.c \
200 openbox/actions/omnipresent.c \
201 openbox/actions/raise.c \
202 openbox/actions/raiselower.c \
203 openbox/actions/reconfigure.c \
204 openbox/actions/resize.c \
205 openbox/actions/resizerelative.c \
206 openbox/actions/restart.c \
207 openbox/actions/shade.c \
208 openbox/actions/shadelowerraise.c \
209 openbox/actions/showdesktop.c \
210 openbox/actions/showmenu.c \
211 openbox/actions/unfocus.c \
212 openbox/actions.c \
213 openbox/actions.h \
214 openbox/client.c \
215 openbox/client.h \
216 openbox/client_list_menu.c \
217 openbox/client_list_menu.h \
218 openbox/client_list_combined_menu.c \
219 openbox/client_list_combined_menu.h \
220 openbox/client_menu.c \
221 openbox/client_menu.h \
222 openbox/config.c \
223 openbox/config.h \
224 openbox/debug.c \
225 openbox/debug.h \
226 openbox/dock.c \
227 openbox/dock.h \
228 openbox/event.c \
229 openbox/event.h \
230 openbox/focus.c \
231 openbox/focus.h \
232 openbox/focus_cycle.c \
233 openbox/focus_cycle.h \
234 openbox/focus_cycle_indicator.c \
235 openbox/focus_cycle_indicator.h \
236 openbox/focus_cycle_popup.c \
237 openbox/focus_cycle_popup.h \
238 openbox/frame.c \
239 openbox/frame.h \
240 openbox/framerender.c \
241 openbox/framerender.h \
242 openbox/geom.h \
243 openbox/grab.c \
244 openbox/grab.h \
245 openbox/group.c \
246 openbox/group.h \
247 openbox/imageload.c \
248 openbox/imageload.h \
249 openbox/keyboard.c \
250 openbox/keyboard.h \
251 openbox/keytree.c \
252 openbox/keytree.h \
253 openbox/menuframe.c \
254 openbox/menuframe.h \
255 openbox/menu.c \
256 openbox/menu.h \
257 openbox/misc.h \
258 openbox/mouse.c \
259 openbox/mouse.h \
260 openbox/moveresize.c \
261 openbox/moveresize.h \
262 openbox/mwm.h \
263 openbox/openbox.c \
264 openbox/openbox.h \
265 openbox/ping.c \
266 openbox/ping.h \
267 openbox/place.c \
268 openbox/place.h \
269 openbox/prompt.c \
270 openbox/prompt.h \
271 openbox/popup.c \
272 openbox/popup.h \
273 openbox/resist.c \
274 openbox/resist.h \
275 openbox/screen.c \
276 openbox/screen.h \
277 openbox/session.c \
278 openbox/session.h \
279 openbox/stacking.c \
280 openbox/stacking.h \
281 openbox/startupnotify.c \
282 openbox/startupnotify.h \
283 openbox/translate.c \
284 openbox/translate.h \
285 openbox/window.c \
286 openbox/window.h
287
288
289 ## gnome-panel-control ##
290
291 tools_gnome_panel_control_gnome_panel_control_CPPFLAGS = \
292 $(X_CFLAGS)
293 tools_gnome_panel_control_gnome_panel_control_LDADD = \
294 $(X_LIBS)
295 tools_gnome_panel_control_gnome_panel_control_SOURCES = \
296 tools/gnome-panel-control/gnome-panel-control.c
297
298 ## obxprop ##
299
300 tools_obxprop_obxprop_CPPFLAGS = \
301 $(GLIB_CFLAGS) \
302 $(X_CFLAGS)
303 tools_obxprop_obxprop_LDADD = \
304 $(GLIB_LIBS) \
305 $(X_LIBS)
306 tools_obxprop_obxprop_SOURCES = \
307 tools/obxprop/obxprop.c
308
309 ## gdm-control ##
310
311 tools_gdm_control_gdm_control_CPPFLAGS = \
312 $(X_CFLAGS) \
313 $(GLIB_CFLAGS)
314 tools_gdm_control_gdm_control_LDADD = \
315 $(X_LIBS) \
316 $(GLIB_LIBS)
317 tools_gdm_control_gdm_control_SOURCES = \
318 tools/gdm-control/gdm-control.c
319
320
321 ## default button masks ##
322 dist_docxbm_DATA = \
323 data/xbm/bullet.xbm \
324 data/xbm/close.xbm \
325 data/xbm/desk_toggled.xbm \
326 data/xbm/desk.xbm \
327 data/xbm/iconify.xbm \
328 data/xbm/max_toggled.xbm \
329 data/xbm/max.xbm \
330 data/xbm/shade_toggled.xbm \
331 data/xbm/shade.xbm
332
333
334 ## themes ##
335
336 clearlooks_themedir = $(themedir)/Clearlooks/openbox-3
337 dist_clearlooks_theme_DATA= \
338 themes/Clearlooks/openbox-3/themerc
339
340 clearlooks34_themedir = $(themedir)/Clearlooks/openbox-3
341 dist_clearlooks34_theme_DATA= \
342 themes/Clearlooks-3.4/openbox-3/themerc
343
344 clearlooksolive_themedir = $(themedir)/Clearlooks-Olive/openbox-3
345 dist_clearlooksolive_theme_DATA= \
346 themes/Clearlooks-Olive/openbox-3/themerc
347
348 mikachu_themedir = $(themedir)/Mikachu/openbox-3
349 dist_mikachu_theme_DATA= \
350 themes/Mikachu/openbox-3/bullet.xbm \
351 themes/Mikachu/openbox-3/close.xbm \
352 themes/Mikachu/openbox-3/desk.xbm \
353 themes/Mikachu/openbox-3/iconify.xbm \
354 themes/Mikachu/openbox-3/max.xbm \
355 themes/Mikachu/openbox-3/themerc
356
357
358 natura_themedir = $(themedir)/Natura/openbox-3
359 dist_natura_theme_DATA= \
360 themes/Natura/openbox-3/close_hover.xbm \
361 themes/Natura/openbox-3/close.xbm \
362 themes/Natura/openbox-3/desk_toggled.xbm \
363 themes/Natura/openbox-3/desk_hover.xbm \
364 themes/Natura/openbox-3/desk.xbm \
365 themes/Natura/openbox-3/iconify_hover.xbm \
366 themes/Natura/openbox-3/iconify.xbm \
367 themes/Natura/openbox-3/max_hover.xbm \
368 themes/Natura/openbox-3/max_toggled.xbm \
369 themes/Natura/openbox-3/max.xbm \
370 themes/Natura/openbox-3/shade.xbm \
371 themes/Natura/openbox-3/shade_hover.xbm \
372 themes/Natura/openbox-3/themerc
373
374 artwizboxed_themedir = $(themedir)/Artwiz-boxed/openbox-3
375 dist_artwizboxed_theme_DATA= \
376 themes/Artwiz-boxed/openbox-3/themerc
377
378 bear2_themedir = $(themedir)/Bear2/openbox-3
379 dist_bear2_theme_DATA= \
380 themes/Bear2/openbox-3/close_pressed.xbm \
381 themes/Bear2/openbox-3/close.xbm \
382 themes/Bear2/openbox-3/desk_toggled.xbm \
383 themes/Bear2/openbox-3/desk.xbm \
384 themes/Bear2/openbox-3/iconify_pressed.xbm \
385 themes/Bear2/openbox-3/iconify.xbm \
386 themes/Bear2/openbox-3/max_pressed.xbm \
387 themes/Bear2/openbox-3/max_toggled.xbm \
388 themes/Bear2/openbox-3/max.xbm \
389 themes/Bear2/openbox-3/shade_pressed.xbm \
390 themes/Bear2/openbox-3/shade.xbm \
391 themes/Bear2/openbox-3/themerc
392
393 orang_themedir = $(themedir)/Orang/openbox-3
394 dist_orang_theme_DATA= \
395 themes/Orang/openbox-3/themerc
396
397 onyx_themedir = $(themedir)/Onyx/openbox-3
398 dist_onyx_theme_DATA= \
399 themes/Onyx/openbox-3/themerc
400
401 onyxcitrus_themedir = $(themedir)/Onyx-Citrus/openbox-3
402 dist_onyxcitrus_theme_DATA= \
403 themes/Onyx-Citrus/openbox-3/themerc
404
405 syscrash_themedir = $(themedir)/Syscrash/openbox-3
406 dist_syscrash_theme_DATA= \
407 themes/Syscrash/openbox-3/max_disabled.xbm \
408 themes/Syscrash/openbox-3/max_pressed.xbm \
409 themes/Syscrash/openbox-3/max_toggled.xbm \
410 themes/Syscrash/openbox-3/max.xbm \
411 themes/Syscrash/openbox-3/themerc
412
413 ## public headers ##
414
415 rrpubinclude_HEADERS = \
416 obrender/color.h \
417 obrender/font.h \
418 obrender/geom.h \
419 obrender/gradient.h \
420 obrender/image.h \
421 obrender/instance.h \
422 obrender/mask.h \
423 obrender/render.h \
424 obrender/theme.h \
425 obrender/version.h
426
427 obtpubinclude_HEADERS = \
428 obt/display.h \
429 obt/keyboard.h \
430 obt/mainloop.h \
431 obt/xml.h \
432 obt/paths.h \
433 obt/prop.h \
434 obt/util.h \
435 obt/version.h \
436 obt/xevent.h
437
438 nodist_pkgconfig_DATA = \
439 obrender/obrender-3.5.pc \
440 obt/obt-3.5.pc
441
442 ## data ##
443
444 dist_apps_DATA = \
445 data/openbox.desktop
446
447 dist_pixmap_DATA = \
448 data/openbox.png
449
450 nodist_rc_DATA = \
451 data/autostart.sh
452
453 dist_rc_DATA = \
454 data/rc.xml \
455 data/menu.xml
456
457 edit = $(SED) \
458 -e 's!@version\@!$(VERSION)!' \
459 -e 's!@configdir\@!$(configdir)!' \
460 -e 's!@secretbindir\@!$(secretbindir)!' \
461 -e 's!@bindir\@!$(bindir)!'
462
463 data/autostart.sh: $(srcdir)/data/autostart.sh.in Makefile
464 @echo make: creating $@
465 @$(edit) $< >$@
466
467 %.desktop: %.desktop.in Makefile
468 @echo make: creating $@
469 @$(edit) $< >$@
470
471 %-session: %-session.in Makefile
472 @echo make: creating $@
473 @$(edit) $< >$@
474
475 %.1.in: %.1.sgml
476 @echo make: creating $@
477 @docbook-to-man $< >$@
478
479 %.1: %.1.in Makefile
480 @echo make: creating $@
481 @$(edit) $< >$@
482
483 dist_gnomewmfiles_DATA = \
484 data/gnome-wm-properties/openbox.desktop
485
486 nodist_xsessions_DATA = \
487 data/xsession/openbox.desktop \
488 data/xsession/openbox-gnome.desktop \
489 data/xsession/openbox-kde.desktop
490
491 dist_noinst_DATA = \
492 data/autostart.sh.in \
493 data/rc.xsd \
494 data/menu.xsd \
495 data/xsession/openbox.desktop.in \
496 data/xsession/openbox-gnome.desktop.in \
497 data/xsession/openbox-kde.desktop.in \
498 data/xsession/openbox-session.in \
499 data/xsession/openbox-gnome-session.in \
500 data/xsession/openbox-kde-session.in \
501 doc/openbox.1.sgml \
502 doc/openbox.1.in \
503 doc/openbox-session.1.sgml \
504 doc/openbox-session.1.in \
505 doc/openbox-gnome-session.1.sgml \
506 doc/openbox-gnome-session.1.in \
507 doc/openbox-kde-session.1.sgml \
508 doc/openbox-kde-session.1.in \
509 doc/obxprop.1.sgml \
510 doc/obxprop.1.in \
511 obrender/version.h.in \
512 obrender/obrender-3.5.pc.in \
513 obt/obt-3.5.pc.in \
514 obt/version.h.in \
515 tools/themeupdate/themeupdate.py \
516 tests/hideshow.py \
517 tests/Makefile \
518 tests/aspect.c \
519 tests/fullscreen.c \
520 tests/grav.c \
521 tests/grouptran.c \
522 tests/icons.c \
523 tests/modal2.c \
524 tests/modal3.c \
525 tests/modal.c \
526 tests/noresize.c \
527 tests/override.c \
528 tests/positioned.c \
529 tests/strut.c \
530 tests/title.c \
531 tests/urgent.c
532
533 dist_doc_DATA = \
534 COMPLIANCE \
535 README \
536 AUTHORS \
537 CHANGELOG \
538 COPYING \
539 data/rc.xsd \
540 data/menu.xsd \
541 doc/rc-mouse-focus.xml
542
543 nodist_man_MANS = \
544 doc/openbox.1 \
545 doc/openbox-session.1 \
546 doc/openbox-gnome-session.1 \
547 doc/openbox-kde-session.1
548
549 EXTRA_DIST = \
550 config.rpath
551
552 # make clean doesn't delete these for some reason, even though they are
553 # built by make
554 CLEANFILES = \
555 doc/openbox.1 \
556 doc/openbox-session.1 \
557 doc/openbox-gnome-session.1 \
558 doc/openbox-kde-session.1 \
559 data/xsession/openbox-session \
560 data/xsession/openbox-gnome-session \
561 data/xsession/openbox-kde-session \
562 data/xsession/openbox.desktop \
563 data/xsession/openbox-gnome.desktop \
564 data/xsession/openbox-kde.desktop
565
566 #doc:
567 # $(MAKE) -$(MAKEFLAGS) -C doc/doxygen doc
568
569 distclean-local:
570 for d in . m4 po obrender parser obt openbox; do \
571 for p in core core.* gmon.out *\~ *.orig *.rej .\#*; do \
572 rm -f "$$d/$$p"; \
573 done \
574 done
575
576 .PHONY: doc
This page took 0.06345 seconds and 5 git commands to generate.