"Fossies" - the Fresh Open Source Software Archive

Member "shellinabox-2.20/Makefile.am" (9 Nov 2016, 20181 Bytes) of package /linux/privat/shellinabox-2.20.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "Makefile.am": 2.19_vs_2.20.

    1 AM_CPPFLAGS          =
    2 AM_CFLAGS            = -g -std=gnu99 -Wall
    3 AM_LDFLAGS           = -g -lm
    4 ACLOCAL_AMFLAGS      = -I m4
    5 
    6 noinst_LTLIBRARIES   = libhttp.la                                             \
    7                        liblogging.la
    8 noinst_DATA          = $(top_srcdir)/demo/demo.js
    9 bin_PROGRAMS         = shellinaboxd
   10 man_MANS             = shellinaboxd.1
   11 noinst_HEADERS       = libhttp/http.h
   12 dist_doc_DATA        = AUTHORS                                                \
   13                        COPYING                                                \
   14                        GPL-2                                                  \
   15                        NEWS
   16 EXTRA_DIST           = INSTALL.Debian                                         \
   17                        README.Fedora                                          \
   18                        INSTALL                                                \
   19                        README                                                 \
   20                        TODO                                                   \
   21                        demo/beep.wav                                          \
   22                        demo/favicon.ico                                       \
   23                        demo/demo.html                                         \
   24                        demo/demo.js                                           \
   25                        demo/demo.jspp                                         \
   26                        demo/demo.xml                                          \
   27                        demo/enabled.gif                                       \
   28                        demo/keyboard.html                                     \
   29                        demo/keyboard.png                                      \
   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                        etc-pam.d-shellinabox-example                          \
   38                        shellinabox/shellinaboxd.man.in                        \
   39                        shellinabox/shell_in_a_box.js                          \
   40                        shellinabox/vt100.js                                   \
   41                        shellinabox/cgi-mode-example.sh                        \
   42                        shellinabox/white-on-black.css                         \
   43                        shellinabox/black-on-white.css                         \
   44                        shellinabox/monochrome.css                             \
   45                        shellinabox/color.css                                  \
   46                        debian/README                                          \
   47                        debian/README.available                                \
   48                        debian/README.enabled                                  \
   49                        debian/changelog                                       \
   50                        debian/compat                                          \
   51                        debian/control                                         \
   52                        debian/copyright                                       \
   53                        debian/docs                                            \
   54                        debian/rules                                           \
   55                        debian/shellinabox.default                             \
   56                        debian/shellinabox.dirs                                \
   57                        debian/shellinabox.init                                \
   58                        debian/shellinabox.install                             \
   59                        debian/shellinabox.postinst                            \
   60                        debian/shellinabox.postrm                              \
   61                        debian/source/format                                   \
   62                        debian/watch
   63 LIBLOGGING_INCLUDES  = logging/logging.h                                      \
   64                        config.h
   65 liblogging_la_SOURCES= logging/logging.c                                      \
   66                        $(LIBLOGGING_INCLUDES)
   67 liblogging_la_LDFLAGS= -version 1:0:0
   68 
   69 LIBHTTP_INCLUDES     = libhttp/hashmap.h                                      \
   70                        libhttp/trie.h                                         \
   71                        libhttp/httpconnection.h                               \
   72                        libhttp/server.h                                       \
   73                        libhttp/ssl.h                                          \
   74                        libhttp/url.h                                          \
   75                        config.h
   76 libhttp_la_SOURCES   = libhttp/hashmap.c                                      \
   77                        libhttp/trie.c                                         \
   78                        libhttp/httpconnection.c                               \
   79                        libhttp/server.c                                       \
   80                        libhttp/ssl.c                                          \
   81                        libhttp/url.c                                          \
   82                        $(LIBHTTP_INCLUDES)                                    \
   83                        libhttp/libhttp.sym
   84 libhttp_la_LDFLAGS   = -export-symbols  $(top_srcdir)/libhttp/libhttp.sym     \
   85                        -version 1:0:0
   86 
   87 shellinaboxd_SOURCES = shellinabox/shellinaboxd.c                             \
   88                        shellinabox/externalfile.c                             \
   89                        shellinabox/externalfile.h                             \
   90                        shellinabox/launcher.c                                 \
   91                        shellinabox/launcher.h                                 \
   92                        shellinabox/privileges.c                               \
   93                        shellinabox/privileges.h                               \
   94                        shellinabox/service.c                                  \
   95                        shellinabox/service.h                                  \
   96                        shellinabox/session.c                                  \
   97                        shellinabox/session.h                                  \
   98                        shellinabox/usercss.c                                  \
   99                        shellinabox/usercss.h                                  \
  100                        shellinabox/cgi_root.html                              \
  101                        shellinabox/root_page.html                             \
  102                        shellinabox/vt100.jspp                                 \
  103                        shellinabox/shell_in_a_box.jspp                        \
  104                        shellinabox/styles.css                                 \
  105                        shellinabox/print-styles.css                           \
  106                        shellinabox/enabled.gif                                \
  107                        shellinabox/favicon.ico                                \
  108                        shellinabox/keyboard.png                               \
  109                        shellinabox/keyboard-layout.html                       \
  110                        shellinabox/beep.wav                                   \
  111                        config.h
  112 BUILT_SOURCES        = shellinabox/beep.h                                     \
  113                        shellinabox/cgi_root.h                                 \
  114                        shellinabox/enabled.h                                  \
  115                        shellinabox/favicon.h                                  \
  116                        shellinabox/keyboard.h                                 \
  117                        shellinabox/keyboard-layout.h                          \
  118                        shellinabox/print-styles.h                             \
  119                        shellinabox/root_page.h                                \
  120                        shellinabox/shell_in_a_box.h                           \
  121                        shellinabox/shell_in_a_box.js                          \
  122                        shellinabox/styles.h                                   \
  123                        shellinabox/vt100.h                                    \
  124                        shellinabox/vt100.js
  125 
  126 
  127 shellinaboxd_LDADD   = liblogging.la                                          \
  128                        libhttp.la
  129 shellinaboxd_LDFLAGS = -static
  130 ## Added this for compatibility with older versions of autoconf/automake
  131 docdir               = ${datadir}/doc/${PACKAGE}
  132 
  133 symbolname           =                                                        \
  134   sed -e 's/.*\/\([^.]*\)[.].*/\1/'                                           \
  135       -e 't0'                                                                 \
  136       -e 's/\([^.]*\)[.].*/\1/'                                               \
  137       -e ':0'                                                                 \
  138       -e 's/$$/ aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ/'        \
  139       -e ':1'                                                                 \
  140       -e 's/\([^-_]*\)[-_]\([a-z]\)\([^ ]* .*\2\)\(.\)/\1\4\3\4/'             \
  141       -e 't1'                                                                 \
  142       -e 's/.\{53\}$$//'                                                      \
  143       -e 's/[-/.]/_/g'
  144 
  145 libtool: $(LIBTOOL_DEPS)
  146 	$(SHELL) ./config.status --recheck
  147 
  148 
  149 ${top_srcdir}/demo/demo.js: ${top_srcdir}/demo/beep.wav                       \
  150                             ${top_srcdir}/demo/demo.jspp                      \
  151                             ${top_srcdir}/demo/enabled.gif                    \
  152                             ${top_srcdir}/demo/favicon.ico                    \
  153                             ${top_srcdir}/demo/keyboard.html                  \
  154                             ${top_srcdir}/demo/keyboard.png                   \
  155                             ${top_srcdir}/demo/styles.css                     \
  156                             ${top_srcdir}/demo/print-styles.css               \
  157                             ${top_srcdir}/demo/vt100.js                       \
  158                             ${top_srcdir}/demo/usercss-0.css                  \
  159                             ${top_srcdir}/demo/usercss-1.css                  \
  160                             ${top_srcdir}/demo/usercss-2.css                  \
  161                             ${top_srcdir}/demo/usercss-3.css
  162 
  163 ${top_srcdir}/demo/beep.wav: ${top_srcdir}/shellinabox/beep.wav
  164 	@rm -f "$@"
  165 	ln "$?" "$@"
  166 
  167 ${top_srcdir}/demo/enabled.gif: ${top_srcdir}/shellinabox/enabled.gif
  168 	@rm -f "$@"
  169 	ln "$?" "$@"
  170 
  171 ${top_srcdir}/demo/favicon.ico: ${top_srcdir}/shellinabox/favicon.ico
  172 	@rm -f "$@"
  173 	ln "$?" "$@"
  174 
  175 ${top_srcdir}/demo/keyboard.html: ${top_srcdir}/shellinabox/keyboard-layout.html
  176 	@rm -f "$@"
  177 	ln "$?" "$@"
  178 
  179 ${top_srcdir}/demo/keyboard.png: ${top_srcdir}/shellinabox/keyboard.png
  180 	@rm -f "$@"
  181 	ln "$?" "$@"
  182 
  183 ${top_srcdir}/demo/styles.css: ${top_srcdir}/shellinabox/styles.css
  184 	@rm -f "$@"
  185 	sed -e '/\[if DEFINES_COLORS\]/,/\[endif DEFINES_COLORS\]/d' "$?" >"$@"
  186 
  187 ${top_srcdir}/demo/print-styles.css: ${top_srcdir}/shellinabox/print-styles.css
  188 	@rm -f "$@"
  189 	ln "$?" "$@"
  190 
  191 ${top_srcdir}/demo/usercss-0.css: ${top_srcdir}/shellinabox/white-on-black.css
  192 	@rm -f "$@"
  193 	ln "$?" "$@"
  194 
  195 ${top_srcdir}/demo/usercss-1.css: ${top_srcdir}/shellinabox/black-on-white.css
  196 	@rm -f "$@"
  197 	ln "$?" "$@"
  198 
  199 ${top_srcdir}/demo/usercss-2.css: ${top_srcdir}/shellinabox/monochrome.css
  200 	@rm -f "$@"
  201 	ln "$?" "$@"
  202 
  203 ${top_srcdir}/demo/usercss-3.css: ${top_srcdir}/shellinabox/color.css
  204 	@rm -f "$@"
  205 	ln "$?" "$@"
  206 
  207 ${top_srcdir}/demo/vt100.js: ${top_srcdir}/shellinabox/vt100.js
  208 	@rm -f "$@"
  209 	ln "$?" "$@"
  210 
  211 shellinaboxd.1: ${top_srcdir}/shellinabox/shellinaboxd.man.in                 \
  212 		${top_srcdir}/config.h
  213 	@src="${top_srcdir}/shellinabox/shellinaboxd.man.in";                 \
  214 	echo preprocess  "$$src" '>'"$@";                                     \
  215 	if sed -e 's/^#define \([^ ]*\).*/\1/' -e t -e d config.h |           \
  216              grep 'HAVE_BIN_LOGIN' >/dev/null 2>&1; then                      \
  217 	  sed -e '/^#ifndef  *HAVE_BIN_LOGIN$$/,/^#endif$$/d' "$$src";        \
  218 	else                                                                  \
  219 	  sed -e '/^#ifdef  *HAVE_BIN_LOGIN$$/,/^#endif$$/d' "$$src";         \
  220 	fi |                                                                  \
  221 	if [ `sed -e 's/^#define \([^ ]*\).*/\1/' -e t -e d config.h |        \
  222              egrep 'HAVE_OPENSSL_BIO_H|HAVE_OPENSSL_ERR_H|HAVE_OPENSSL_SSL_H'|\
  223              wc -l` -eq 3 ]; then                                             \
  224 	  sed -e '/^#ifndef  *HAVE_OPENSSL$$/,/^#endif$$/d';                  \
  225 	else                                                                  \
  226 	  sed -e '/^#ifdef  *HAVE_OPENSSL$$/,/^#endif$$/d';                   \
  227 	fi |                                                                  \
  228 	if sed -e 's/^#define \([^ ]*\).*/\1/' -e t -e d config.h |           \
  229              grep 'HAVE_SECURITY_PAM_APPL_H' >/dev/null 2>&1; then            \
  230 	  sed -e '/^#ifndef  *HAVE_PAM$$/,/^#endif$$/d';                      \
  231 	else                                                                  \
  232 	  sed -e '/^#ifdef  *HAVE_PAM$$/,/^#endif$$/d';                       \
  233 	fi |                                                                  \
  234 	if [ -n "${DPKGBUILD}" ]; then                                        \
  235 	  sed -e '/^#ifndef  *DPKGBUILD$$/,/^#endif$$/d';                     \
  236 	else                                                                  \
  237 	  sed -e '/^#ifdef  *DPKGBUILD$$/,/^#endif$$/d';                      \
  238 	fi |                                                                  \
  239 	sed -e '/^#/d' >"$@"
  240 	@out=`echo "$@" 2>/dev/null|sed -e 's/\.[^.]*$$/.ps/'`;               \
  241 	man -Tps "./$@" >"$${out}" 2>/dev/null || rm -f "$${out}"
  242 
  243 clean-local: clean-demo
  244 	-rm -rf shellinaboxd.1                                                \
  245 	        shellinaboxd.ps                                               \
  246 	        shellinaboxd.pdf
  247 	-rm -rf debian/shellinabox                                            \
  248 	        debian/shellinabox*.debhelper*                                \
  249 	        debian/shellinabox.substvars                                  \
  250 	        debian/tmp
  251 	-rm -rf shellinabox/beep.h                                            \
  252 	        shellinabox/cgi_root.h      				      \
  253 	        shellinabox/enabled.h       				      \
  254 	        shellinabox/favicon.h       				      \
  255 	        shellinabox/keyboard.h      				      \
  256 	        shellinabox/keyboard-layout.h				      \
  257 	        shellinabox/print-styles.h  				      \
  258 	        shellinabox/root_page.h     				      \
  259 	        shellinabox/shell_in_a_box.js				      \
  260 	        shellinabox/shell_in_a_box.h				      \
  261 	        shellinabox/styles.h                                          \
  262 	        shellinabox/vt100.js                                          \
  263 	        shellinabox/vt100.h
  264 
  265 clean-demo:
  266 	-rm demo/beep.wav						      \
  267 	    demo/demo.js 						      \
  268 	    demo/enabled.gif 						      \
  269 	    demo/favicon.ico 						      \
  270 	    demo/keyboard.png 						      \
  271 	    demo/print-styles.css 					      \
  272 	    demo/styles.css 						      \
  273 	    demo/usercss-0.css 						      \
  274 	    demo/usercss-1.css 						      \
  275 	    demo/usercss-2.css 						      \
  276 	    demo/usercss-3.css 						      \
  277 	    demo/vt100.js
  278 
  279 .css.h:
  280 	@echo od "$<" '>'"$@"
  281 	@mkdir -p "`dirname "$@"`"
  282 	@{ sym="`echo "$<" | $(symbolname)`";                                 \
  283 	   echo "static const char $${sym}Start[] =";                         \
  284 	   od -vb "$<" | sed 's/[0-7]*/"/;s/ *$$/"/;/^""$$/d;s/  */\\/g';     \
  285 	   echo ';';                                                          \
  286 	   echo "static const int $${sym}Size ATTR_UNUSED ="                  \
  287 	           "(int)sizeof($${sym}Start);";                              \
  288 	 } >"$@"
  289 
  290 .gif.h:
  291 	@echo od "$<" '>'"$@"
  292 	@mkdir -p "`dirname "$@"`"
  293 	@{ sym="`echo "$<" | $(symbolname)`";                                 \
  294 	   echo "static const char $${sym}Start[] =";                         \
  295 	   od -vb "$<" | sed 's/[0-7]*/"/;s/ *$$/"/;/^""$$/d;s/  */\\/g';     \
  296 	   echo ';';                                                          \
  297 	   echo "static const int $${sym}Size ATTR_UNUSED ="                  \
  298 	           "(int)sizeof($${sym}Start);";                              \
  299 	 } >"$@"
  300 
  301 .png.h:
  302 	@echo od "$<" '>'"$@"
  303 	@mkdir -p "`dirname "$@"`"
  304 	@{ sym="`echo "$<" | $(symbolname)`";                                 \
  305 	   echo "static const char $${sym}Start[] =";                         \
  306 	   od -vb "$<" | sed 's/[0-7]*/"/;s/ *$$/"/;/^""$$/d;s/  */\\/g';     \
  307 	   echo ';';                                                          \
  308 	   echo "static const int $${sym}Size ATTR_UNUSED ="                  \
  309 	           "(int)sizeof($${sym}Start);";                              \
  310 	 } >"$@"
  311 
  312 .html.h:
  313 	@echo od "$<" '>'"$@"
  314 	@mkdir -p "`dirname "$@"`"
  315 	@{ sym="`echo "$<" | $(symbolname)`";                                 \
  316 	   echo "static const char $${sym}Start[] =";                         \
  317 	   od -vb "$<" | sed 's/[0-7]*/"/;s/ *$$/"/;/^""$$/d;s/  */\\/g';     \
  318 	   echo ';';                                                          \
  319 	   echo "static const int $${sym}Size ATTR_UNUSED ="                  \
  320 	           "(int)sizeof($${sym}Start);";                              \
  321 	 } >"$@"
  322 
  323 
  324 .ico.h:
  325 	@echo od "$<" '>'"$@"
  326 	@mkdir -p "`dirname "$@"`"
  327 	@{ sym="`echo "$<" | $(symbolname)`";                                 \
  328 	   echo "static const char $${sym}Start[] =";                         \
  329 	   od -vb "$<" | sed 's/[0-7]*/"/;s/ *$$/"/;/^""$$/d;s/  */\\/g';     \
  330 	   echo ';';                                                          \
  331 	   echo "static const int $${sym}Size ATTR_UNUSED ="                  \
  332 	           "(int)sizeof($${sym}Start);";                              \
  333 	 } >"$@"
  334 
  335 .jspp.js:
  336 	@echo preprocess "$<" "$@"
  337 	@mkdir -p "`dirname "$@"`"
  338 	sed -e "`sed -e 's/^#define *\([^ ]*\) *\(.*\)/\/^[^#]\/s\/\1\/\2 \\\\\/* \1 *\\\\\/\/g/' \
  339 	             -e t                                                     \
  340 	             -e d "$<"`"                                              \
  341 	     -e "s/^#/\/\/ #/"                                                \
  342 	     -e "s/VERSION/\"@VERSION@ @VCS_REVISION@\"/g"                    \
  343 	     "$<" >"$@"
  344 
  345 .js.h:
  346 	@echo od "$<" '>'"$@"
  347 	@mkdir -p "`dirname "$@"`"
  348 	@{ sym="`echo "$<" | $(symbolname)`";                                 \
  349 	   echo "static const char $${sym}Start[] =";                         \
  350 	   od -vb "$<" | sed 's/[0-7]*/"/;s/ *$$/"/;/^""$$/d;s/  */\\/g';     \
  351 	   echo ';';                                                          \
  352 	   echo "static const int $${sym}Size ATTR_UNUSED ="                  \
  353 	           "(int)sizeof($${sym}Start);";                              \
  354 	 } >"$@"
  355 
  356 
  357 .wav.h:
  358 	@echo od "$<" '>'"$@"
  359 	@mkdir -p "`dirname "$@"`"
  360 	@{ sym="`echo "$<" | $(symbolname)`";                                 \
  361 	   echo "static const char $${sym}Start[] =";                         \
  362 	   od -vb "$<" | sed 's/[0-7]*/"/;s/ *$$/"/;/^""$$/d;s/  */\\/g';     \
  363 	   echo ';';                                                          \
  364 	   echo "static const int $${sym}Size ATTR_UNUSED ="                  \
  365 	           "(int)sizeof($${sym}Start);";                              \
  366 	 } >"$@"
  367 
  368 shellinaboxd.ps: shellinaboxd.1
  369 	groff -man -T ps $^ >$@
  370 
  371 shellinaboxd.pdf: shellinaboxd.ps
  372 	ps2pdf $^ $@
  373