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