Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Makefile

    ra0c6fc5 r5155570  
    2727subdirobjs = $(foreach dir,$(subdirs),$(dir)/$(dir).o)
    2828
    29 all: $(OUTFILE) $(OTR_PI) systemd
     29all: $(OUTFILE) $(OTR_PI) $(SKYPE_PI) systemd
    3030        $(MAKE) -C doc
     31ifdef SKYPE_PI
     32        $(MAKE) -C protocols/skype doc
     33endif
    3134
    3235uninstall: uninstall-bin uninstall-doc
     
    7174install-doc:
    7275        $(MAKE) -C doc install
     76ifdef SKYPE_PI
     77        $(MAKE) -C protocols/skype install-doc
     78endif
    7379
    7480uninstall-doc:
    7581        $(MAKE) -C doc uninstall
     82ifdef SKYPE_PI
     83        $(MAKE) -C protocols/skype uninstall-doc
     84endif
    7685
    7786install-bin:
     
    109118        install -m 0755 otr.so $(DESTDIR)$(PLUGINDIR)
    110119endif
     120ifdef SKYPE_PI
     121        mkdir -p $(DESTDIR)$(PLUGINDIR)
     122        install -m 0755 skype.so $(DESTDIR)$(PLUGINDIR)
     123        mkdir -p $(DESTDIR)$(ETCDIR)/../skyped
     124        install -m 0644 $(SRCDIR)protocols/skype/skyped.cnf $(DESTDIR)$(ETCDIR)/../skyped/skyped.cnf
     125        install -m 0644 $(SRCDIR)protocols/skype/skyped.conf $(DESTDIR)$(ETCDIR)/../skyped/skyped.conf
     126        install -m 0755 $(SRCDIR)protocols/skype/skyped.py $(DESTDIR)$(BINDIR)/skyped
     127endif
    111128
    112129systemd:
     
    139156$(OTR_PI): %.so: $(SRCDIR)%.c
    140157        @echo '*' Building plugin $@
    141         @$(CC) $(CFLAGS) $(OTRFLAGS) -fPIC -shared $(LDFLAGS) $< -o $@
     158        @$(CC) $(CFLAGS) $(OTRFLAGS) -fPIC -shared $< -o $@
     159
     160$(SKYPE_PI): $(SRCDIR)protocols/skype/skype.c
     161        @echo '*' Building plugin skype
     162        @$(CC) $(CFLAGS) -fPIC -shared $< -o $@
    142163
    143164$(objects): %.o: $(SRCDIR)%.c
     
    164185
    165186-include .depend/*.d
    166 # DO NOT DELETE
Note: See TracChangeset for help on using the changeset viewer.