cvsimport
[beagle.git] / glue / Makefile.am
blobfe6c9bbe331ab96b8b4b28998e67ea5d0ad9154f
1 INCLUDES = $(MONO_CFLAGS)
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         mono-glue.c             \
27         screensaver-glue.c      \
28         thread-glue.c           \
29         vmsize-glue.c
31 SYSINFO_GLUE_LIBADD = $(MONO_LIBS)
33 if ENABLE_LIBXSS
34 SYSINFO_GLUE_LIBADD += $(SYSTEMINFO_GLUE_X_LIBS)
35 endif
37 KEY_GLUE_SOURCES =              \
38         tomboykeybinder.c       \
39         tomboykeybinder.h       \
40         eggaccelerators.c       \
41         eggaccelerators.h
43 TRAYICON_GLUE_SOURCES =         \
44         eggtrayicon.c           \
45         eggtrayicon.h
46 TRAYICON_GLUE_LIBADD = $(LIBTRAYICON_LIBS)
48 XDGMIME_GLUE_SOURCES =          \
49         xdgmime/xdgmime.c       \
50         xdgmime/xdgmime.h       \
51         xdgmime/xdgmimeglob.c   \
52         xdgmime/xdgmimeglob.h   \
53         xdgmime/xdgmimeint.c    \
54         xdgmime/xdgmimeint.h    \
55         xdgmime/xdgmimemagic.c  \
56         xdgmime/xdgmimemagic.h  \
57         xdgmime/xdgmimealias.c  \
58         xdgmime/xdgmimealias.h  \
59         xdgmime/xdgmimeparent.c \
60         xdgmime/xdgmimeparent.h \
61         xdgmime/xdgmimecache.c  \
62         xdgmime/xdgmimecache.h
64 UI_GLUE_SOURCES =               \
65         search-entry.c          \
66         search-entry.h          \
67         search-entry-watermark.h\
68         ui-glue.c
69 UI_GLUE_LIBADD = $(UIGLUE_LIBS)
71 search-entry.c: search-entry-watermark.h
73 search-entry-watermark.h: search-entry-watermark.svg
74         echo '#define SEARCH_ENTRY_WATERMARK_SVG "\' > $@; \
75         sed -e 's/"/\\"/g' -e 's/$$/\\/' -e 's/#000000/#%s/g' $< >> $@; \
76         echo '"' >> $@
78 if ENABLE_WV1
79 INCLUDES += \
80         $(WV1_CFLAGS)
81 EXTRA_GLUE_SOURCES +=   \
82         wv1-glue.c
83 EXTRA_GLUE_LIBADD +=    \
84         $(WV1_LIBS)
85 endif
87 libbeagleglue_la_SOURCES =              \
88         $(BEAGLED_GLUE_SOURCES)         \
89         $(IOPRIO_GLUE_SOURCES)          \
90         $(SYSINFO_GLUE_SOURCES)         \
91         $(XDGMIME_GLUE_SOURCES)         \
92         $(EXTRA_GLUE_SOURCES)
94 libbeagleglue_la_LIBADD =       \
95         $(SYSINFO_GLUE_LIBADD)  \
96         $(EXTRA_GLUE_LIBADD)
98 libbeagleuiglue_la_SOURCES =    \
99         $(KEY_GLUE_SOURCES)     \
100         $(TRAYICON_GLUE_SOURCES)\
101         $(UI_GLUE_SOURCES)
103 libbeagleuiglue_la_LIBADD =     \
104         $(TRAYICON_GLUE_LIBADD) \
105         $(UI_GLUE_LIBADD)
107 gluelibdir = $(pkglibdir)
108 gluelib_LTLIBRARIES =           \
109         libbeagleglue.la
111 if ENABLE_GUI
112 gluelib_LTLIBRARIES +=          \
113         libbeagleuiglue.la
114 endif
116 COND_SOURCES =                  \
117         wv1-glue.c              \
118         inotify.h               \
119         inotify-syscalls.h      \
120         inotify-glue.c
122 EXTRA_DIST =                    \
123         $(COND_SOURCES)         \
124         search-entry-watermark.svg