mconnect - KDE Connect protocol implementation in Vala/C
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

93 lines
2.7 KiB

  1. # This program is free software; you can redistribute it and/or modify
  2. # it under the terms of the GNU General Public License version 2 as
  3. # published by the Free Software Foundation.
  4. #
  5. # This program is distributed in the hope that it will be useful,
  6. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  7. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  8. # GNU General Public License for more details.
  9. #
  10. # You should have received a copy of the GNU General Public License along
  11. # with this program; if not, write to the Free Software Foundation, Inc.,
  12. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  13. #
  14. # AUTHORS
  15. # Maciek Borzecki <maciek.borzecki (at] gmail.com>
  16. #
  17. # location of *.desktop file, usually /usr/share/applications
  18. applicationsdir = $(datadir)/applications
  19. applications_DATA = mconnect.desktop
  20. mconnectdatadir = $(sysconfdir)/mconnect
  21. mconnectdata_DATA = mconnect.conf
  22. bin_PROGRAMS = mconnect
  23. noinst_PROGRAMS = test-mconn-crypt \
  24. test-mconn-crypt-vala
  25. mconnect_SOURCES = src/main.vala \
  26. src/discovery.vala \
  27. src/packet.vala \
  28. src/device.vala \
  29. src/devicemanager.vala \
  30. src/devicechannel.vala \
  31. src/core.vala \
  32. src/packethandlerinterface.vala \
  33. src/packethandlers.vala \
  34. src/notification.vala \
  35. src/battery.vala \
  36. src/telephony.vala \
  37. src/config.vala \
  38. src/mconn-crypt.c \
  39. src/mconn-crypt.h
  40. mconnect_LDADD = $(MCONNECT_LIBS)
  41. mconnect_CFLAGS = $(MCONNECT_CFLAGS) -Isrc
  42. test_mconn_crypt_SOURCES = test/mconn-crypt-test.c \
  43. src/mconn-crypt.c \
  44. src/mconn-crypt.h
  45. test_mconn_crypt_LDADD = $(MCONNECT_LIBS)
  46. test_mconn_crypt_CFLAGS = $(MCONNECT_CFLAGS) -Isrc
  47. test_mconn_crypt_vala_SOURCES = test/mconn-crypt-vala-test.vala \
  48. src/mconn-crypt.c \
  49. src/mconn-crypt.h
  50. test_mconn_crypt_vala_LDADD = $(MCONNECT_LIBS)
  51. test_mconn_crypt_vala_CFLAGS = $(MCONNECT_CFLAGS) -Isrc -I.
  52. VALAFLAGS = $(MCONNECT_VALAFLAGS) --vapidir=. --pkg=mconn-crypt
  53. mconn-crypt.gi: src/mconn-crypt.h
  54. rm -f $@
  55. $(GEN_INTROSPECT) -n MConn \
  56. $< $(filter -I%,$(MCONNECT_CFLAGS)) > $@
  57. mconn-crypt.vapi: mconn-crypt.gi
  58. rm -f $@
  59. vapigen --library mconn-crypt $<
  60. # configure will expand bindir to ${exec_prefix}/bin, we want the
  61. # whole thing, that's why mconnect.desktop is generated here and not
  62. # in configure
  63. do_desktop_subst = sed -e 's,[@]bindir[@],${bindir},g'
  64. mconnect.desktop: mconnect.desktop.in
  65. $(do_desktop_subst) < $< > $@
  66. REV ?= HEAD
  67. git-source-dist:
  68. gitsha=`git rev-list $(REV) -1`; \
  69. git archive --prefix=mconnect-$${gitsha}/ $(REV) | \
  70. gzip -c > mconnect-$${gitsha}.tar.gz
  71. BUILT_SOURCES = mconn-crypt.vapi mconn-crypt.gi mconnect.desktop
  72. CLEANFILES = $(BUILT_SOURCES)