]>
Commit | Line | Data |
---|---|---|
7460295f MG |
1 | AM_CPPFLAGS = |
2 | AM_CFLAGS = -g -std=gnu99 -Wall -Werror -Os | |
3 | AM_LDFLAGS = -g | |
4 | ||
5 | noinst_LTLIBRARIES = libhttp.la \ | |
6 | liblogging.la | |
7 | bin_PROGRAMS = shellinaboxd | |
8 | man_MANS = shellinaboxd.1 | |
9 | noinst_HEADERS = libhttp/http.h | |
10 | dist_doc_DATA = AUTHORS \ | |
11 | COPYING \ | |
12 | GPL-2 \ | |
13 | ChangeLog \ | |
14 | INSTALL \ | |
15 | NEWS \ | |
16 | README \ | |
17 | TODO | |
18 | EXTRA_DIST = shellinabox/shellinaboxd.man.in \ | |
19 | debian/README \ | |
20 | debian/changelog \ | |
21 | debian/compat \ | |
22 | debian/control \ | |
23 | debian/copyright \ | |
24 | debian/docs \ | |
25 | debian/rules \ | |
26 | debian/shellinabox.default \ | |
27 | debian/shellinabox.dirs \ | |
28 | debian/shellinabox.init \ | |
29 | debian/shellinabox.install \ | |
30 | debian/shellinabox.postinst \ | |
31 | debian/shellinabox.postrm | |
32 | LIBLOGGING_INCLUDES = logging/logging.h | |
33 | liblogging_la_SOURCES= logging/logging.c \ | |
34 | $(LIBLOGGING_INCLUDES) | |
35 | liblogging_la_LDFLAGS= -version 1:0:0 | |
36 | ||
37 | LIBHTTP_INCLUDES = libhttp/hashmap.h \ | |
38 | libhttp/trie.h \ | |
39 | libhttp/httpconnection.h \ | |
40 | libhttp/server.h \ | |
41 | libhttp/ssl.h \ | |
42 | libhttp/url.h | |
43 | libhttp_la_SOURCES = libhttp/hashmap.c \ | |
44 | libhttp/trie.c \ | |
45 | libhttp/httpconnection.c \ | |
46 | libhttp/server.c \ | |
47 | libhttp/ssl.c \ | |
48 | libhttp/url.c \ | |
49 | $(LIBHTTP_INCLUDES) \ | |
50 | libhttp/libhttp.sym | |
51 | libhttp_la_LDFLAGS = -export-symbols $(top_srcdir)/libhttp/libhttp.sym \ | |
52 | -version 1:0:0 -ldl | |
53 | ||
54 | shellinaboxd_SOURCES = shellinabox/shellinaboxd.c \ | |
55 | shellinabox/externalfile.c \ | |
56 | shellinabox/externalfile.h \ | |
57 | shellinabox/launcher.c \ | |
58 | shellinabox/launcher.h \ | |
59 | shellinabox/privileges.c \ | |
60 | shellinabox/privileges.h \ | |
61 | shellinabox/service.c \ | |
62 | shellinabox/service.h \ | |
63 | shellinabox/session.c \ | |
64 | shellinabox/session.h \ | |
65 | shellinabox/root_page.html \ | |
66 | shellinabox/vt100.js \ | |
67 | shellinabox/shell_in_a_box.js \ | |
68 | shellinabox/styles.css \ | |
69 | shellinabox/favicon.ico \ | |
70 | shellinabox/beep.wav | |
71 | shellinaboxd_LDADD = liblogging.la \ | |
72 | libhttp.la | |
73 | shellinaboxd_LDFLAGS = -static -ldl | |
74 | ||
75 | libtool: $(LIBTOOL_DEPS) | |
76 | $(SHELL) ./config.status --recheck | |
77 | ||
78 | shellinaboxd.1: shellinabox/shellinaboxd.man.in | |
79 | @echo preprocess "$<" '>'"$@" | |
80 | @if echo " $(DEFS)" | grep HAVE_OPENSSL_BIO_H | \ | |
81 | grep HAVE_OPENSSL_ERR_H | \ | |
82 | grep -q HAVE_OPENSSL_SSL_H; then \ | |
83 | sed -e '/^#ifdef *HAVE_OPENSSL$$/d;/^#endif$$/d' "$<" >"$@"; \ | |
84 | else \ | |
85 | sed -e '/^#ifdef *HAVE_OPENSSL$$/,/^#endif$$/d' "$<" >"$@"; \ | |
86 | fi | |
87 | @man -Tps "./$@" >`echo "$@"|sed -e 's/\.[^.]*$$/.ps/'` || true | |
88 | ||
89 | clean-local: | |
90 | -rm -rf shellinaboxd.1 \ | |
91 | shellinaboxd.ps | |
92 | -rm -rf debian/shellinabox \ | |
93 | debian/shellinabox*.debhelper* \ | |
94 | debian/shellinabox.substvars \ | |
95 | debian/tmp | |
96 | ||
97 | .css.o: | |
98 | @$(ECHO) objcopy "$<" "$@" | |
99 | @objcopy \ | |
100 | -I binary `echo "$(build_cpu)" | \ | |
101 | grep -q '^i[0-9]86$$' && \ | |
102 | echo ' -O elf32-i386 -B i386' || \ | |
103 | echo ' -O elf64-x86-64 -B x86-64'` \ | |
104 | `echo "$<" | sed -e ' \ | |
105 | s/\(.*\/\)\([^.]*\)\([.].*\)/\1\2\3=\2 /; \ | |
106 | t0; s/\([^.]*\)\([.].*\)/\1\2=\1 /; t0; s/.*/&=& /;:0; \ | |
107 | s/$$/aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ/; \ | |
108 | :1; \ | |
109 | s/\(=[^_]*\)_\([a-z]\)\([^ ]* .*\2\)\(.\)/\1\4\3\4/; \ | |
110 | t1; \ | |
111 | s/.\{53\}$$//; \ | |
112 | s/[/.]/_/g; \ | |
113 | s/^/--redefine-sym _binary_/; \ | |
114 | s/\([^=]*\)\(=[^ ]*\)/& \1_end\2End/; \ | |
115 | s/\([^=]*\)\(=[^ ]*\)/& \1_start\2Start/; \ | |
116 | s/[^ ]*\([^=]*\)=[^ ]*/-N\1_size/'` \ | |
117 | "$<" "$@" | |
118 | ||
119 | .html.o: | |
120 | @$(ECHO) objcopy "$<" "$@" | |
121 | @objcopy \ | |
122 | -I binary `echo "$(build_cpu)" | \ | |
123 | grep -q '^i[0-9]86$$' && \ | |
124 | echo ' -O elf32-i386 -B i386' || \ | |
125 | echo ' -O elf64-x86-64 -B x86-64'` \ | |
126 | `echo "$<" | sed -e ' \ | |
127 | s/\(.*\/\)\([^.]*\)\([.].*\)/\1\2\3=\2 /; \ | |
128 | t0; s/\([^.]*\)\([.].*\)/\1\2=\1 /; t0; s/.*/&=& /;:0; \ | |
129 | s/$$/aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ/; \ | |
130 | :1; \ | |
131 | s/\(=[^_]*\)_\([a-z]\)\([^ ]* .*\2\)\(.\)/\1\4\3\4/; \ | |
132 | t1; \ | |
133 | s/.\{53\}$$//; \ | |
134 | s/[/.]/_/g; \ | |
135 | s/^/--redefine-sym _binary_/; \ | |
136 | s/\([^=]*\)\(=[^ ]*\)/& \1_end\2End/; \ | |
137 | s/\([^=]*\)\(=[^ ]*\)/& \1_start\2Start/; \ | |
138 | s/[^ ]*\([^=]*\)=[^ ]*/-N\1_size/'` \ | |
139 | "$<" "$@" | |
140 | ||
141 | .ico.o: | |
142 | @$(ECHO) objcopy "$<" "$@" | |
143 | @objcopy \ | |
144 | -I binary `echo "$(build_cpu)" | \ | |
145 | grep -q '^i[0-9]86$$' && \ | |
146 | echo ' -O elf32-i386 -B i386' || \ | |
147 | echo ' -O elf64-x86-64 -B x86-64'` \ | |
148 | `echo "$<" | sed -e ' \ | |
149 | s/\(.*\/\)\([^.]*\)\([.].*\)/\1\2\3=\2 /; \ | |
150 | t0; s/\([^.]*\)\([.].*\)/\1\2=\1 /; t0; s/.*/&=& /;:0; \ | |
151 | s/$$/aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ/; \ | |
152 | :1; \ | |
153 | s/\(=[^_]*\)_\([a-z]\)\([^ ]* .*\2\)\(.\)/\1\4\3\4/; \ | |
154 | t1; \ | |
155 | s/.\{53\}$$//; \ | |
156 | s/[/.]/_/g; \ | |
157 | s/^/--redefine-sym _binary_/; \ | |
158 | s/\([^=]*\)\(=[^ ]*\)/& \1_end\2End/; \ | |
159 | s/\([^=]*\)\(=[^ ]*\)/& \1_start\2Start/; \ | |
160 | s/[^ ]*\([^=]*\)=[^ ]*/-N\1_size/'` \ | |
161 | "$<" "$@" | |
162 | ||
163 | .js.o: | |
164 | @$(ECHO) preprocess "$<" \| objcopy "$@" | |
165 | @trap 'rm -f "$@.pre"' EXIT INT TERM QUIT; \ | |
166 | sed -e "`sed -e 's/^#define *\([^ ]*\) *\(.*\)/\/^[^#]\/s\/\1\/\2 \\\\\/* \1 *\\\\\/\/g/; \ | |
167 | t;d' "$<"` \ | |
168 | ;s/^#/\/\/ #/ \ | |
169 | ;s/VERSION/\"@VERSION@\"/g" "$<" >"$@.pre" && \ | |
170 | objcopy \ | |
171 | -I binary `echo $(build_cpu) | \ | |
172 | grep -q '^i[0-9]86$$' && \ | |
173 | echo ' -O elf32-i386 -B i386' || \ | |
174 | echo ' -O elf64-x86-64 -B x86-64'` \ | |
175 | `echo "$@" | sed -e ' \ | |
176 | s/\(.*\/\)\([^.]*\)\([.].*\)/\1\2\3=\2 /; \ | |
177 | t0; s/\([^.]*\)\([.].*\)/\1\2=\1 /; t0; s/.*/&=& /;:0; \ | |
178 | s/$$/aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ/; \ | |
179 | :1; \ | |
180 | s/\(=[^_]*\)_\([a-z]\)\([^ ]* .*\2\)\(.\)/\1\4\3\4/; \ | |
181 | t1; \ | |
182 | s/.\{53\}$$//; \ | |
183 | s/[/.]/_/g; \ | |
184 | s/^/--redefine-sym _binary_/; \ | |
185 | s/\([^=]*\)\(=[^ ]*\)/& \1_pre_end\2End/; \ | |
186 | s/\([^=]*\)\(=[^ ]*\)/& \1_pre_start\2Start/; \ | |
187 | s/[^ ]*\([^=]*\)=[^ ]*/-N\1_pre_size/'` \ | |
188 | "$@.pre" "$@" | |
189 | ||
190 | .wav.o: | |
191 | @$(ECHO) objcopy "$<" "$@" | |
192 | @objcopy \ | |
193 | -I binary `echo "$(build_cpu)" | \ | |
194 | grep -q '^i[0-9]86$$' && \ | |
195 | echo ' -O elf32-i386 -B i386' || \ | |
196 | echo ' -O elf64-x86-64 -B x86-64'` \ | |
197 | `echo "$<" | sed -e ' \ | |
198 | s/\(.*\/\)\([^.]*\)\([.].*\)/\1\2\3=\2 /; \ | |
199 | t0; s/\([^.]*\)\([.].*\)/\1\2=\1 /; t0; s/.*/&=& /;:0; \ | |
200 | s/$$/aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ/; \ | |
201 | :1; \ | |
202 | s/\(=[^_]*\)_\([a-z]\)\([^ ]* .*\2\)\(.\)/\1\4\3\4/; \ | |
203 | t1; \ | |
204 | s/.\{53\}$$//; \ | |
205 | s/[/.]/_/g; \ | |
206 | s/^/--redefine-sym _binary_/; \ | |
207 | s/\([^=]*\)\(=[^ ]*\)/& \1_end\2End/; \ | |
208 | s/\([^=]*\)\(=[^ ]*\)/& \1_start\2Start/; \ | |
209 | s/[^ ]*\([^=]*\)=[^ ]*/-N\1_size/'` \ | |
210 | "$<" "$@" | |
211 |