Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 140 lines (110 sloc) 3.41 kb
53c6a29 @klacke svn migr
authored
1 include ../include.mk
2
3 ifeq ($(TYPE),debug)
4 DEBUG_FLAGS = -Ddebug +debug_info
5 else
6 DEBUG_FLAGS =
7 endif
8
9 include ../vsn.mk
10 VSN=$(YAWS_VSN)
f5eb9d5 @klacke conditional compile of websockets
authored
11
12
13 ## the websocket code uses new modern bits stuff
14 ifeq ($(shell test $(ERTS_MAJOR) -gt 4 && test $(ERTS_MINOR) -gt 6 && echo YES), YES)
15 HASBITS=true
16 endif
17
18 ifeq ($(HASBITS),true)
19 BITSMODS=yaws_websockets
20 endif
21
22
53c6a29 @klacke svn migr
authored
23 MODULES=yaws \
24 yaws_app \
25 yaws_ticker \
26 yaws_config \
27 yaws_server \
28 yaws_sup \
29 yaws_api \
30 yaws_log \
31 yaws_ls \
32 yaws_debug \
33 yaws_compile \
34 yaws_ctl \
35 yaws_cgi \
36 yaws_zlib \
37 yaws_generated \
38 mime_type_c \
39 mime_types \
40 yaws_session_server \
c1cea99 @faal Changed the way authentication is done, added support for multiple authe...
faal authored
41 yaws_outmod \
53c6a29 @klacke svn migr
authored
42 yaws_revproxy \
43 yaws_html \
44 yaws_log_file_h \
45 yaws_rss \
46 yaws_dav \
47 yaws_pam \
48 json jsonrpc yaws_jsonrpc yaws_xmlrpc\
49 haxe yaws_rpc \
a3f4fde @klacke Reintroduced the SPNEGO/GSSAPI auth support by Mikael Magnusson
authored
50 yaws_soap_srv yaws_soap_lib \
7cd4080 @klacke Added CGI documentation including a new page http://yaws.hyber.org/cgi.y...
authored
51 authmod_gssapi \
12471ad @klacke added configure support for sendfile
authored
52 yaws_appmod_cgi \
2fa66b0 @klacke cgi support
authored
53 yaws_appmod_fcgi \
a0d2c83 @klacke added one_for_one supervisor
authored
54 yaws_sendfile yaws_sendfile_compat \
9317a44 @oliv3 Compile yaws_stats
oliv3 authored
55 yaws_sup_restarts \
4248f8d @vinoski move yaws_multipart.erl to src dir and incorporate klacke's changes
vinoski authored
56 yaws_stats \
43d6620 Adding yaws_vdir.erl to the Makefile.
Torbjorn Tornkvist authored
57 yaws_vdir \
7fdc54a @davide HTML5 Web Sockets support.
davide authored
58 yaws_multipart \
f5eb9d5 @klacke conditional compile of websockets
authored
59 $(BITSMODS)
12471ad @klacke added configure support for sendfile
authored
60
53c6a29 @klacke svn migr
authored
61
62
63 EBIN_FILES=$(MODULES:%=../ebin/%.$(EMULATOR)) ../ebin/yaws.app
5b596d7 @klacke added support for GSSAPI through a patch by Mikale Magnusson
authored
64 ERLC_FLAGS+=-W $(DEBUG_FLAGS) -pa ../../yaws -I ../include
53c6a29 @klacke svn migr
authored
65
66 #
67 # Targets
68 #
69
fe0e677 @vinoski tie yaws_sendfile_compat into yaws_server
vinoski authored
70 all: yaws_generated.erl yaws_configure.hrl $(EBIN_FILES)
53c6a29 @klacke svn migr
authored
71
72 dav:
73 $(MAKE) MODULES="$(MODULES) yaws_dav"
74
75 $(EBIN_FILES) : ../include/yaws.hrl ../include/yaws_api.hrl
76
bcfb002 @vinoski 1. fixes for yaws_sendfile_compat for non-sendfile platforms
vinoski authored
77 ../ebin/yaws_sendfile_compat.$(EMULATOR): yaws_configure.hrl
53c6a29 @klacke svn migr
authored
78
79 yaws_generated.erl: yaws_generated.template ../vsn.mk
80 . ../vsn.mk; \
4607990 @klacke cygwin support
authored
81 cat yaws_generated.template | \
82 ../scripts/Subst %VSN% ${YAWS_VSN} | \
83 ../scripts/Subst %VARDIR% ${VARDIR} | \
84 ../scripts/Subst %localinstall% true | \
85 ../scripts/Subst %ETCDIR% ${ETCDIR} > yaws_generated.erl
53c6a29 @klacke svn migr
authored
86
cd68727 @vinoski add --disable-sendfile option to configure, fix src/Makefile to clean ya...
vinoski authored
87 yaws_configure.hrl: ../vsn.mk ../include.mk
12471ad @klacke added configure support for sendfile
authored
88 set -x; \
89 if [ $(HAVE_SENDFILE) = "true" ]; then \
90 echo "-define(HAVE_SENDFILE, true)." > yaws_configure.hrl; \
91 else touch yaws_configure.hrl; fi
92
93
d07115c @klacke Several cleanups due to dialyzer, also moved the control file into users...
authored
94 ## need to differentiate between local install and not
95 regen:
96 . ../vsn.mk; \
4607990 @klacke cygwin support
authored
97 cat yaws_generated.template | \
98 ../scripts/Subst %VSN% ${YAWS_VSN} | \
99 ../scripts/Subst %VARDIR% ${VARDIR} | \
100 ../scripts/Subst %localinstall% false | \
101 ../scripts/Subst %ETCDIR% ${ETCDIR} > yaws_generated.erl
53c6a29 @klacke svn migr
authored
102
103 charset.def:
104 if [ ! -z "$(DEFAULT_CHARSET)" ]; then \
105 echo $(DEFAULT_CHARSET) > charset.def; \
106 else rm charset.def 2> /dev/null; touch charset.def; fi
107
108 mime_types.erl: mime.types mime_type_c.erl charset.def
109 $(ERL) -noshell -pa ../ebin -s mime_type_c compile
110
111 debug:
112 $(MAKE) TYPE=debug
113
114 clean:
a7ee64c @klacke clean target
authored
115 rm -f $(EBIN_FILES) yaws_generated.erl charset.def mime_types.erl yaws_configure.hrl ../ebin/*.beam
53c6a29 @klacke svn migr
authored
116
d07115c @klacke Several cleanups due to dialyzer, also moved the control file into users...
authored
117 install: regen all docsinstall
da61d09 @klacke cygwin install patch by Bill Robertsson
authored
118 $(INSTALL) -d $(DESTDIR)$(PREFIX)/lib/yaws/examples/ebin
119 $(INSTALL) -d $(DESTDIR)$(PREFIX)/lib/yaws/examples/include
120 $(INSTALL) -d $(DESTDIR)$(PREFIX)/lib/yaws/ebin
121 $(INSTALL) -d $(DESTDIR)$(PREFIX)/lib/yaws/priv
122 $(INSTALL) -d $(DESTDIR)$(VARDIR)/log/yaws
123 $(INSTALL) -d $(DESTDIR)$(VARDIR)/yaws/ebin
124 (cd ..; tar cf - ebin ) | (cd $(DESTDIR)$(PREFIX)/lib/yaws; tar xf - )
125 (cd ..; tar cf - include ) | (cd $(DESTDIR)$(PREFIX)/lib/yaws; tar xf - )
126 (cd ..; tar cf - priv/*.xsd ) | (cd $(DESTDIR)$(PREFIX)/lib/yaws; tar xf - )
d07115c @klacke Several cleanups due to dialyzer, also moved the control file into users...
authored
127 $(RM) yaws_generated.erl ../ebin/yaws_generated.beam 2>/dev/null || true
53c6a29 @klacke svn migr
authored
128
129 docsinstall:
da61d09 @klacke cygwin install patch by Bill Robertsson
authored
130 $(INSTALL) -d $(DESTDIR)$(VARDIR)/yaws/www
131 (cd ..; tar cf - www ) | (cd $(DESTDIR)$(VARDIR)/yaws; tar xf - )
53c6a29 @klacke svn migr
authored
132
133 tags:
134 erl -noshell -pa ../ebin -s yaws_debug mktags
135
136 xref:
137 erl -noshell -pa ../ebin -s yaws_debug xref ../ebin
138
139
Something went wrong with that request. Please try again.