]>
Commit | Line | Data |
---|---|---|
7460295f | 1 | AM_CPPFLAGS = |
c593cf68 | 2 | AM_CFLAGS = -g -std=gnu99 -Wall |
7460295f MG |
3 | AM_LDFLAGS = -g |
4 | ||
5 | noinst_LTLIBRARIES = libhttp.la \ | |
6 | liblogging.la | |
c593cf68 | 7 | noinst_DATA = $(top_srcdir)/demo/demo.js |
7460295f MG |
8 | bin_PROGRAMS = shellinaboxd |
9 | man_MANS = shellinaboxd.1 | |
10 | noinst_HEADERS = libhttp/http.h | |
11 | dist_doc_DATA = AUTHORS \ | |
12 | COPYING \ | |
13 | GPL-2 \ | |
14 | ChangeLog \ | |
15 | INSTALL \ | |
16 | NEWS \ | |
17 | README \ | |
1f771613 | 18 | TODO \ |
08db8657 MG |
19 | shellinabox/white-on-black.css \ |
20 | shellinabox/black-on-white.css \ | |
21 | shellinabox/monochrome.css \ | |
22 | shellinabox/color.css | |
c593cf68 MG |
23 | EXTRA_DIST = demo/beep.wav \ |
24 | demo/favicon.ico \ | |
25 | demo/demo.html \ | |
26 | demo/demo.js \ | |
27 | demo/demo.jspp \ | |
c82a11e7 | 28 | demo/demo.xml \ |
08db8657 | 29 | demo/enabled.gif \ |
c593cf68 MG |
30 | demo/styles.css \ |
31 | demo/vt100.js \ | |
08db8657 MG |
32 | demo/usercss-0.css \ |
33 | demo/usercss-1.css \ | |
34 | demo/usercss-2.css \ | |
35 | demo/usercss-3.css \ | |
c593cf68 | 36 | shellinabox/shellinaboxd.man.in \ |
c27d0db9 MG |
37 | shellinabox/shell_in_a_box.js \ |
38 | shellinabox/vt100.js \ | |
fd239d93 | 39 | shellinabox/cgi-mode-example.sh \ |
7460295f | 40 | debian/README \ |
e7372536 MG |
41 | debian/README.available \ |
42 | debian/README.enabled \ | |
7460295f MG |
43 | debian/changelog \ |
44 | debian/compat \ | |
45 | debian/control \ | |
46 | debian/copyright \ | |
47 | debian/docs \ | |
48 | debian/rules \ | |
49 | debian/shellinabox.default \ | |
50 | debian/shellinabox.dirs \ | |
51 | debian/shellinabox.init \ | |
52 | debian/shellinabox.install \ | |
53 | debian/shellinabox.postinst \ | |
54 | debian/shellinabox.postrm | |
bdd01e84 MG |
55 | LIBLOGGING_INCLUDES = logging/logging.h \ |
56 | config.h | |
7460295f MG |
57 | liblogging_la_SOURCES= logging/logging.c \ |
58 | $(LIBLOGGING_INCLUDES) | |
59 | liblogging_la_LDFLAGS= -version 1:0:0 | |
60 | ||
61 | LIBHTTP_INCLUDES = libhttp/hashmap.h \ | |
62 | libhttp/trie.h \ | |
63 | libhttp/httpconnection.h \ | |
64 | libhttp/server.h \ | |
65 | libhttp/ssl.h \ | |
bdd01e84 MG |
66 | libhttp/url.h \ |
67 | config.h | |
7460295f MG |
68 | libhttp_la_SOURCES = libhttp/hashmap.c \ |
69 | libhttp/trie.c \ | |
70 | libhttp/httpconnection.c \ | |
71 | libhttp/server.c \ | |
72 | libhttp/ssl.c \ | |
73 | libhttp/url.c \ | |
74 | $(LIBHTTP_INCLUDES) \ | |
75 | libhttp/libhttp.sym | |
76 | libhttp_la_LDFLAGS = -export-symbols $(top_srcdir)/libhttp/libhttp.sym \ | |
29135474 | 77 | -version 1:0:0 |
7460295f MG |
78 | |
79 | shellinaboxd_SOURCES = shellinabox/shellinaboxd.c \ | |
80 | shellinabox/externalfile.c \ | |
81 | shellinabox/externalfile.h \ | |
82 | shellinabox/launcher.c \ | |
83 | shellinabox/launcher.h \ | |
84 | shellinabox/privileges.c \ | |
85 | shellinabox/privileges.h \ | |
86 | shellinabox/service.c \ | |
87 | shellinabox/service.h \ | |
88 | shellinabox/session.c \ | |
89 | shellinabox/session.h \ | |
ecbff9b9 MG |
90 | shellinabox/usercss.c \ |
91 | shellinabox/usercss.h \ | |
d1edcc0e | 92 | shellinabox/cgi_root.html \ |
7460295f | 93 | shellinabox/root_page.html \ |
c27d0db9 MG |
94 | shellinabox/vt100.jspp \ |
95 | shellinabox/shell_in_a_box.jspp \ | |
7460295f | 96 | shellinabox/styles.css \ |
08db8657 | 97 | shellinabox/enabled.gif \ |
7460295f | 98 | shellinabox/favicon.ico \ |
bdd01e84 MG |
99 | shellinabox/beep.wav \ |
100 | config.h | |
7460295f MG |
101 | shellinaboxd_LDADD = liblogging.la \ |
102 | libhttp.la | |
29135474 | 103 | shellinaboxd_LDFLAGS = -static |
7460295f | 104 | |
1a29881f MG |
105 | objcopyflags = case "$(host_cpu)" in \ |
106 | i[0-9]86) echo '-O elf32-i386 -B i386';; \ | |
107 | x86_64) echo '-O elf64-x86-64 -B i386:x86-64';; \ | |
108 | arm*) echo '-O elf32-littlearm -B arm';; \ | |
109 | esac | |
110 | ||
111 | renamesymbols = \ | |
112 | sed -e 's/\(.*\/\)\([^.]*\)\([.].*\)/\1\2\3=\2 /' \ | |
113 | -e 't0' \ | |
114 | -e 's/\([^.]*\)\([.].*\)/\1\2=\1 /' \ | |
115 | -e 't0' \ | |
116 | -e 's/.*/&=& /' \ | |
117 | -e ':0' \ | |
118 | -e 's/$$/aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ/' \ | |
119 | -e ':1' \ | |
120 | -e 's/\(=[^_]*\)_\([a-z]\)\([^ ]* .*\2\)\(.\)/\1\4\3\4/' \ | |
121 | -e 't1' \ | |
122 | -e 's/.\{53\}$$//' \ | |
123 | -e 's/[/.]/_/g' \ | |
124 | -e 's/^/--redefine-sym _binary_/' \ | |
125 | -e 's/\([^=]*\)\(=[^ ]*\)/& \1_end\2End/' \ | |
126 | -e 's/\([^=]*\)\(=[^ ]*\)/& \1_start\2Start/' \ | |
127 | -e 's/[^ ]*\([^=]*\)=[^ ]*/-N\1_size/' | |
128 | ||
7460295f MG |
129 | libtool: $(LIBTOOL_DEPS) |
130 | $(SHELL) ./config.status --recheck | |
131 | ||
5d21b406 MG |
132 | |
133 | ${top_srcdir}/demo/demo.js: ${top_srcdir}/demo/beep.wav \ | |
134 | ${top_srcdir}/demo/demo.jspp \ | |
135 | ${top_srcdir}/demo/favicon.ico \ | |
136 | ${top_srcdir}/demo/styles.css \ | |
08db8657 MG |
137 | ${top_srcdir}/demo/vt100.js \ |
138 | ${top_srcdir}/demo/usercss-0.css \ | |
139 | ${top_srcdir}/demo/usercss-1.css \ | |
140 | ${top_srcdir}/demo/usercss-2.css \ | |
141 | ${top_srcdir}/demo/usercss-3.css | |
5d21b406 MG |
142 | |
143 | ${top_srcdir}/demo/beep.wav: ${top_srcdir}/shellinabox/beep.wav | |
144 | @rm -f "$@" | |
145 | ln "$<" "$@" | |
146 | ||
08db8657 MG |
147 | ${top_srcdir}/demo/enabled.gif: ${top_srcdir}/shellinabox/enabled.gif |
148 | @rm -f "$@" | |
149 | ln "$<" "$@" | |
150 | ||
5d21b406 MG |
151 | ${top_srcdir}/demo/favicon.ico: ${top_srcdir}/shellinabox/favicon.ico |
152 | @rm -f "$@" | |
153 | ln "$<" "$@" | |
154 | ||
155 | ${top_srcdir}/demo/styles.css: ${top_srcdir}/shellinabox/styles.css | |
156 | @rm -f "$@" | |
8e5d3913 | 157 | sed -e '/\[if DEFINES_COLORS\]/,/\[endif DEFINES_COLORS\]/d' "$<" >"$@" |
5d21b406 | 158 | |
08db8657 MG |
159 | ${top_srcdir}/demo/usercss-0.css: ${top_srcdir}/shellinabox/white-on-black.css |
160 | @rm -f "$@" | |
161 | ln "$<" "$@" | |
162 | ||
163 | ${top_srcdir}/demo/usercss-1.css: ${top_srcdir}/shellinabox/black-on-white.css | |
164 | @rm -f "$@" | |
165 | ln "$<" "$@" | |
166 | ||
167 | ${top_srcdir}/demo/usercss-2.css: ${top_srcdir}/shellinabox/monochrome.css | |
168 | @rm -f "$@" | |
169 | ln "$<" "$@" | |
170 | ||
171 | ${top_srcdir}/demo/usercss-3.css: ${top_srcdir}/shellinabox/color.css | |
172 | @rm -f "$@" | |
173 | ln "$<" "$@" | |
174 | ||
5d21b406 MG |
175 | ${top_srcdir}/demo/vt100.js: ${top_srcdir}/shellinabox/vt100.js |
176 | @rm -f "$@" | |
177 | ln "$<" "$@" | |
178 | ||
c27d0db9 | 179 | shellinaboxd.1: shellinabox/shellinaboxd.man.in config.h |
29135474 MG |
180 | @src="${top_srcdir}/shellinabox/shellinaboxd.man.in"; \ |
181 | echo preprocess "$$src" '>'"$@"; \ | |
c27d0db9 | 182 | if [ `sed -e 's/^#define \([^ ]*\).*/\1/' -e t -e d config.h | \ |
bf1ec4d2 MG |
183 | egrep 'HAVE_OPENSSL_BIO_H|HAVE_OPENSSL_ERR_H|HAVE_OPENSSL_SSL_H'|\ |
184 | wc -l` -eq 3 ]; then \ | |
2809cd15 | 185 | sed -e '/^#ifndef *HAVE_OPENSSL$$/,/^#endif$$/d' "$$src"; \ |
29135474 | 186 | else \ |
2809cd15 MG |
187 | sed -e '/^#ifdef *HAVE_OPENSSL$$/,/^#endif$$/d' "$$src"; \ |
188 | fi | \ | |
c27d0db9 | 189 | if sed -e 's/^#define \([^ ]*\).*/\1/' -e t -e d config.h | \ |
bf1ec4d2 | 190 | grep 'HAVE_SECURITY_PAM_APPL_H' >/dev/null 2>&1; then \ |
2809cd15 | 191 | sed -e '/^#ifndef *HAVE_PAM$$/,/^#endif$$/d'; \ |
bf1ec4d2 | 192 | else \ |
2809cd15 MG |
193 | sed -e '/^#ifdef *HAVE_PAM$$/,/^#endif$$/d'; \ |
194 | fi | \ | |
1f771613 MG |
195 | if [ -n "${DPKGBUILD}" ]; then \ |
196 | sed -e '/^#ifndef *DPKGBUILD$$/,/^#endif$$/d'; \ | |
197 | else \ | |
198 | sed -e '/^#ifdef *DPKGBUILD$$/,/^#endif$$/d'; \ | |
199 | fi | \ | |
2809cd15 | 200 | sed -e '/^#/d' >"$@" |
bf1ec4d2 MG |
201 | @out=`echo "$@" 2>/dev/null|sed -e 's/\.[^.]*$$/.ps/'`; \ |
202 | man -Tps "./$@" >"$${out}" 2>/dev/null || rm -f "$${out}" | |
7460295f MG |
203 | |
204 | clean-local: | |
205 | -rm -rf shellinaboxd.1 \ | |
206 | shellinaboxd.ps | |
207 | -rm -rf debian/shellinabox \ | |
208 | debian/shellinabox*.debhelper* \ | |
209 | debian/shellinabox.substvars \ | |
210 | debian/tmp | |
211 | ||
212 | .css.o: | |
572ac014 | 213 | @echo objcopy "$<" "$@" |
1a29881f | 214 | @objcopy -I binary `$(objcopyflags)` `echo "$<" | $(renamesymbols)` \ |
08db8657 MG |
215 | "$<" "$@" |
216 | ||
217 | .gif.o: | |
218 | @echo objcopy "$<" "$@" | |
219 | @objcopy -I binary `$(objcopyflags)` `echo "$<" | $(renamesymbols)` \ | |
7460295f MG |
220 | "$<" "$@" |
221 | ||
222 | .html.o: | |
572ac014 | 223 | @echo objcopy "$<" "$@" |
1a29881f | 224 | @objcopy -I binary `$(objcopyflags)` `echo "$<" | $(renamesymbols)` \ |
7460295f MG |
225 | "$<" "$@" |
226 | ||
227 | .ico.o: | |
572ac014 | 228 | @echo objcopy "$<" "$@" |
1a29881f | 229 | @objcopy -I binary `$(objcopyflags)` `echo "$<" | $(renamesymbols)` \ |
7460295f MG |
230 | "$<" "$@" |
231 | ||
3b5fc7f9 MG |
232 | shellinabox/shell_in_a_box.o: shellinabox/shell_in_a_box.js config.h |
233 | ||
c27d0db9 | 234 | .jspp.js: |
572ac014 | 235 | @echo preprocess "$<" "$@" |
c27d0db9 | 236 | @sed -e "`sed -e 's/^#define *\([^ ]*\) *\(.*\)/\/^[^#]\/s\/\1\/\2 \\\\\/* \1 *\\\\\/\/g/' \ |
29135474 MG |
237 | -e t \ |
238 | -e d "$<"`" \ | |
239 | -e "s/^#/\/\/ #/" \ | |
fe338aa8 | 240 | -e "s/VERSION/\"@VERSION@ (revision @VCS_REVISION@)\"/g" \ |
1a29881f | 241 | "$<" >"$@" |
c27d0db9 MG |
242 | |
243 | .js.o: | |
572ac014 | 244 | @echo objcopy "$<" "$@" |
1a29881f | 245 | @objcopy -I binary `$(objcopyflags)` `echo "$<" | $(renamesymbols)` \ |
c27d0db9 | 246 | "$<" "$@" |
7460295f MG |
247 | |
248 | .wav.o: | |
572ac014 | 249 | @echo objcopy "$<" "$@" |
1a29881f | 250 | @objcopy -I binary `$(objcopyflags)` `echo "$<" | $(renamesymbols)` \ |
7460295f MG |
251 | "$<" "$@" |
252 |