1 | include $(top_srcdir)/automake/compile.am |
---|
2 | |
---|
3 | if LIBNETWORKING |
---|
4 | include_shttpddir = $(includedir)/shttpd |
---|
5 | |
---|
6 | project_lib_LIBRARIES = libshttpd.a |
---|
7 | libshttpd_a_CPPFLAGS = $(AM_CPPFLAGS) -DHAVE_MD5 |
---|
8 | |
---|
9 | # HACK ALERT: |
---|
10 | # prefix all non-public symbols with _shttp_ |
---|
11 | # FIXME: There must be something better than this |
---|
12 | libshttpd_a_CPPFLAGS += -Dcheck_authorization=_shttpd_check_authorization |
---|
13 | libshttpd_a_CPPFLAGS += -Ddecode_url_encoded_string=_shttpd_decode_url_encoded_string |
---|
14 | libshttpd_a_CPPFLAGS += -Dedit_passwords=_shttpd_edit_passwords |
---|
15 | libshttpd_a_CPPFLAGS += -Delog=_shttpd_elog |
---|
16 | libshttpd_a_CPPFLAGS += -Dget_dir=_shttpd_get_dir |
---|
17 | libshttpd_a_CPPFLAGS += -Dget_file=_shttpd_get_file |
---|
18 | libshttpd_a_CPPFLAGS += -Dget_headers_len=_shttpd_get_headers_len |
---|
19 | libshttpd_a_CPPFLAGS += -Dget_mime_type=_shttpd_get_mime_type |
---|
20 | libshttpd_a_CPPFLAGS += -Dinit_from_argc_argv=_shttpd_init_from_argc_argv |
---|
21 | libshttpd_a_CPPFLAGS += -Dis_authorized_for_put=_shttpd_is_authorized_for_put |
---|
22 | libshttpd_a_CPPFLAGS += -Dis_registered_uri=_shttpd_is_registered_uri |
---|
23 | libshttpd_a_CPPFLAGS += -Dlog_access=_shttpd_log_access |
---|
24 | libshttpd_a_CPPFLAGS += -Dparse_headers=_shttpd_parse_headers |
---|
25 | libshttpd_a_CPPFLAGS += -Dput_dir=_shttpd_put_dir |
---|
26 | libshttpd_a_CPPFLAGS += -Dsend_authorization_request=_shttpd_send_authorization_request |
---|
27 | libshttpd_a_CPPFLAGS += -Dsend_server_error=_shttpd_send_server_error |
---|
28 | libshttpd_a_CPPFLAGS += -Dset_close_on_exec=_shttpd_set_close_on_exec |
---|
29 | libshttpd_a_CPPFLAGS += -Dset_mime_types=_shttpd_set_mime_types |
---|
30 | libshttpd_a_CPPFLAGS += -Dset_non_blocking_mode=_shttpd_set_non_blocking_mode |
---|
31 | libshttpd_a_CPPFLAGS += -Dsetup_embedded_stream=_shttpd_setup_embedded_stream |
---|
32 | libshttpd_a_CPPFLAGS += -Dstop_stream=_shttpd_stop_stream |
---|
33 | libshttpd_a_CPPFLAGS += -Dusage=_shttpd_usage |
---|
34 | |
---|
35 | libshttpd_a_CPPFLAGS += -Dknown_http_methods=_shttpd_known_http_methods |
---|
36 | libshttpd_a_CPPFLAGS += -Doptions=_shttpd_options |
---|
37 | libshttpd_a_CPPFLAGS += -Dio_file=_shttpd_io_file |
---|
38 | libshttpd_a_CPPFLAGS += -Dio_socket=_shttpd_io_socket |
---|
39 | libshttpd_a_CPPFLAGS += -Dio_embedded=_shttpd_io_embedded |
---|
40 | libshttpd_a_CPPFLAGS += -Dio_dir=_shttpd_io_dir |
---|
41 | libshttpd_a_CPPFLAGS += -Dio_cgi=_shttpd_io_cgi |
---|
42 | |
---|
43 | libshttpd_a_CPPFLAGS += -Dcurrent_time=_shttpd_current_time |
---|
44 | libshttpd_a_CPPFLAGS += -Dtz_offset=_shttpd_tz_offset |
---|
45 | |
---|
46 | SRCS= string.c shttpd.c log.c auth.c md5.c \ |
---|
47 | cgi.c mime_type.c config.c \ |
---|
48 | io_file.c io_socket.c io_ssl.c io_emb.c io_dir.c io_cgi.c |
---|
49 | HDRS= defs.h llist.h shttpd.h std_includes.h io.h md5.h ssl.h \ |
---|
50 | compat_unix.h compat_win32.h compat_rtems.h |
---|
51 | |
---|
52 | libshttpd_a_SOURCES = $(SRCS) $(HDRS) |
---|
53 | libshttpd_a_SOURCES += compat_rtems.c |
---|
54 | include_shttpd_HEADERS = shttpd.h |
---|
55 | |
---|
56 | # Possible flags: (in brackets are rough numbers for 'gcc -O2' on i386) |
---|
57 | # -DHAVE_MD5 - use system md5 library (-2kb) |
---|
58 | # -DNDEBUG - strip off all debug code (-5kb) |
---|
59 | # -D_DEBUG - build debug version (very noisy) (+6kb) |
---|
60 | # -DNO_CGI - disable CGI support (-5kb) |
---|
61 | # -DNO_SSL - disable SSL functionality (-2kb) |
---|
62 | # -DNO_AUTH - disable authorization support (-4kb) |
---|
63 | # -DNO_GUI - Win32 only. Build console version, no GUI |
---|
64 | # -DCONFIG=\"file\" - use `file' as the default config file |
---|
65 | endif |
---|
66 | |
---|
67 | include $(srcdir)/preinstall.am |
---|
68 | include $(top_srcdir)/automake/local.am |
---|