File: Makefile.am

package info (click to toggle)
guile-ssh 1.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 2,068 kB
  • sloc: ansic: 4,956; lisp: 4,422; makefile: 337; sh: 262
file content (146 lines) | stat: -rw-r--r-- 3,625 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
## Config file for GNU Automake.
##
## Copyright (C) 2014-2023 Artyom V. Poptsov <poptsov.artyom@gmail.com>
## Copyright (C) 2026 Nicolas Graves <ngraves@ngraves.fr>
##
## This file is part of Guile-SSH.
##
## Guile-SSH is free software: you can redistribute it and/or
## modify it under the terms of the GNU General Public License as
## published by the Free Software Foundation, either version 3 of the
## License, or (at your option) any later version.
##
## Guile-SSH is distributed in the hope that it will be useful, but
## WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
## General Public License for more details.
##
## You should have received a copy of the GNU General Public License
## along with Guile-SSH.  If not, see <http://www.gnu.org/licenses/>.

include $(top_srcdir)/build-aux/am/guilec

if !CROSS_COMPILING

SCM_TESTS = \
  log.scm \
  version.scm \
  server.scm \
  session.scm \
  client-server.scm \
  popen.scm \
  shell.scm \
  server-client.scm \
  sssh-ssshd.scm \
  key.scm \
  tunnel.scm \
  dist.scm

TESTS = ${SCM_TESTS}

TEST_EXTENSIONS = .scm

AM_TESTS_ENVIRONMENT = \
  abs_top_srcdir="$(abs_top_srcdir)"; export abs_top_srcdir; \
  abs_top_builddir="$(abs_top_builddir)"; export abs_top_builddir; \
  ORIGTERM=${TERM}; export ORIGTERM; \
  TERM=xterm; export TERM; \
  GUILE=$(GUILE); export GUILE; \
  GUILE_WARN_DEPRECATED=no; export GUILE_WARN_DEPRECATED; \
  GUILE_AUTO_COMPILE=0; export GUILE_AUTO_COMPILE;

# LOG_COMPILER was introduced in Automake 1.12; don't expect "make
# check" or "make distcheck" to work with earlier versions.
SCM_LOG_COMPILER = \
  ${top_builddir}/libtool \
  -dlopen ${top_builddir}/libguile-ssh/libguile-ssh.la \
  --mode=execute $(GUILE)

AM_SCM_LOG_FLAGS = \
  -L "$(top_srcdir)" \
  -L "$(top_srcdir)/modules" \
  -s

EXTRA_DIST = \
  ${SCM_TESTS} \
  common.scm \
  common/test-server.scm \
  keys/dsakey \
  keys/dsakey.pub \
  keys/ecdsakey \
  keys/ecdsakey.pub \
  keys/ed25519key \
  keys/ed25519key.pub \
  keys/rsakey \
  keys/rsakey.pub \
  keys/encrypted-ecdsa-key \
  keys/encrypted-ecdsa-key.pub \
  keys/encrypted-ed25519-key \
  keys/encrypted-ed25519-key.pub \
  keys/encrypted-rsa-key \
  keys/encrypted-rsa-key.pub \
  keys/encrypted-dsa-key \
  keys/encrypted-dsa-key.pub \
  config

# -------------------------------------------------------------------------------
# Compile modules

GOBJECTS = common.go

ccachedir=$(libdir)/guile/$(GUILE_EFFECTIVE_VERSION)/site-ccache/ssh
nobase_dist_ccache_DATA = $(GOBJECTS)

guilec_warnings = \
  -Wunbound-variable \
  -Warity-mismatch \
  -Wunused-variable \
  -Wunused-toplevel

guilec_opts = \
  $(guilec_warnings)

# TODO: Move environment setup to a separate file.
guilec_env = \
  GUILE_AUTO_COMPILE=0 \
  GUILE_SYSTEM_EXTENSIONS_PATH="$(abs_top_builddir)/libguile-ssh/.libs/:${GUILE_SYSTEM_EXTENSIONS_PATH}" \
  GUILE_LOAD_PATH="$(abs_top_srcdir)/modules" \
  GUILE_LOAD_COMPILED_PATH="$(builddir)/ssh:$$GUILE_LOAD_COMPILED_PATH"

.scm.go:
	$(AM_V_GUILEC)$(guilec_env) $(GUILEC) $(guilec_opts) \
	--output=$@ $<

# -------------------------------------------------------------------------------
# Cleanup rules.

LOG_DIRS = \
  dist \
  key \
  client-server \
  dist \
  popen \
  session \
  server-client \
  tunnel \
  server \
  shell \
  sssh-ssshd \
  version

clean-local:
	-rm -rf $(LOG_DIRS)

CLEANFILES = \
  $(GOBJECTS)

# -------------------------------------------------------------------------------

else CROSS_COMPILING

TESTS =
SCM_TESTS =

endif CROSS_COMPILING

# Makefile.am ends here.