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