]> andersk Git - test.git/blob - Makefile.am
Allow changing of font sizes in the user CSS.
[test.git] / Makefile.am
1 AM_CPPFLAGS          =
2 AM_CFLAGS            = -g -std=gnu99 -Wall
3 AM_LDFLAGS           = -g -lm
4
5 OBJCOPY             ?= objcopy
6 OBJDUMP             ?= objdump
7
8 noinst_LTLIBRARIES   = libhttp.la                                             \
9                        liblogging.la
10 noinst_DATA          = $(top_srcdir)/demo/demo.js
11 bin_PROGRAMS         = shellinaboxd
12 man_MANS             = shellinaboxd.1
13 noinst_HEADERS       = libhttp/http.h
14 dist_doc_DATA        = AUTHORS                                                \
15                        COPYING                                                \
16                        GPL-2                                                  \
17                        ChangeLog                                              \
18                        INSTALL                                                \
19                        NEWS                                                   \
20                        README                                                 \
21                        TODO                                                   \
22                        shellinabox/white-on-black.css                         \
23                        shellinabox/black-on-white.css                         \
24                        shellinabox/monochrome.css                             \
25                        shellinabox/color.css
26 EXTRA_DIST           = INSTALL.Debian                                         \
27                        README.Fedora                                          \
28                        demo/beep.wav                                          \
29                        demo/favicon.ico                                       \
30                        demo/demo.html                                         \
31                        demo/demo.js                                           \
32                        demo/demo.jspp                                         \
33                        demo/demo.xml                                          \
34                        demo/enabled.gif                                       \
35                        demo/styles.css                                        \
36                        demo/print-styles.css                                  \
37                        demo/vt100.js                                          \
38                        demo/usercss-0.css                                     \
39                        demo/usercss-1.css                                     \
40                        demo/usercss-2.css                                     \
41                        demo/usercss-3.css                                     \
42                        etc-pam.d-shellinabox-example                          \
43                        shellinabox/shellinaboxd.man.in                        \
44                        shellinabox/shell_in_a_box.js                          \
45                        shellinabox/vt100.js                                   \
46                        shellinabox/cgi-mode-example.sh                        \
47                        debian/README                                          \
48                        debian/README.available                                \
49                        debian/README.enabled                                  \
50                        debian/changelog                                       \
51                        debian/compat                                          \
52                        debian/control                                         \
53                        debian/copyright                                       \
54                        debian/docs                                            \
55                        debian/rules                                           \
56                        debian/shellinabox.default                             \
57                        debian/shellinabox.dirs                                \
58                        debian/shellinabox.init                                \
59                        debian/shellinabox.install                             \
60                        debian/shellinabox.postinst                            \
61                        debian/shellinabox.postrm                              \
62                        debian/source/format                                   \
63                        debian/watch
64 LIBLOGGING_INCLUDES  = logging/logging.h                                      \
65                        config.h
66 liblogging_la_SOURCES= logging/logging.c                                      \
67                        $(LIBLOGGING_INCLUDES)
68 liblogging_la_LDFLAGS= -version 1:0:0
69
70 LIBHTTP_INCLUDES     = libhttp/hashmap.h                                      \
71                        libhttp/trie.h                                         \
72                        libhttp/httpconnection.h                               \
73                        libhttp/server.h                                       \
74                        libhttp/ssl.h                                          \
75                        libhttp/url.h                                          \
76                        config.h
77 libhttp_la_SOURCES   = libhttp/hashmap.c                                      \
78                        libhttp/trie.c                                         \
79                        libhttp/httpconnection.c                               \
80                        libhttp/server.c                                       \
81                        libhttp/ssl.c                                          \
82                        libhttp/url.c                                          \
83                        $(LIBHTTP_INCLUDES)                                    \
84                        libhttp/libhttp.sym
85 libhttp_la_LDFLAGS   = -export-symbols  $(top_srcdir)/libhttp/libhttp.sym     \
86                        -version 1:0:0
87
88 shellinaboxd_SOURCES = shellinabox/shellinaboxd.c                             \
89                        shellinabox/externalfile.c                             \
90                        shellinabox/externalfile.h                             \
91                        shellinabox/launcher.c                                 \
92                        shellinabox/launcher.h                                 \
93                        shellinabox/privileges.c                               \
94                        shellinabox/privileges.h                               \
95                        shellinabox/service.c                                  \
96                        shellinabox/service.h                                  \
97                        shellinabox/session.c                                  \
98                        shellinabox/session.h                                  \
99                        shellinabox/usercss.c                                  \
100                        shellinabox/usercss.h                                  \
101                        shellinabox/cgi_root.html                              \
102                        shellinabox/root_page.html                             \
103                        shellinabox/vt100.jspp                                 \
104                        shellinabox/shell_in_a_box.jspp                        \
105                        shellinabox/styles.css                                 \
106                        shellinabox/print-styles.css                           \
107                        shellinabox/enabled.gif                                \
108                        shellinabox/favicon.ico                                \
109                        shellinabox/beep.wav                                   \
110                        config.h
111 shellinaboxd_LDADD   = liblogging.la                                          \
112                        libhttp.la
113 shellinaboxd_LDFLAGS = -static
114
115 objcopyflags         = case "$(host_cpu)" in                                  \
116                          i[0-9]86)echo '-O elf32-i386 -B i386';;              \
117                          x86_64)  echo '-O elf64-x86-64 -B i386:x86-64';;     \
118                          *)       trap 'rm -f /tmp/probe$$$$.o' EXIT;         \
119                                   $(CC) $(AM_CFLAGS) $(CFLAGS) -c -xc         \
120                                         -o /tmp/probe$$$$.o /dev/null &&      \
121                                   $(OBJDUMP) -f /tmp/probe$$$$.o |            \
122                                   sed -e 's/.*file format */-O /;t;           \
123                                        s/architecture: *\([^,]*\).*/-B \1/;t; \
124                                        d';;                                   \
125                        esac
126
127 renamesymbols        =                                                        \
128   sed -e 's/\(.*\/\)\([^.]*\)\([.].*\)/\1\2\3=\2 /'                           \
129       -e 't0'                                                                 \
130       -e 's/\([^.]*\)\([.].*\)/\1\2=\1 /'                                     \
131       -e 't0'                                                                 \
132       -e 's/.*/&=& /'                                                         \
133       -e ':0'                                                                 \
134       -e 's/$$/aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ/'         \
135       -e ':1'                                                                 \
136       -e 's/\(=[^-_]*\)[-_]\([a-z]\)\([^ ]* .*\2\)\(.\)/\1\4\3\4/'            \
137       -e 't1'                                                                 \
138       -e 's/.\{53\}$$//'                                                      \
139       -e 's/[-/.]/_/g'                                                        \
140       -e 's/^/--redefine-sym _binary_/'                                       \
141       -e 's/\([^=]*\)\(=[^ ]*\)/& \1_end\2End/'                               \
142       -e 's/\([^=]*\)\(=[^ ]*\)/& \1_start\2Start/'                           \
143       -e 's/[^ ]*\([^=]*\)=[^ ]*/-N\1_size/'
144
145 libtool: $(LIBTOOL_DEPS)
146         $(SHELL) ./config.status --recheck
147
148
149 ${top_srcdir}/demo/demo.js: ${top_srcdir}/demo/beep.wav                       \
150                             ${top_srcdir}/demo/demo.jspp                      \
151                             ${top_srcdir}/demo/favicon.ico                    \
152                             ${top_srcdir}/demo/styles.css                     \
153                             ${top_srcdir}/demo/print-styles.css               \
154                             ${top_srcdir}/demo/vt100.js                       \
155                             ${top_srcdir}/demo/usercss-0.css                  \
156                             ${top_srcdir}/demo/usercss-1.css                  \
157                             ${top_srcdir}/demo/usercss-2.css                  \
158                             ${top_srcdir}/demo/usercss-3.css
159
160 ${top_srcdir}/demo/beep.wav: ${top_srcdir}/shellinabox/beep.wav
161         @rm -f "$@"
162         ln "$?" "$@"
163
164 ${top_srcdir}/demo/enabled.gif: ${top_srcdir}/shellinabox/enabled.gif
165         @rm -f "$@"
166         ln "$?" "$@"
167
168 ${top_srcdir}/demo/favicon.ico: ${top_srcdir}/shellinabox/favicon.ico
169         @rm -f "$@"
170         ln "$?" "$@"
171
172 ${top_srcdir}/demo/styles.css: ${top_srcdir}/shellinabox/styles.css
173         @rm -f "$@"
174         sed -e '/\[if DEFINES_COLORS\]/,/\[endif DEFINES_COLORS\]/d' "$?" >"$@"
175
176 ${top_srcdir}/demo/print-styles.css: ${top_srcdir}/shellinabox/print-styles.css
177         @rm -f "$@"
178         ln "$?" "$@"
179
180 ${top_srcdir}/demo/usercss-0.css: ${top_srcdir}/shellinabox/white-on-black.css
181         @rm -f "$@"
182         ln "$?" "$@"
183
184 ${top_srcdir}/demo/usercss-1.css: ${top_srcdir}/shellinabox/black-on-white.css
185         @rm -f "$@"
186         ln "$?" "$@"
187
188 ${top_srcdir}/demo/usercss-2.css: ${top_srcdir}/shellinabox/monochrome.css
189         @rm -f "$@"
190         ln "$?" "$@"
191
192 ${top_srcdir}/demo/usercss-3.css: ${top_srcdir}/shellinabox/color.css
193         @rm -f "$@"
194         ln "$?" "$@"
195
196 ${top_srcdir}/demo/vt100.js: ${top_srcdir}/shellinabox/vt100.js
197         @rm -f "$@"
198         ln "$?" "$@"
199
200 shellinaboxd.1: shellinabox/shellinaboxd.man.in config.h
201         @src="${top_srcdir}/shellinabox/shellinaboxd.man.in";                 \
202         echo preprocess  "$$src" '>'"$@";                                     \
203         if sed -e 's/^#define \([^ ]*\).*/\1/' -e t -e d config.h |           \
204              grep 'HAVE_BIN_LOGIN' >/dev/null 2>&1; then                      \
205           sed -e '/^#ifndef  *HAVE_BIN_LOGIN$$/,/^#endif$$/d' "$$src";        \
206         else                                                                  \
207           sed -e '/^#ifdef  *HAVE_BIN_LOGIN$$/,/^#endif$$/d' "$$src";         \
208         fi |                                                                  \
209         if [ `sed -e 's/^#define \([^ ]*\).*/\1/' -e t -e d config.h |        \
210              egrep 'HAVE_OPENSSL_BIO_H|HAVE_OPENSSL_ERR_H|HAVE_OPENSSL_SSL_H'|\
211              wc -l` -eq 3 ]; then                                             \
212           sed -e '/^#ifndef  *HAVE_OPENSSL$$/,/^#endif$$/d';                  \
213         else                                                                  \
214           sed -e '/^#ifdef  *HAVE_OPENSSL$$/,/^#endif$$/d';                   \
215         fi |                                                                  \
216         if sed -e 's/^#define \([^ ]*\).*/\1/' -e t -e d config.h |           \
217              grep 'HAVE_SECURITY_PAM_APPL_H' >/dev/null 2>&1; then            \
218           sed -e '/^#ifndef  *HAVE_PAM$$/,/^#endif$$/d';                      \
219         else                                                                  \
220           sed -e '/^#ifdef  *HAVE_PAM$$/,/^#endif$$/d';                       \
221         fi |                                                                  \
222         if [ -n "${DPKGBUILD}" ]; then                                        \
223           sed -e '/^#ifndef  *DPKGBUILD$$/,/^#endif$$/d';                     \
224         else                                                                  \
225           sed -e '/^#ifdef  *DPKGBUILD$$/,/^#endif$$/d';                      \
226         fi |                                                                  \
227         sed -e '/^#/d' >"$@"
228         @out=`echo "$@" 2>/dev/null|sed -e 's/\.[^.]*$$/.ps/'`;               \
229         man -Tps "./$@" >"$${out}" 2>/dev/null || rm -f "$${out}"
230
231 clean-local:
232         -rm -rf shellinaboxd.1                                                \
233                 shellinaboxd.ps
234         -rm -rf debian/shellinabox                                            \
235                 debian/shellinabox*.debhelper*                                \
236                 debian/shellinabox.substvars                                  \
237                 debian/tmp
238         -rm -rf GNU-stack
239
240 .css.o:
241         @echo $(OBJCOPY) "$<" "$@"
242         @$(OBJCOPY) -I binary `$(objcopyflags)` `echo "$<" | $(renamesymbols)`\
243           "$<" "$@"
244         @-printf '\000' >GNU-stack &&                                         \
245           $(OBJCOPY) --add-section .note.GNU-stack=GNU-stack "$@";            \
246           rm -f GNU-stack
247
248 .gif.o:
249         @echo $(OBJCOPY) "$<" "$@"
250         @$(OBJCOPY) -I binary `$(objcopyflags)` `echo "$<" | $(renamesymbols)`\
251           "$<" "$@"
252         @-printf '\000' >GNU-stack &&                                         \
253           $(OBJCOPY) --add-section .note.GNU-stack=GNU-stack "$@";            \
254           rm -f GNU-stack
255
256
257 .html.o:
258         @echo $(OBJCOPY) "$<" "$@"
259         @$(OBJCOPY) -I binary `$(objcopyflags)` `echo "$<" | $(renamesymbols)`\
260           "$<" "$@"
261         @-printf '\000' >GNU-stack &&                                         \
262           $(OBJCOPY) --add-section .note.GNU-stack=GNU-stack "$@";            \
263           rm -f GNU-stack
264
265
266 .ico.o:
267         @echo $(OBJCOPY) "$<" "$@"
268         @$(OBJCOPY) -I binary `$(objcopyflags)` `echo "$<" | $(renamesymbols)`\
269           "$<" "$@"
270         @-printf '\000' >GNU-stack &&                                         \
271           $(OBJCOPY) --add-section .note.GNU-stack=GNU-stack "$@";            \
272           rm -f GNU-stack
273
274
275 shellinabox/shell_in_a_box.o: shellinabox/shell_in_a_box.js config.h
276
277 .jspp.js:
278         @echo preprocess "$<" "$@"
279         @sed -e "`sed -e 's/^#define *\([^ ]*\) *\(.*\)/\/^[^#]\/s\/\1\/\2 \\\\\/* \1 *\\\\\/\/g/' \
280                      -e t                                                     \
281                      -e d "$<"`"                                              \
282              -e "s/^#/\/\/ #/"                                                \
283              -e "s/VERSION/\"@VERSION@ (revision @VCS_REVISION@)\"/g"         \
284              "$<" >"$@"
285
286 .js.o:
287         @echo $(OBJCOPY) "$<" "$@"
288         @$(OBJCOPY) -I binary `$(objcopyflags)` `echo "$<" | $(renamesymbols)`\
289           "$<" "$@"
290         @-printf '\000' >GNU-stack &&                                         \
291           $(OBJCOPY) --add-section .note.GNU-stack=GNU-stack "$@";            \
292           rm -f GNU-stack
293
294
295 .wav.o:
296         @echo $(OBJCOPY) "$<" "$@"
297         @$(OBJCOPY) -I binary `$(objcopyflags)` `echo "$<" | $(renamesymbols)`\
298           "$<" "$@"
299         @-printf '\000' >GNU-stack &&                                         \
300           $(OBJCOPY) --add-section .note.GNU-stack=GNU-stack "$@";            \
301           rm -f GNU-stack
302
303
This page took 0.059341 seconds and 5 git commands to generate.