diff options
author | Richard van der Hoff <richard@matrix.org> | 2015-10-13 17:32:32 +0100 |
---|---|---|
committer | Richard van der Hoff <richard@matrix.org> | 2015-10-13 17:32:32 +0100 |
commit | 660c9fce8edfde76a6b40410b0629fd7aa5b4e6c (patch) | |
tree | 008eaf3cee004bdbe9c23ceeddb7b1609e0240ee /Makefile | |
parent | f35899ea68052f22e7898aac8d17e61cfe7dfd75 (diff) | |
download | purple-matrix-660c9fce8edfde76a6b40410b0629fd7aa5b4e6c.tar.gz |
Initial framework
Just lifting the null plugin from the libpurple source. Doesn't do anything
yet, but functions as a working plugin.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..7bcb61a --- /dev/null +++ b/Makefile @@ -0,0 +1,23 @@ +#!/usr/bin/make -f + +CC=gcc +GLIB_CFLAGS=$(shell pkg-config --cflags glib-2.0) +CFLAGS+=-I/usr/include/libpurple -DPURPLE_PLUGINS $(GLIB_CFLAGS) +CFLAGS+=-fPIC -DPIC +CFLAGS+=-Wall -g -O0 + +OBJECTS=nullprpl.o +TARGET=libmatrix.so + +all: $(TARGET) +clean: + rm -f $(OBJECTS) $(TARGET) + +install: + mkdir -p $(DESTDIR)/usr/lib/purple-2 + install -m 664 $(TARGET) $(DESTDIR)/usr/lib/purple-2/ + + +$(TARGET): $(OBJECTS) + $(LINK.o) -shared $^ $(LOADLIBES) $(LDLIBS) -o $@ + |