summary refs log tree commit diff stats
path: root/plugins/fishlim/Makefile
diff options
context:
space:
mode:
authorBerke Viktor <berkeviktor@aol.com>2011-11-24 23:17:31 +0100
committerBerke Viktor <berkeviktor@aol.com>2011-11-24 23:17:31 +0100
commit1a96ca3edd2b3b503a00180a8d1bb225cac2059b (patch)
tree3d06014fb0c47873b2260eef2c4a44bde25d2b8d /plugins/fishlim/Makefile
parent895e3b6b40c8a50231e775e3ccca1e4437946eb8 (diff)
add fishlim plugin
Diffstat (limited to 'plugins/fishlim/Makefile')
-rw-r--r--plugins/fishlim/Makefile40
1 files changed, 40 insertions, 0 deletions
diff --git a/plugins/fishlim/Makefile b/plugins/fishlim/Makefile
new file mode 100644
index 00000000..7a5081e4
--- /dev/null
+++ b/plugins/fishlim/Makefile
@@ -0,0 +1,40 @@
+
+OURCFLAGS = -Wall -Wextra -Wno-unused-parameter -std=c99 -pedantic `pkg-config --cflags glib-2.0 libcrypto` -DG_DISABLE_DEPRECATED=1 -fPIC $(CFLAGS)
+#OURLINKFLAGS = `pkg-config --libs glib-2.0 libcrypto` -shared -fPIC -Wl,-z,defs $(CFLAGS) $(LDFLAGS)
+OURLINKFLAGS = `pkg-config --libs glib-2.0 libcrypto` $(CFLAGS) $(LDFLAGS)
+
+BASE_OBJECTS = irc.o fish.o keystore.o misc.o
+PLUGIN_OBJECTS = $(BASE_OBJECTS) xchat_plugin.o
+TEST_OBJECTS = $(BASE_OBJECTS) test.o
+
+all: fishlim.so test
+
+fish.o: fish.h keystore.h misc.h
+irc.o: irc.h
+keystore.o: keystore.h irc.h fish.h misc.h
+misc.o: misc.h
+test.o: fish.h
+xchat_plugin.o: fish.h irc.h keystore.h
+
+.c.o:
+	$(CC) $(OURCFLAGS) -c $< -o $@
+
+fishlim.so: $(PLUGIN_OBJECTS)
+	$(CC) -shared $(OURLINKFLAGS) $(PLUGIN_OBJECTS) -o $@
+
+test: $(TEST_OBJECTS)
+	$(CC) $(OURLINKFLAGS) $(TEST_OBJECTS) -o $@
+
+
+.PHONY: all clean distclean install uninstall
+clean:
+	-$(RM) -f $(PLUGIN_OBJECTS) $(TEST_OBJECTS) fishlim.so test
+distclean: clean
+
+install: fishlim.so
+	install -d $(DESTDIR)/usr/lib/xchat/plugins/
+	install -m 644 fishlim.so $(DESTDIR)/usr/lib/xchat/plugins/
+uninstall:
+	rm $(DESTDIR)/usr/lib/xchat/plugins/fishlim.so
+
+