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