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 <>
parent c699a7d0
......@@ -100,13 +100,15 @@ $(AXC_PATH):
$(MAKE) -C "$(LOMEMO_DIR)" build/libomemo-conversations.a
$(BDIR)/ $(SDIR)/lurch.c $(AX_PATH) $(AXC_PATH) $(LOMEMO_PATH) $(BDIR)
-c "$(SDIR)/lurch.c" \
-o "$(BDIR)/lurch.o"
$(BDIR)/%.o: $(SDIR)/%.c $(BDIR)
$(CC) $(CFLAGS) $(CPPFLAGS) -c $(SDIR)/$*.c -o $@
$(BDIR)/ $(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)/
[ -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