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