2006-09-10 Francisco Javier F. Serrador <serrador@openshine.com>
[beagle.git] / glue / Makefile.am
blob40e69d5b58393afa98351c4debe06c09759b4d57
1 INCLUDES =
3 if ENABLE_GUI
4 INCLUDES +=                             \
5         $(LIBTRAYICON_CFLAGS)           \
6         $(UIGLUE_CFLAGS)
7 endif
9 EXTRA_GLUE_SOURCES =
10 EXTRA_GLUE_LIBADD =
12 BEAGLED_GLUE_SOURCES =  \
13         beagled-utils.c
15 if ENABLE_INOTIFY
16 EXTRA_GLUE_SOURCES +=           \
17         inotify.h               \
18         inotify-syscalls.h      \
19         inotify-glue.c
20 endif
22 IOPRIO_GLUE_SOURCES =   \
23         ioprio-glue.c
25 SYSINFO_GLUE_SOURCES =          \
26         screensaver-glue.c      \
27         thread-glue.c           \
28         vmsize-glue.c
30 if ENABLE_LIBXSS
31 SYSINFO_GLUE_LIBADD = $(SYSTEMINFO_GLUE_X_LIBS)
32 endif
34 KEY_GLUE_SOURCES =              \
35         tomboykeybinder.c       \
36         tomboykeybinder.h       \
37         eggaccelerators.c       \
38         eggaccelerators.h
40 TRAYICON_GLUE_SOURCES =         \
41         eggtrayicon.c           \
42         eggtrayicon.h
43 TRAYICON_GLUE_LIBADD = $(LIBTRAYICON_LIBS)
45 XDGMIME_GLUE_SOURCES =          \
46         xdgmime/xdgmime.c       \
47         xdgmime/xdgmime.h       \
48         xdgmime/xdgmimeglob.c   \
49         xdgmime/xdgmimeglob.h   \
50         xdgmime/xdgmimeint.c    \
51         xdgmime/xdgmimeint.h    \
52         xdgmime/xdgmimemagic.c  \
53         xdgmime/xdgmimemagic.h  \
54         xdgmime/xdgmimealias.c  \
55         xdgmime/xdgmimealias.h  \
56         xdgmime/xdgmimeparent.c \
57         xdgmime/xdgmimeparent.h \
58         xdgmime/xdgmimecache.c  \
59         xdgmime/xdgmimecache.h
61 UI_GLUE_SOURCES =               \
62         search-entry.c          \
63         search-entry.h          \
64         search-entry-watermark.h\
65         ui-glue.c
66 UI_GLUE_LIBADD = $(UIGLUE_LIBS)
68 search-entry.c: search-entry-watermark.h
70 search-entry-watermark.h: search-entry-watermark.svg
71         echo '#define SEARCH_ENTRY_WATERMARK_SVG "\' > $@; \
72         sed -e 's/"/\\"/g' -e 's/$$/\\/' -e 's/#000000/#%s/g' $< >> $@; \
73         echo '"' >> $@
75 if ENABLE_WV1
76 INCLUDES += \
77         $(WV1_CFLAGS)
78 EXTRA_GLUE_SOURCES +=   \
79         wv1-glue.c
80 EXTRA_GLUE_LIBADD +=    \
81         $(WV1_LIBS)
82 endif
84 libbeagleglue_la_SOURCES =              \
85         $(BEAGLED_GLUE_SOURCES)         \
86         $(IOPRIO_GLUE_SOURCES)          \
87         $(SYSINFO_GLUE_SOURCES)         \
88         $(XDGMIME_GLUE_SOURCES)         \
89         $(EXTRA_GLUE_SOURCES)
91 libbeagleglue_la_LIBADD =       \
92         $(SYSINFO_GLUE_LIBADD)  \
93         $(EXTRA_GLUE_LIBADD)
95 libbeagleuiglue_la_SOURCES =    \
96         $(KEY_GLUE_SOURCES)     \
97         $(TRAYICON_GLUE_SOURCES)\
98         $(UI_GLUE_SOURCES)
100 libbeagleuiglue_la_LIBADD =     \
101         $(TRAYICON_GLUE_LIBADD) \
102         $(UI_GLUE_LIBADD)
104 gluelibdir = $(pkglibdir)
105 gluelib_LTLIBRARIES =           \
106         libbeagleglue.la
108 if ENABLE_GUI
109 gluelib_LTLIBRARIES +=          \
110         libbeagleuiglue.la
111 endif
113 COND_SOURCES =                  \
114         wv1-glue.c              \
115         inotify.h               \
116         inotify-syscalls.h      \
117         inotify-glue.c
119 EXTRA_DIST =                    \
120         $(COND_SOURCES)         \
121         search-entry-watermark.svg