aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@frugalware.org>2011-04-12 02:16:35 +0200
committerMiklos Vajna <vmiklos@frugalware.org>2011-04-12 02:16:35 +0200
commit370899f9368cdcb0bb43fd1510b0ea44c08027ec (patch)
treec49421e586f607eebd220952c4178a69e2adb245 /Makefile
parent43b1cd7ac2a55145f9a80c5af505308c788f4b90 (diff)
Add build system support for building the skype plugin
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 0a3d1677..673b7559 100644
--- a/Makefile
+++ b/Makefile
@@ -26,7 +26,7 @@ endif
# Expansion of variables
subdirobjs = $(foreach dir,$(subdirs),$(dir)/$(dir).o)
-all: $(OUTFILE) $(OTR_PI) systemd
+all: $(OUTFILE) $(OTR_PI) $(SKYPE_PI) systemd
$(MAKE) -C doc
uninstall: uninstall-bin uninstall-doc
@@ -108,6 +108,10 @@ ifdef OTR_PI
mkdir -p $(DESTDIR)$(PLUGINDIR)
install -m 0755 otr.so $(DESTDIR)$(PLUGINDIR)
endif
+ifdef SKYPE_PI
+ mkdir -p $(DESTDIR)$(PLUGINDIR)
+ install -m 0755 skype.so $(DESTDIR)$(PLUGINDIR)
+endif
systemd:
ifdef SYSTEMDSYSTEMUNITDIR
@@ -140,6 +144,10 @@ $(OTR_PI): %.so: $(SRCDIR)%.c
@echo '*' Building plugin $@
@$(CC) $(CFLAGS) $(OTRFLAGS) -fPIC -shared $< -o $@
+$(SKYPE_PI): $(SRCDIR)protocols/skype/skype.c
+ @echo '*' Building plugin skype
+ @$(CC) $(CFLAGS) -fPIC -shared $< -o $@
+
$(objects): %.o: $(SRCDIR)%.c
@echo '*' Compiling $<
@$(CC) -c $(CFLAGS) $< -o $@