Commit 8616a9fb authored by Olivier Mehani's avatar Olivier Mehani Committed by Olivier Mehani
Browse files

Allow to build static library


Signed-off-by: default avatarOlivier Mehani <olivier.mehani@learnosity.com>
parent c699a7d0
......@@ -100,13 +100,15 @@ $(AXC_PATH):
$(LOMEMO_PATH):
$(MAKE) -C "$(LOMEMO_DIR)" build/libomemo-conversations.a
$(BDIR)/lurch.so: $(SDIR)/lurch.c $(AX_PATH) $(AXC_PATH) $(LOMEMO_PATH) $(BDIR)
$(CC) -fPIC $(CFLAGS) $(CPPFLAGS) \
-c "$(SDIR)/lurch.c" \
-o "$(BDIR)/lurch.o"
$(BDIR)/%.o: $(SDIR)/%.c $(BDIR)
$(CC) $(CFLAGS) $(CPPFLAGS) -c $(SDIR)/$*.c -o $@
$(BDIR)/lurch.so: $(BDIR)/lurch.o $(FILES)
$(CC) -fPIC -shared $(CFLAGS) $(CPPFLAGS) \
"$(BDIR)/lurch.o" $(FILES) \
-o $@ $(LDFLAGS)
$(BDIR)/lurch.a: $(BDIR)/lurch.o
$(AR) rcs $@ $^
install: $(BDIR)/lurch.so
[ -e "$(DESTDIR)/$(PURPLE_PLUGIN_DIR)" ] || \
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment