diff options
author | Miklos Vajna <vmiklos@frugalware.org> | 2011-04-12 02:16:35 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@frugalware.org> | 2011-04-12 02:16:35 +0200 |
commit | 370899f9368cdcb0bb43fd1510b0ea44c08027ec (patch) | |
tree | c49421e586f607eebd220952c4178a69e2adb245 /Makefile | |
parent | 43b1cd7ac2a55145f9a80c5af505308c788f4b90 (diff) |
Add build system support for building the skype plugin
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -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 $@ |