14192
|
1 DIST_SUBDIRS = mono perl ssl tcl
|
|
2
|
|
3 if USE_PERL
|
|
4 # Fix the perl plugin to not use gtk first
|
|
5 # PERL_DIR = perl
|
|
6 PERL_DIR =
|
|
7 endif
|
|
8
|
|
9 if USE_TCL
|
|
10 TCL_DIR = tcl
|
|
11 endif
|
|
12
|
|
13 if ENABLE_DBUS
|
|
14 DBUS_LTLIB = dbus-example.la
|
|
15 endif
|
|
16
|
|
17 if USE_MONO
|
|
18 MONO_DIR = mono
|
|
19 endif
|
|
20
|
|
21 SUBDIRS = \
|
|
22 $(MONO_DIR) \
|
|
23 $(PERL_DIR) \
|
|
24 ssl \
|
|
25 $(TCL_DIR)
|
|
26
|
|
27 plugindir = $(libdir)/gaim
|
|
28
|
|
29 idle_la_LDFLAGS = -module -avoid-version $(GLIB_LIBS)
|
|
30 psychic_la_LDFLAGS = -module -avoid-version $(GLIB_LIBS)
|
|
31 statenotify_la_LDFLAGS = -module -avoid-version $(GLIB_LIBS)
|
|
32
|
|
33 # this can't be in a conditional otherwise automake 1.4 yells
|
|
34 dbus_example_la_LDFLAGS = -module -avoid-version $(GLIB_LIBS) $(DBUS_LIBS)
|
|
35
|
|
36 if PLUGINS
|
|
37
|
|
38 plugin_LTLIBRARIES = \
|
|
39 idle.la \
|
|
40 psychic.la \
|
|
41 statenotify.la \
|
|
42 $(DBUS_LTLIB)
|
|
43
|
|
44
|
|
45 idle_la_SOURCES = idle.c
|
|
46 psychic_la_SOURCES = psychic.c
|
|
47 statenotify_la_SOURCES = statenotify.c
|
|
48
|
|
49 if ENABLE_DBUS
|
|
50
|
|
51 CLEANFILES = dbus-example-bindings.c
|
|
52 dbus_example_la_SOURCES = dbus-example.c
|
|
53
|
|
54 .PHONY: always
|
|
55
|
|
56 $(top_builddir)/libgaim/dbus-types.h: always
|
|
57 cd $(@D) && $(MAKE) $(AM_MAKEFLAGS) $(@F)
|
|
58
|
|
59 dbus-example-bindings.c: $(top_srcdir)/libgaim/dbus-analyze-functions.py $(dbus_example_la_SOURCES)
|
|
60 cat $(srcdir)/$(dbus_example_la_SOURCES) | \
|
|
61 $(PYTHON) $(top_srcdir)/libgaim/dbus-analyze-functions.py --export-only > $@
|
|
62
|
|
63 $(dbus_example_la_OBJECTS) dbus-example.so: dbus-example-bindings.c $(top_builddir)/libgaim/dbus-types.h
|
|
64
|
|
65
|
|
66 endif # ENABLE_DBUS
|
|
67
|
|
68 endif # PLUGINS
|
|
69
|
|
70 EXTRA_DIST = \
|
|
71 Makefile.mingw \
|
|
72 dbus-buddyicons-example.py \
|
|
73 filectl.c \
|
|
74 fortuneprofile.pl \
|
|
75 gaim.pl \
|
|
76 ipc-test-client.c \
|
|
77 ipc-test-server.c \
|
|
78 pluginpref_example.c \
|
|
79 signals-test.c \
|
|
80 simple.c
|
|
81
|
|
82 AM_CPPFLAGS = \
|
|
83 -DDATADIR=\"$(datadir)\" \
|
|
84 -DVERSION=\"$(VERSION)\" \
|
|
85 -I$(top_builddir)/libgaim \
|
|
86 -I$(top_srcdir)/libgaim \
|
|
87 $(DEBUG_CFLAGS) \
|
|
88 $(GLIB_CFLAGS) \
|
|
89 $(PLUGIN_CFLAGS) \
|
|
90 $(DBUS_CFLAGS)
|
|
91
|
|
92 #
|
|
93 # This part allows people to build their own plugins in here.
|
|
94 # Yes, it's a mess.
|
|
95 #
|
|
96 SUFFIXES = .c .so
|
|
97 .c.so:
|
|
98 $(LIBTOOL) --mode=compile $(CC) -DHAVE_CONFIG_H -I$(top_srcdir) $(AM_CPPFLAGS) $(CFLAGS) -c $< -o tmp$@.lo $(PLUGIN_CFLAGS)
|
|
99 $(LIBTOOL) --mode=link $(CC) $(CFLAGS) -o libtmp$@.la -rpath $(plugindir) tmp$@.lo $(LIBS) $(LDFLAGS) -module -avoid-version $(PLUGIN_LIBS)
|
|
100 @rm -f tmp$@.lo tmp$@.o libtmp$@.la
|
|
101 @cp .libs/libtmp$@.so* $@
|
|
102 @rm -f .libs/libtmp$@.*
|