Makefile.am 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. # Makefile.am - Makefile src/ for scute.
  2. # Copyright (C) 2006, 2008 g10 Code GmbH
  3. #
  4. # This file is part of Scute.
  5. #
  6. # Scute is free software; you can redistribute it and/or modify it
  7. # under the terms of the GNU General Public License as published by
  8. # the Free Software Foundation; either version 2 of the License, or
  9. # (at your option) any later version.
  10. #
  11. # Scute is distributed in the hope that it will be useful, but
  12. # WITHOUT ANY WARRANTY; without even the implied warranty of
  13. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  14. # General Public License for more details.
  15. #
  16. # You should have received a copy of the GNU General Public License
  17. # along with Scute; if not, write to the Free Software Foundation,
  18. # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
  19. #
  20. # In addition, as a special exception, g10 Code GmbH gives permission
  21. # to link this library: with the Mozilla Foundation's code for
  22. # Mozilla (or with modified versions of it that use the same license
  23. # as the "Mozilla" code), and distribute the linked executables. You
  24. # must obey the GNU General Public License in all respects for all of
  25. # the code used other than "Mozilla". If you modify this file, you
  26. # may extend this exception to your version of the file, but you are
  27. # not obligated to do so. If you do not wish to do so, delete this
  28. # exception statement from your version.
  29. ## Process this file with automake to produce Makefile.in
  30. EXTRA_DIST = libscute.vers scute.def versioninfo.rc.in
  31. sources = cryptoki.h pkcs11.h debug.c debug.h settings.h support.h \
  32. locking.h locking.c error-mapping.h error-mapping.c \
  33. get-path.c agent.h agent.c \
  34. estream-printf.c estream-printf.h \
  35. slots.h slots.c table.h table.c \
  36. cert.h cert-gpgsm.c cert-object.c gpgsm.h gpgsm.c \
  37. p11-cancelfunction.c p11-closeallsessions.c p11-closesession.c \
  38. p11-copyobject.c p11-createobject.c p11-decrypt.c \
  39. p11-decryptdigestupdate.c p11-decryptfinal.c p11-decryptinit.c \
  40. p11-decryptupdate.c p11-decryptverifyupdate.c p11-derivekey.c \
  41. p11-destroyobject.c p11-digest.c p11-digestencryptupdate.c \
  42. p11-digestfinal.c p11-digestinit.c p11-digestkey.c \
  43. p11-digestupdate.c p11-encrypt.c p11-encryptfinal.c \
  44. p11-encryptinit.c p11-encryptupdate.c p11-finalize.c \
  45. p11-findobjects.c p11-findobjectsfinal.c p11-findobjectsinit.c \
  46. p11-generatekey.c p11-generatekeypair.c p11-generaterandom.c \
  47. p11-getattributevalue.c p11-getfunctionlist.c \
  48. p11-getfunctionstatus.c p11-getinfo.c p11-getmechanisminfo.c \
  49. p11-getmechanismlist.c p11-getobjectsize.c \
  50. p11-getoperationstate.c p11-getsessioninfo.c p11-getslotinfo.c \
  51. p11-getslotlist.c p11-gettokeninfo.c p11-initialize.c \
  52. p11-initpin.c p11-inittoken.c p11-login.c p11-logout.c \
  53. p11-opensession.c p11-seedrandom.c p11-setattributevalue.c \
  54. p11-setoperationstate.c p11-setpin.c p11-sign.c \
  55. p11-signencryptupdate.c p11-signfinal.c p11-signinit.c \
  56. p11-signrecover.c p11-signrecoverinit.c p11-signupdate.c \
  57. p11-unwrapkey.c p11-verify.c p11-verifyfinal.c p11-verifyinit.c \
  58. p11-verifyrecover.c p11-verifyrecoverinit.c p11-verifyupdate.c \
  59. p11-waitforslotevent.c p11-wrapkey.c
  60. if HAVE_LD_VERSION_SCRIPT
  61. scute_version_script_cmd = -Wl,--version-script=$(srcdir)/libscute.vers
  62. else
  63. scute_version_script_cmd =
  64. endif
  65. lib_LTLIBRARIES = libscute.la
  66. if HAVE_W32_SYSTEM
  67. RCCOMPILE = $(RC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
  68. $(AM_CPPFLAGS) $(CPPFLAGS)
  69. LTRCCOMPILE = $(LIBTOOL) --mode=compile --tag=RC $(RCCOMPILE)
  70. SUFFIXES: .rc .lo
  71. .rc.lo:
  72. $(LTRCCOMPILE) -i "$<" -o "$@"
  73. scute_res = versioninfo.lo
  74. scute_res_ldflag = -Wl,.libs/versioninfo.o
  75. no_undefined = -no-undefined
  76. export_symbols = -export-symbols $(srcdir)/scute.def
  77. install-def-file:
  78. $(INSTALL) $(srcdir)/scute.def $(DESTDIR)$(libdir)/scute.def
  79. uninstall-def-file:
  80. -rm $(DESTDIR)$(libdir)/scute.def
  81. scute_deps = $(scute_res) scute.def
  82. else
  83. scute_res =
  84. scute_res_ldflag =
  85. no_undefined =
  86. export_symbols =
  87. install-def-file:
  88. uninstall-def-file:
  89. scute_deps =
  90. endif
  91. libscute_la_LDFLAGS = $(scute_res_ldflag) $(no_undefined) $(export_symbols) \
  92. $(scute_version_script_cmd) -version-info \
  93. @LIBSCUTE_LT_CURRENT@:@LIBSCUTE_LT_REVISION@:@LIBSCUTE_LT_AGE@
  94. libscute_la_DEPENDENCIES = @LTLIBOBJS@ $(srcdir)/libscute.vers $(scute_deps)
  95. libscute_la_LIBADD = @LTLIBOBJS@ @LIBASSUAN_LIBS@ @GPG_ERROR_LIBS@
  96. libscute_la_CPPFLAGS = -I$(srcdir)/../include \
  97. @LIBASSUAN_CFLAGS@ @GPG_ERROR_CFLAGS@
  98. libscute_la_SOURCES = $(sources)