changeset 91:308d0896d979

[gaim-migrate @ 101] Another test plugin showing yes, you can in fact do fun things with plugins committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Fri, 07 Apr 2000 19:53:11 +0000
parents f5b305c0d974
children f3c6cf79f651
files plugins/Makefile plugins/gaiminc.c
diffstat 2 files changed, 15 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/Makefile	Fri Apr 07 17:43:29 2000 +0000
+++ b/plugins/Makefile	Fri Apr 07 19:53:11 2000 +0000
@@ -2,5 +2,10 @@
 CFLAGS = -Wall
 LDFLAGS = -ggdb
 
+all: simple.so gaiminc.so
+
 simple.so: simple.c
 	$(CC) $(CFLAGS) $(LDFLAGS) -shared -Wl,-soname,$@ -o $@ $<
+
+gaiminc.so: gaiminc.c
+	$(CC) $(CFLAGS) $(LDFLAGS) -shared -Wl,-soname,$@ -o $@ $< -I../src `gnome-config --cflags --libs gtk gnome gnomeui`
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/plugins/gaiminc.c	Fri Apr 07 19:53:11 2000 +0000
@@ -0,0 +1,10 @@
+#include <gtk/gtk.h>
+#include <time.h>
+#include <stdio.h>
+#include <fcntl.h>
+#include "gaim.h"
+
+void gaim_plugin_init() {
+	show_about(NULL, NULL);
+	play_sound(RECEIVE);
+}