Mercurial > pidgin
annotate libgaim/plugins/Makefile.am @ 14253:dc0afefc19d8
[gaim-migrate @ 16935]
If gstreamer fails, show an error message and continue to load.
committer: Tailor Script <tailor@pidgin.im>
| author | Sadrul Habib Chowdhury <imadil@gmail.com> |
|---|---|
| date | Mon, 21 Aug 2006 03:04:12 +0000 |
| parents | a54ff7cafc2a |
| children | d5c22258df09 |
| rev | line source |
|---|---|
| 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) | |
|
14235
a54ff7cafc2a
[gaim-migrate @ 16917]
Richard Laager <rlaager@wiktel.com>
parents:
14192
diff
changeset
|
30 log_reader_la_LDFLAGS = -module -avoid-version $(GLIB_LIBS) |
| 14192 | 31 psychic_la_LDFLAGS = -module -avoid-version $(GLIB_LIBS) |
| 32 statenotify_la_LDFLAGS = -module -avoid-version $(GLIB_LIBS) | |
| 33 | |
| 34 # this can't be in a conditional otherwise automake 1.4 yells | |
| 35 dbus_example_la_LDFLAGS = -module -avoid-version $(GLIB_LIBS) $(DBUS_LIBS) | |
| 36 | |
| 37 if PLUGINS | |
| 38 | |
| 39 plugin_LTLIBRARIES = \ | |
| 40 idle.la \ | |
|
14235
a54ff7cafc2a
[gaim-migrate @ 16917]
Richard Laager <rlaager@wiktel.com>
parents:
14192
diff
changeset
|
41 log_reader.la \ |
| 14192 | 42 psychic.la \ |
| 43 statenotify.la \ | |
| 44 $(DBUS_LTLIB) | |
| 45 | |
| 46 | |
| 47 idle_la_SOURCES = idle.c | |
|
14235
a54ff7cafc2a
[gaim-migrate @ 16917]
Richard Laager <rlaager@wiktel.com>
parents:
14192
diff
changeset
|
48 log_reader_la_SOURCES = log_reader.c |
| 14192 | 49 psychic_la_SOURCES = psychic.c |
| 50 statenotify_la_SOURCES = statenotify.c | |
| 51 | |
| 52 if ENABLE_DBUS | |
| 53 | |
| 54 CLEANFILES = dbus-example-bindings.c | |
| 55 dbus_example_la_SOURCES = dbus-example.c | |
| 56 | |
| 57 .PHONY: always | |
| 58 | |
| 59 $(top_builddir)/libgaim/dbus-types.h: always | |
| 60 cd $(@D) && $(MAKE) $(AM_MAKEFLAGS) $(@F) | |
| 61 | |
| 62 dbus-example-bindings.c: $(top_srcdir)/libgaim/dbus-analyze-functions.py $(dbus_example_la_SOURCES) | |
| 63 cat $(srcdir)/$(dbus_example_la_SOURCES) | \ | |
| 64 $(PYTHON) $(top_srcdir)/libgaim/dbus-analyze-functions.py --export-only > $@ | |
| 65 | |
| 66 $(dbus_example_la_OBJECTS) dbus-example.so: dbus-example-bindings.c $(top_builddir)/libgaim/dbus-types.h | |
| 67 | |
| 68 | |
| 69 endif # ENABLE_DBUS | |
| 70 | |
| 71 endif # PLUGINS | |
| 72 | |
| 73 EXTRA_DIST = \ | |
| 74 Makefile.mingw \ | |
| 75 dbus-buddyicons-example.py \ | |
| 76 filectl.c \ | |
| 77 fortuneprofile.pl \ | |
| 78 gaim.pl \ | |
| 79 ipc-test-client.c \ | |
| 80 ipc-test-server.c \ | |
| 81 pluginpref_example.c \ | |
| 82 signals-test.c \ | |
| 83 simple.c | |
| 84 | |
| 85 AM_CPPFLAGS = \ | |
| 86 -DDATADIR=\"$(datadir)\" \ | |
| 87 -DVERSION=\"$(VERSION)\" \ | |
| 88 -I$(top_builddir)/libgaim \ | |
| 89 -I$(top_srcdir)/libgaim \ | |
| 90 $(DEBUG_CFLAGS) \ | |
| 91 $(GLIB_CFLAGS) \ | |
| 92 $(PLUGIN_CFLAGS) \ | |
| 93 $(DBUS_CFLAGS) | |
| 94 | |
| 95 # | |
| 96 # This part allows people to build their own plugins in here. | |
| 97 # Yes, it's a mess. | |
| 98 # | |
| 99 SUFFIXES = .c .so | |
| 100 .c.so: | |
| 101 $(LIBTOOL) --mode=compile $(CC) -DHAVE_CONFIG_H -I$(top_srcdir) $(AM_CPPFLAGS) $(CFLAGS) -c $< -o tmp$@.lo $(PLUGIN_CFLAGS) | |
| 102 $(LIBTOOL) --mode=link $(CC) $(CFLAGS) -o libtmp$@.la -rpath $(plugindir) tmp$@.lo $(LIBS) $(LDFLAGS) -module -avoid-version $(PLUGIN_LIBS) | |
| 103 @rm -f tmp$@.lo tmp$@.o libtmp$@.la | |
| 104 @cp .libs/libtmp$@.so* $@ | |
| 105 @rm -f .libs/libtmp$@.* |
