]> Dogcows Code - chaz/openbox/blob - Makefile.am
fix mem leaks/crashes
[chaz/openbox] / Makefile.am
1 SUBDIRS = m4 po
2
3 themedir = $(datadir)/openbox/themes
4 localedir = $(datadir)/locale
5 rcdir = $(datadir)/openbox
6 plugindir = $(libdir)/openbox/plugins
7 desktopfilesdir = $(datadir)/gnome/wm-properties
8 pixmapdir = $(datadir)/pixmaps
9
10 theme = operation
11
12 AUTOMAKE_OPTIONS = subdir-objects
13 ACLOCAL_AMFLAGS = -I m4
14
15 INCLUDES = -I.
16
17 noinst_PROGRAMS = \
18 render/rendertest
19
20 lib_LTLIBRARIES = \
21 render/libobrender.la \
22 parser/libobparser.la
23
24 bin_PROGRAMS = \
25 kernel/openbox
26
27 plugin_LTLIBRARIES = \
28 plugins/resistance/resistance.la \
29 plugins/placement/placement.la \
30 plugins/mouse/mouse.la \
31 plugins/keyboard/keyboard.la \
32 plugins/menu/timed_menu.la \
33 plugins/menu/fifo_menu.la \
34 plugins/menu/client_menu.la \
35 plugins/menu/include_menu.la
36
37 if OBCONF
38 bin_PROGRAMS += \
39 tools/obconf/obconf
40
41 #plugin_LTLIBRARIES += \
42 # plugins/resistance/resistance-config.la
43 endif
44
45 ## render ##
46
47 render_rendertest_CPPFLAGS = \
48 $(XFT_CFLAGS) \
49 $(GLIB_CFLAGS) \
50 -DG_LOG_DOMAIN=\"RenderTest\"
51 render_rendertest_LDADD = render/libobrender.la
52 render_rendertest_SOURCES = render/test.c
53
54 render_libobrender_la_CPPFLAGS = \
55 $(X_CFLAGS) \
56 $(XFT_CFLAGS) \
57 $(GLIB_CFLAGS) \
58 -DG_LOG_DOMAIN=\"ObRender\" \
59 -DDEFAULT_THEME=\"$(theme)\" \
60 -DTHEMEDIR=\"$(themedir)\"
61 render_libobrender_la_LIBADD = \
62 $(X_LIBS) \
63 $(XFT_LIBS) \
64 $(GLIB_LIBS)
65 render_libobrender_la_SOURCES = \
66 gettext.h \
67 render/color.h \
68 render/color.c \
69 render/font.h \
70 render/font.c \
71 render/geom.h \
72 render/gradient.h \
73 render/gradient.c \
74 render/image.h \
75 render/image.c \
76 render/instance.h \
77 render/instance.c \
78 render/mask.h \
79 render/mask.c \
80 render/render.h \
81 render/render.c \
82 render/theme.h \
83 render/theme.c
84
85 ## parser ##
86
87 parser_libobparser_la_CPPFLAGS = \
88 $(GLIB_CFLAGS) \
89 $(XML_CFLAGS) \
90 -DG_LOG_DOMAIN=\"ObParser\" \
91 -DLOCALEDIR=\"$(localedir)\" \
92 -DRCDIR=\"$(rcdir)\"
93 parser_libobparser_la_LIBADD = \
94 $(GLIB_LIBS) \
95 $(XML_LIBS)
96 parser_libobparser_la_SOURCES = \
97 parser/parse.h \
98 parser/parse.c
99
100 ## kernel ##
101
102 kernel_openbox_CPPFLAGS = \
103 $(X_CFLAGS) \
104 $(SM_CFLAGS) \
105 $(XFT_CFLAGS) \
106 $(GLIB_CFLAGS) \
107 $(GMODULE_CFLAGS) \
108 $(LIBSN_CFLAGS) \
109 $(XML_CFLAGS) \
110 -DLOCALEDIR=\"$(localedir)\" \
111 -DPLUGINDIR=\"$(plugindir)\" \
112 -DRCDIR=\"$(rcdir)\" \
113 -DG_LOG_DOMAIN=\"Openbox\"
114 kernel_openbox_LDADD = \
115 $(SM_LIBS) \
116 $(XINERAMA_LIBS) \
117 $(XKB_LIBS) \
118 $(XRANDR_LIBS) \
119 $(VIDMODE_LIBS) \
120 $(XSHAPE_LIBS) \
121 $(GLIB_LIBS) \
122 $(GMODULE_LIBS) \
123 $(LIBSN_LIBS) \
124 $(XML_LIBS) \
125 $(EFENCE_LIBS) \
126 $(LIBINTL) \
127 render/libobrender.la \
128 parser/libobparser.la
129 kernel_openbox_LDFLAGS = -export-dynamic
130 kernel_openbox_SOURCES = \
131 gettext.h \
132 kernel/action.c \
133 kernel/action.h \
134 kernel/client.c \
135 kernel/client.h \
136 kernel/config.c \
137 kernel/config.h \
138 kernel/debug.c \
139 kernel/debug.h \
140 kernel/dispatch.c \
141 kernel/dispatch.h \
142 kernel/dock.c \
143 kernel/dock.h \
144 kernel/event.c \
145 kernel/event.h \
146 kernel/extensions.c \
147 kernel/extensions.h \
148 kernel/focus.c \
149 kernel/focus.h \
150 kernel/frame.c \
151 kernel/frame.h \
152 kernel/framerender.c \
153 kernel/framerender.h \
154 kernel/geom.h \
155 kernel/grab.c \
156 kernel/grab.h \
157 kernel/group.c \
158 kernel/group.h \
159 kernel/menu.c \
160 kernel/menu.h \
161 kernel/menu_render.c \
162 kernel/misc.h \
163 kernel/moveresize.c \
164 kernel/moveresize.h \
165 kernel/mwm.h \
166 kernel/openbox.c \
167 kernel/openbox.h \
168 kernel/plugin.c \
169 kernel/plugin.h \
170 kernel/popup.c \
171 kernel/popup.h \
172 kernel/prop.c \
173 kernel/prop.h \
174 kernel/screen.c \
175 kernel/screen.h \
176 kernel/session.c \
177 kernel/session.h \
178 kernel/stacking.c \
179 kernel/stacking.h \
180 kernel/startup.c \
181 kernel/startup.h \
182 kernel/timer.c \
183 kernel/timer.h \
184 kernel/window.c \
185 kernel/window.h \
186 kernel/xerror.c \
187 kernel/xerror.h \
188 plugins/interface.h
189
190 ## plugins/resistance ##
191
192 plugins_resistance_resistance_la_CPPFLAGS = \
193 $(XFT_CFLAGS) \
194 $(GLIB_CFLAGS) \
195 $(LIBSN_CFLAGS) \
196 $(XML_CFLAGS) \
197 -DPLUGINDIR=\"$(plugindir)\" \
198 -DG_LOG_DOMAIN=\"Plugin-Resistance\"
199 plugins_resistance_resistance_la_LDFLAGS = \
200 -module \
201 -avoid-version
202 plugins_resistance_resistance_la_SOURCES = \
203 plugins/resistance/resistance.c \
204 plugins/resistance/resistance.h
205
206 if OBCONF
207 plugins_resistance_resistance_config_la_CPPFLAGS = \
208 $(XFT_CFLAGS) \
209 $(GLIB_CFLAGS) \
210 $(LIBSN_CFLAGS) \
211 $(XML_CFLAGS) \
212 -DPLUGINDIR=\"$(plugindir)\" \
213 -DG_LOG_DOMAIN=\"Plugin-Resistance\" \
214 $(GTK_CFLAGS) \
215 $(GLADE_CFLAGS)
216 plugins_resistance_resistance_config_la_LDFLAGS = \
217 -module \
218 -avoid-version
219 plugins_resistance_resistance_config_la_SOURCES = \
220 plugins/resistance/resistance_config.c
221 endif
222
223 ## plugins/placement ##
224
225 plugins_placement_placement_la_CPPFLAGS = \
226 $(XFT_CFLAGS) \
227 $(GLIB_CFLAGS) \
228 $(LIBSN_CFLAGS) \
229 $(XML_CFLAGS) \
230 -DPLUGINDIR=\"$(plugindir)\" \
231 -DG_LOG_DOMAIN=\"Plugin-Placement\"
232 plugins_placement_placement_la_LDFLAGS = \
233 -module \
234 -avoid-version
235 plugins_placement_placement_la_SOURCES = \
236 plugins/placement/placement.c \
237 plugins/placement/history.c \
238 plugins/placement/history.h
239
240 ## plugins/mouse ##
241
242 plugins_mouse_mouse_la_CPPFLAGS = \
243 $(XFT_CFLAGS) \
244 $(GLIB_CFLAGS) \
245 $(LIBSN_CFLAGS) \
246 $(XML_CFLAGS) \
247 -DPLUGINDIR=\"$(plugindir)\" \
248 -DG_LOG_DOMAIN=\"Plugin-Mouse\"
249 plugins_mouse_mouse_la_LDFLAGS = \
250 -module \
251 -avoid-version
252 plugins_mouse_mouse_la_SOURCES = \
253 plugins/mouse/mouse.c \
254 plugins/mouse/mouse.h \
255 plugins/mouse/translate.c \
256 plugins/mouse/translate.h
257
258 ## plugins/mouse ##
259
260 plugins_keyboard_keyboard_la_CPPFLAGS = \
261 $(XFT_CFLAGS) \
262 $(GLIB_CFLAGS) \
263 $(LIBSN_CFLAGS) \
264 $(XML_CFLAGS) \
265 -DPLUGINDIR=\"$(plugindir)\" \
266 -DG_LOG_DOMAIN=\"Plugin-Keyboard\"
267 plugins_keyboard_keyboard_la_LDFLAGS = \
268 -module \
269 -avoid-version
270 plugins_keyboard_keyboard_la_SOURCES = \
271 plugins/keyboard/keyboard.c \
272 plugins/keyboard/keyboard.h \
273 plugins/keyboard/tree.c \
274 plugins/keyboard/tree.h \
275 plugins/keyboard/translate.c \
276 plugins/keyboard/translate.h
277
278 ## plugins/menu ##
279
280 plugins_menu_timed_menu_la_CPPFLAGS = \
281 $(XFT_CFLAGS) \
282 $(GLIB_CFLAGS) \
283 $(LIBSN_CFLAGS) \
284 $(XML_CFLAGS) \
285 -DPLUGINDIR=\"$(plugindir)\" \
286 -DG_LOG_DOMAIN=\"Plugin-Timed-Menu\"
287 plugins_menu_timed_menu_la_LDFLAGS = \
288 -module \
289 -avoid-version
290 plugins_menu_timed_menu_la_SOURCES = \
291 plugins/menu/timed_menu.c \
292 plugins/menu/timed_menu.h
293
294 plugins_menu_fifo_menu_la_CPPFLAGS = \
295 $(XFT_CFLAGS) \
296 $(GLIB_CFLAGS) \
297 $(LIBSN_CFLAGS) \
298 $(XML_CFLAGS) \
299 -DPLUGINDIR=\"$(plugindir)\" \
300 -DG_LOG_DOMAIN=\"Plugin-Fifo-Menu\"
301 plugins_menu_fifo_menu_la_LDFLAGS = \
302 -module \
303 -avoid-version
304 plugins_menu_fifo_menu_la_SOURCES = \
305 plugins/menu/fifo_menu.c \
306 plugins/menu/fifo_menu.h
307
308 plugins_menu_client_menu_la_CPPFLAGS = \
309 $(XFT_CFLAGS) \
310 $(GLIB_CFLAGS) \
311 $(LIBSN_CFLAGS) \
312 $(XML_CFLAGS) \
313 -DPLUGINDIR=\"$(plugindir)\" \
314 -DG_LOG_DOMAIN=\"Plugin-Client-Menu\"
315 plugins_menu_client_menu_la_LDFLAGS = \
316 -module \
317 -avoid-version
318 plugins_menu_client_menu_la_SOURCES = \
319 plugins/menu/client_menu.c
320
321 plugins_menu_include_menu_la_CPPFLAGS = \
322 $(XFT_CFLAGS) \
323 $(GLIB_CFLAGS) \
324 $(LIBSN_CFLAGS) \
325 $(XML_CFLAGS) \
326 -DPLUGINDIR=\"$(plugindir)\" \
327 -DG_LOG_DOMAIN=\"Plugin-Include-Menu\"
328 plugins_menu_include_menu_la_LDFLAGS = \
329 -module \
330 -avoid-version
331 plugins_menu_include_menu_la_SOURCES = \
332 plugins/menu/include_menu.c
333
334
335 ## obconf ##
336
337 tools_obconf_obconf_CPPFLAGS = \
338 $(GTK_CFLAGS) \
339 $(GDK_PIXBUF_CFLAGS) \
340 $(XML_CFLAGS) \
341 -DLOCALEDIR=\"$(localedir)\" \
342 -DPLUGINDIR=\"$(plugindir)\" \
343 -DRCDIR=\"$(rcdir)\" \
344 -DPIXMAPDIR=\"$(pixmapdir)\" \
345 -DG_LOG_DOMAIN=\"Obconf\"
346 tools_obconf_obconf_LDADD = \
347 $(GTK_LIBS) \
348 $(GDK_PIXBUF_LIBS) \
349 $(LIBINTL) \
350 render/libobrender.la \
351 parser/libobparser.la
352 tools_obconf_obconf_SOURCES = \
353 gettext.h \
354 tools/obconf/main.c
355
356
357 ## themes ##
358
359 dist_theme_DATA = \
360 themes/artwiz \
361 themes/bbs \
362 themes/bluebox \
363 themes/cthulhain \
364 themes/deep \
365 themes/ebox \
366 themes/fieron \
367 themes/fieron2 \
368 themes/flux \
369 themes/frobozz \
370 themes/frobust \
371 themes/mbdtex \
372 themes/miklos \
373 themes/nyz \
374 themes/nyzclone \
375 themes/ob20 \
376 themes/operation \
377 themes/outcomes \
378 themes/paper \
379 themes/purplehaaze \
380 themes/shade \
381 themes/steelblue \
382 themes/steelblue2 \
383 themes/the_orange \
384 themes/trisb \
385 themes/twice \
386 themes/warp-xp
387
388 fieronthemedir = $(themedir)/fieron_data
389 dist_fierontheme_DATA = \
390 themes/fieron_data/close.xbm \
391 themes/fieron_data/iconify.xbm \
392 themes/fieron_data/max.xbm \
393 themes/fieron_data/stick.xbm
394
395 fieron2themedir = $(themedir)/fieron2_data
396 dist_fieron2theme_DATA = \
397 themes/fieron2_data/close.xbm \
398 themes/fieron2_data/iconify.xbm \
399 themes/fieron2_data/max.xbm \
400 themes/fieron2_data/stick.xbm
401
402 eboxthemedir = $(themedir)/ebox_data
403 dist_eboxtheme_DATA = \
404 themes/ebox_data/close.xbm \
405 themes/ebox_data/iconify.xbm \
406 themes/ebox_data/max.xbm
407
408 ## data ##
409
410 dist_rc_DATA = \
411 data/rc3
412
413 EXTRA_DIST = \
414 config.rpath \
415 mkinstalldirs \
416 README \
417 COPYING \
418 AUTHORS \
419 plugins/obconf_interface.h
420
421 #doc:
422 # $(MAKE) -$(MAKEFLAGS) -C doc/doxygen doc
423
424 distclean-local:
425 for d in . m4 po render; do \
426 for p in core core.* gmon.out *\~ *.orig *.rej .\#*; do \
427 rm -f "$$d/$$p"; \
428 done \
429 done
430
431 .PHONY: doc
This page took 0.057079 seconds and 4 git commands to generate.