geom_gate userland utility improvements
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.
 
 
 
 

155 lines
4.6 KiB

  1. AUTOMAKE_OPTIONS = foreign nostdinc
  2. SUBDIRS = src tests docs
  3. if BUILD_EXAMPLES
  4. SUBDIRS += example
  5. endif
  6. pkgconfigdir = $(libdir)/pkgconfig
  7. pkgconfig_DATA = libssh2.pc
  8. include_HEADERS = \
  9. include/libssh2.h \
  10. include/libssh2_publickey.h \
  11. include/libssh2_sftp.h
  12. NETWAREFILES = nw/keepscreen.c \
  13. nw/nwlib.c \
  14. nw/GNUmakefile \
  15. nw/test/GNUmakefile
  16. DSP = win32/libssh2.dsp
  17. VCPROJ = win32/libssh2.vcproj
  18. DISTCLEANFILES = $(DSP)
  19. VMSFILES = vms/libssh2_make_example.dcl vms/libssh2_make_help.dcl \
  20. vms/libssh2_make_kit.dcl vms/libssh2_make_lib.dcl vms/man2help.c \
  21. vms/readme.vms vms/libssh2_config.h
  22. WIN32FILES = win32/GNUmakefile win32/test/GNUmakefile \
  23. win32/libssh2_config.h win32/config.mk win32/rules.mk \
  24. win32/Makefile.Watcom win32/libssh2.dsw win32/tests.dsp $(DSP) \
  25. win32/msvcproj.head win32/msvcproj.foot win32/libssh2.rc
  26. OS400FILES = os400/README400 os400/initscript.sh os400/make.sh \
  27. os400/make-src.sh os400/make-rpg.sh os400/make-include.sh \
  28. os400/os400sys.c os400/ccsid.c \
  29. os400/libssh2_config.h os400/macros.h os400/libssh2_ccsid.h \
  30. os400/include/alloca.h os400/include/sys/socket.h os400/include/stdio.h \
  31. os400/libssh2rpg/libssh2.rpgle.in \
  32. os400/libssh2rpg/libssh2_ccsid.rpgle.in \
  33. os400/libssh2rpg/libssh2_publickey.rpgle \
  34. os400/libssh2rpg/libssh2_sftp.rpgle \
  35. Makefile.os400qc3.inc
  36. EXTRA_DIST = $(WIN32FILES) $(NETWAREFILES) get_ver.awk \
  37. maketgz NMakefile RELEASE-NOTES libssh2.pc.in $(VMSFILES) config.rpath \
  38. CMakeLists.txt cmake $(OS400FILES)
  39. ACLOCAL_AMFLAGS = -I m4
  40. .PHONY: ChangeLog
  41. ChangeLog:
  42. echo "see NEWS" > ./ChangeLog
  43. DISTCLEANFILES += ChangeLog
  44. dist-hook:
  45. rm -rf $(top_builddir)/tests/log
  46. find $(distdir) -name "*.dist" -exec rm {} \;
  47. (distit=`find $(srcdir) -name "*.dist"`; \
  48. for file in $$distit; do \
  49. strip=`echo $$file | sed -e s/^$(srcdir)// -e s/\.dist//`; \
  50. cp $$file $(distdir)$$strip; \
  51. done)
  52. # Code Coverage
  53. init-coverage:
  54. make clean
  55. lcov --directory . --zerocounters
  56. COVERAGE_CCOPTS ?= "-g --coverage"
  57. COVERAGE_OUT ?= docs/coverage
  58. build-coverage:
  59. make CFLAGS=$(COVERAGE_CCOPTS) check
  60. mkdir -p $(COVERAGE_OUT)
  61. lcov --directory . --output-file $(COVERAGE_OUT)/$(PACKAGE).info \
  62. --capture
  63. gen-coverage:
  64. genhtml --output-directory $(COVERAGE_OUT) \
  65. $(COVERAGE_OUT)/$(PACKAGE).info \
  66. --highlight --frames --legend \
  67. --title "$(PACKAGE_NAME)"
  68. coverage: init-coverage build-coverage gen-coverage
  69. # DSP/VCPROJ generation adapted from libcurl
  70. # only OpenSSL and WinCNG are supported with this build system
  71. CRYPTO_CSOURCES = openssl.c wincng.c mbedtls.c
  72. CRYPTO_HHEADERS = openssl.h wincng.h mbedtls.h
  73. # Makefile.inc provides the CSOURCES and HHEADERS defines
  74. include Makefile.inc
  75. WIN32SOURCES = $(CSOURCES)
  76. WIN32HEADERS = $(HHEADERS) libssh2_config.h
  77. $(DSP): win32/msvcproj.head win32/msvcproj.foot Makefile.am
  78. echo "creating $(DSP)"
  79. @( (cat $(srcdir)/win32/msvcproj.head; \
  80. echo "# Begin Group \"Source Files\""; \
  81. echo ""; \
  82. echo "# PROP Default_Filter \"cpp;c;cxx\""; \
  83. win32_srcs='$(WIN32SOURCES)'; \
  84. sorted_srcs=`for file in $$win32_srcs; do echo $$file; done | sort`; \
  85. for file in $$sorted_srcs; do \
  86. echo "# Begin Source File"; \
  87. echo ""; \
  88. echo "SOURCE=..\\src\\"$$file; \
  89. echo "# End Source File"; \
  90. done; \
  91. echo "# End Group"; \
  92. echo "# Begin Group \"Header Files\""; \
  93. echo ""; \
  94. echo "# PROP Default_Filter \"h;hpp;hxx\""; \
  95. win32_hdrs='$(WIN32HEADERS)'; \
  96. sorted_hdrs=`for file in $$win32_hdrs; do echo $$file; done | sort`; \
  97. for file in $$sorted_hdrs; do \
  98. echo "# Begin Source File"; \
  99. echo ""; \
  100. if [ "$$file" = "libssh2_config.h" ]; \
  101. then \
  102. echo "SOURCE=.\\"$$file; \
  103. else \
  104. echo "SOURCE=..\\src\\"$$file; \
  105. fi; \
  106. echo "# End Source File"; \
  107. done; \
  108. echo "# End Group"; \
  109. cat $(srcdir)/win32/msvcproj.foot) | \
  110. awk '{printf("%s\r\n", gensub("\r", "", "g"))}' > $@ )
  111. $(VCPROJ): win32/vc8proj.head win32/vc8proj.foot Makefile.am
  112. echo "creating $(VCPROJ)"
  113. @( (cat $(srcdir)/vc8proj.head; \
  114. win32_srcs='$(WIN32SOURCES)'; \
  115. sorted_srcs=`for file in $$win32_srcs; do echo $$file; done | sort`; \
  116. for file in $$sorted_srcs; do \
  117. echo "<File RelativePath=\""..\src\$$file"\"></File>"; \
  118. done; \
  119. echo "</Filter><Filter Name=\"Header Files\">"; \
  120. win32_hdrs='$(WIN32HEADERS)'; \
  121. sorted_hdrs=`for file in $$win32_hdrs; do echo $$file; done | sort`; \
  122. for file in $$sorted_hdrs; do \
  123. echo "<File RelativePath=\""..\src\$$file"\"></File>"; \
  124. done; \
  125. cat $(srcdir)/vc8proj.foot) | \
  126. awk '{printf("%s\r\n", gensub("\r", "", "g"))}' > $@ )
  127. checksrc:
  128. perl src/checksrc.pl -i4 -m79 -ASIZEOFNOPAREN -ASNPRINTF -ACOPYRIGHT \
  129. -AFOPENMODE -Wsrc/libssh2_config.h src/*.[ch] include/*.h example/*.c \
  130. tests/*.[ch]