Skip to content
This repository
Newer
Older
100644 132 lines (107 sloc) 3.347 kb
53c6a29b »
2007-03-20 svn migr
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)
11 MODULES=yaws \
12 yaws_app \
13 yaws_ticker \
14 yaws_config \
15 yaws_server \
16 yaws_sup \
17 yaws_api \
18 yaws_log \
19 yaws_ls \
20 yaws_debug \
21 yaws_compile \
22 yaws_ctl \
23 yaws_cgi \
24 yaws_zlib \
25 yaws_generated \
26 mime_type_c \
27 mime_types \
28 yaws_session_server \
c1cea992 » faal
2009-04-16 Changed the way authentication is done, added support for multiple au…
29 yaws_outmod \
53c6a29b »
2007-03-20 svn migr
30 yaws_revproxy \
31 yaws_html \
32 yaws_log_file_h \
33 yaws_rss \
34 yaws_dav \
35 yaws_pam \
36 json jsonrpc yaws_jsonrpc yaws_xmlrpc\
37 haxe yaws_rpc \
a3f4fdeb »
2008-01-03 Reintroduced the SPNEGO/GSSAPI auth support by Mikael Magnusson
38 yaws_soap_srv yaws_soap_lib \
7cd40802 »
2008-03-10 Added CGI documentation including a new page http://yaws.hyber.org/cg…
39 authmod_gssapi \
12471ad5 »
2008-12-20 added configure support for sendfile
40 yaws_appmod_cgi \
2fa66b06 »
2009-07-10 cgi support
41 yaws_appmod_fcgi \
a0d2c832 »
2009-01-13 added one_for_one supervisor
42 yaws_sendfile yaws_sendfile_compat \
9317a44a » oliv3
2009-06-12 Compile yaws_stats
43 yaws_sup_restarts \
4248f8d3 » vinoski
2009-09-29 move yaws_multipart.erl to src dir and incorporate klacke's changes
44 yaws_stats \
7fdc54ad » davide
2009-12-18 HTML5 Web Sockets support.
45 yaws_multipart \
46 yaws_websockets
12471ad5 »
2008-12-20 added configure support for sendfile
47
53c6a29b »
2007-03-20 svn migr
48
49
50 EBIN_FILES=$(MODULES:%=../ebin/%.$(EMULATOR)) ../ebin/yaws.app
5b596d73 »
2007-09-23 added support for GSSAPI through a patch by Mikale Magnusson
51 ERLC_FLAGS+=-W $(DEBUG_FLAGS) -pa ../../yaws -I ../include
53c6a29b »
2007-03-20 svn migr
52
53 #
54 # Targets
55 #
56
fe0e677b » vinoski
2008-12-20 tie yaws_sendfile_compat into yaws_server
57 all: yaws_generated.erl yaws_configure.hrl $(EBIN_FILES)
53c6a29b »
2007-03-20 svn migr
58
59 dav:
60 $(MAKE) MODULES="$(MODULES) yaws_dav"
61
62 $(EBIN_FILES) : ../include/yaws.hrl ../include/yaws_api.hrl
63
bcfb0029 » vinoski
2008-12-21 1. fixes for yaws_sendfile_compat for non-sendfile platforms
64 ../ebin/yaws_sendfile_compat.$(EMULATOR): yaws_configure.hrl
53c6a29b »
2007-03-20 svn migr
65
66 yaws_generated.erl: yaws_generated.template ../vsn.mk
67 . ../vsn.mk; \
46079901 »
2008-05-25 cygwin support
68 cat yaws_generated.template | \
69 ../scripts/Subst %VSN% ${YAWS_VSN} | \
70 ../scripts/Subst %VARDIR% ${VARDIR} | \
71 ../scripts/Subst %localinstall% true | \
72 ../scripts/Subst %ETCDIR% ${ETCDIR} > yaws_generated.erl
53c6a29b »
2007-03-20 svn migr
73
cd687273 » vinoski
2009-01-29 add --disable-sendfile option to configure, fix src/Makefile to clean…
74 yaws_configure.hrl: ../vsn.mk ../include.mk
12471ad5 »
2008-12-20 added configure support for sendfile
75 set -x; \
76 if [ $(HAVE_SENDFILE) = "true" ]; then \
77 echo "-define(HAVE_SENDFILE, true)." > yaws_configure.hrl; \
78 else touch yaws_configure.hrl; fi
79
80
d07115cd »
2008-03-10 Several cleanups due to dialyzer, also moved the control file into us…
81 ## need to differentiate between local install and not
82 regen:
83 . ../vsn.mk; \
46079901 »
2008-05-25 cygwin support
84 cat yaws_generated.template | \
85 ../scripts/Subst %VSN% ${YAWS_VSN} | \
86 ../scripts/Subst %VARDIR% ${VARDIR} | \
87 ../scripts/Subst %localinstall% false | \
88 ../scripts/Subst %ETCDIR% ${ETCDIR} > yaws_generated.erl
53c6a29b »
2007-03-20 svn migr
89
90 charset.def:
91 if [ ! -z "$(DEFAULT_CHARSET)" ]; then \
92 echo $(DEFAULT_CHARSET) > charset.def; \
93 else rm charset.def 2> /dev/null; touch charset.def; fi
94
95 mime_types.erl: mime.types mime_type_c.erl charset.def
96 $(ERL) -noshell -pa ../ebin -s mime_type_c compile
97
98 debug:
99 $(MAKE) TYPE=debug
100
101 clean:
a7ee64c9 »
2009-11-29 clean target
102 rm -f $(EBIN_FILES) yaws_generated.erl charset.def mime_types.erl yaws_configure.hrl ../ebin/*.beam
53c6a29b »
2007-03-20 svn migr
103
d07115cd »
2008-03-10 Several cleanups due to dialyzer, also moved the control file into us…
104 install: regen all docsinstall
da61d09a »
2008-05-15 cygwin install patch by Bill Robertsson
105 $(INSTALL) -d $(DESTDIR)$(PREFIX)/lib/yaws/examples/ebin
106 $(INSTALL) -d $(DESTDIR)$(PREFIX)/lib/yaws/examples/include
107 $(INSTALL) -d $(DESTDIR)$(PREFIX)/lib/yaws/ebin
108 $(INSTALL) -d $(DESTDIR)$(PREFIX)/lib/yaws/priv
109 $(INSTALL) -d $(DESTDIR)$(VARDIR)/log/yaws
110 $(INSTALL) -d $(DESTDIR)$(VARDIR)/yaws/ebin
111 (cd ..; tar cf - ebin ) | (cd $(DESTDIR)$(PREFIX)/lib/yaws; tar xf - )
112 (cd ..; tar cf - include ) | (cd $(DESTDIR)$(PREFIX)/lib/yaws; tar xf - )
113 (cd ..; tar cf - priv/*.xsd ) | (cd $(DESTDIR)$(PREFIX)/lib/yaws; tar xf - )
d07115cd »
2008-03-10 Several cleanups due to dialyzer, also moved the control file into us…
114 $(RM) yaws_generated.erl ../ebin/yaws_generated.beam 2>/dev/null || true
53c6a29b »
2007-03-20 svn migr
115
116 docsinstall:
da61d09a »
2008-05-15 cygwin install patch by Bill Robertsson
117 $(INSTALL) -d $(DESTDIR)$(VARDIR)/yaws/www
118 (cd ..; tar cf - www ) | (cd $(DESTDIR)$(VARDIR)/yaws; tar xf - )
53c6a29b »
2007-03-20 svn migr
119
120 tags:
121 erl -noshell -pa ../ebin -s yaws_debug mktags
122
123 xref:
124 erl -noshell -pa ../ebin -s yaws_debug xref ../ebin
125
126 DIALYZER_FLAGS+=-Wno_return
127
128 dialyzer: .dialyzer.ok
129
130 .dialyzer.ok: $(MODULES:%=../ebin/%.$(EMULATOR))
131 dialyzer $(DIALYZER_FLAGS) -c ../ebin
132 touch .dialyzer.ok
Something went wrong with that request. Please try again.