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