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.

95 lines
2.9 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 = $(datadir)/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. noinst_LTLIBRARIES = libmconn-crypt.la
  43. libmconn_crypt_la_SOURCES = src/mconn-crypt.c \
  44. src/mconn-crypt.h
  45. libmconn_crypt_la_CFLAGS = $(MCONNECT_CFLAGS)
  46. libmconn_crypt_la_LIBADD = $(MCONNECT_LIBS)
  47. test_mconn_crypt_SOURCES = test/mconn-crypt-test.c
  48. test_mconn_crypt_LDADD = $(MCONNECT_LIBS) libmconn-crypt.la
  49. test_mconn_crypt_CFLAGS = $(MCONNECT_CFLAGS) -Isrc
  50. test_mconn_crypt_vala_SOURCES = test/mconn-crypt-vala-test.vala
  51. test_mconn_crypt_vala_LDADD = $(MCONNECT_LIBS) libmconn-crypt.la
  52. test_mconn_crypt_vala_CFLAGS = $(MCONNECT_CFLAGS) -Isrc -I.
  53. VALAFLAGS = $(MCONNECT_VALAFLAGS) --vapidir=. --pkg=mconn-crypt
  54. mconn-crypt.gir: libmconn-crypt.la
  55. rm -f $@
  56. $(G_IR_SCANNER) src/mconn-crypt.[ch] $(MCONNECT_CFLAGS) \
  57. --include=GObject-2.0 \
  58. --namespace=MConn --library $< \
  59. --output=$@
  60. mconn-crypt.vapi: mconn-crypt.gir
  61. rm -f $@
  62. $(VALA_API_GEN) --library mconn-crypt $<
  63. # configure will expand bindir to ${exec_prefix}/bin, we want the
  64. # whole thing, that's why mconnect.desktop is generated here and not
  65. # in configure
  66. do_desktop_subst = sed -e 's,[@]bindir[@],${bindir},g'
  67. mconnect.desktop: mconnect.desktop.in
  68. $(do_desktop_subst) < $< > $@
  69. REV ?= HEAD
  70. git-source-dist:
  71. gitsha=`git rev-list $(REV) -1`; \
  72. git archive --prefix=mconnect-$${gitsha}/ $(REV) | \
  73. gzip -c > mconnect-$${gitsha}.tar.gz
  74. BUILT_SOURCES = mconn-crypt.vapi mconn-crypt.gir mconnect.desktop
  75. CLEANFILES = $(BUILT_SOURCES)