Skip to content
Newer
Older
100644 134 lines (104 sloc) 3.02 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
35a5c1a @vinoski add configure detection of erts bits support
vinoski authored
14 ifeq ($(BITS_SUPPORT),true)
15 BITSMODS=yaws_websockets
f5eb9d5 @klacke conditional compile of websockets
authored
16 endif
17
18
53c6a29 @klacke svn migr
authored
19 MODULES=yaws \
20 yaws_app \
21 yaws_ticker \
22 yaws_config \
23 yaws_server \
24 yaws_sup \
25 yaws_api \
26 yaws_log \
d9342f8 @capflam server-specific logger_mod and auth_mod (capflam)
capflam authored
27 yaws_logger \
53c6a29 @klacke svn migr
authored
28 yaws_ls \
29 yaws_debug \
30 yaws_compile \
31 yaws_ctl \
32 yaws_cgi \
33 yaws_zlib \
34 yaws_generated \
35 mime_types \
36 yaws_session_server \
c1cea99 @faal Changed the way authentication is done, added support for multiple au…
faal authored
37 yaws_outmod \
53c6a29 @klacke svn migr
authored
38 yaws_revproxy \
39 yaws_html \
40 yaws_log_file_h \
41 yaws_rss \
42 yaws_dav \
43 yaws_pam \
96534b2 @vinoski replace json.erl with json2.erl to fix issue 50
vinoski authored
44 json json2 jsonrpc yaws_jsonrpc yaws_xmlrpc\
53c6a29 @klacke svn migr
authored
45 haxe yaws_rpc \
a3f4fde @klacke Reintroduced the SPNEGO/GSSAPI auth support by Mikael Magnusson
authored
46 yaws_soap_srv yaws_soap_lib \
7cd4080 @klacke Added CGI documentation including a new page http://yaws.hyber.org/cg…
authored
47 authmod_gssapi \
12471ad @klacke added configure support for sendfile
authored
48 yaws_appmod_cgi \
2fa66b0 @klacke cgi support
authored
49 yaws_appmod_fcgi \
6a4c4e7 @vinoski change sendfile driver handler to a gen_server
vinoski authored
50 yaws_sendfile \
9317a44 @oliv3 Compile yaws_stats
oliv3 authored
51 yaws_sup_restarts \
4248f8d @vinoski move yaws_multipart.erl to src dir and incorporate klacke's changes
vinoski authored
52 yaws_stats \
43d6620 Adding yaws_vdir.erl to the Makefile.
Torbjorn Tornkvist authored
53 yaws_vdir \
7fdc54a @davide HTML5 Web Sockets support.
davide authored
54 yaws_multipart \
c650d77 @capflam add shaper directive to control access (capflam)
capflam authored
55 yaws_shaper \
f5eb9d5 @klacke conditional compile of websockets
authored
56 $(BITSMODS)
12471ad @klacke added configure support for sendfile
authored
57
53c6a29 @klacke svn migr
authored
58
59
bc1a16b @capflam add yaws.appup.src template file (capflam)
capflam authored
60 EBIN_FILES=$(MODULES:%=../ebin/%.$(EMULATOR)) ../ebin/yaws.app ../ebin/yaws.appup
5b596d7 @klacke added support for GSSAPI through a patch by Mikale Magnusson
authored
61 ERLC_FLAGS+=-W $(DEBUG_FLAGS) -pa ../../yaws -I ../include
53c6a29 @klacke svn migr
authored
62
63 #
64 # Targets
65 #
66
bedbc05 @tuncer add rebar support (Tuncer Ayaz and Steve Vinoski)
tuncer authored
67 all: yaws_generated.erl yaws_configure.hrl $(EBIN_FILES)
53c6a29 @klacke svn migr
authored
68
69 dav:
70 $(MAKE) MODULES="$(MODULES) yaws_dav"
71
72 $(EBIN_FILES) : ../include/yaws.hrl ../include/yaws_api.hrl
73
6a4c4e7 @vinoski change sendfile driver handler to a gen_server
vinoski authored
74 ../ebin/yaws_sendfile.$(EMULATOR): yaws_configure.hrl
53c6a29 @klacke svn migr
authored
75
76 yaws_generated.erl: yaws_generated.template ../vsn.mk
bedbc05 @tuncer add rebar support (Tuncer Ayaz and Steve Vinoski)
tuncer authored
77 . ../vsn.mk ; \
78 YAWS_VSN='$(YAWS_VSN)' VARDIR='$(VARDIR)' ETCDIR='$(ETCDIR)' \
79 ../scripts/gen-yaws-generated true > yaws_generated.erl
53c6a29 @klacke svn migr
authored
80
cd68727 @vinoski add --disable-sendfile option to configure, fix src/Makefile to clean…
vinoski authored
81 yaws_configure.hrl: ../vsn.mk ../include.mk
12471ad @klacke added configure support for sendfile
authored
82 set -x; \
83 if [ $(HAVE_SENDFILE) = "true" ]; then \
84 echo "-define(HAVE_SENDFILE, true)." > yaws_configure.hrl; \
85 else touch yaws_configure.hrl; fi
86
87
d07115c @klacke Several cleanups due to dialyzer, also moved the control file into us…
authored
88 ## need to differentiate between local install and not
bedbc05 @tuncer add rebar support (Tuncer Ayaz and Steve Vinoski)
tuncer authored
89 .PHONY: regen
d07115c @klacke Several cleanups due to dialyzer, also moved the control file into us…
authored
90 regen:
bedbc05 @tuncer add rebar support (Tuncer Ayaz and Steve Vinoski)
tuncer authored
91 . ../vsn.mk ; \
92 YAWS_VSN='$(YAWS_VSN)' VARDIR='$(VARDIR)' ETCDIR='$(ETCDIR)' \
93 ../scripts/gen-yaws-generated false > yaws_generated.erl
53c6a29 @klacke svn migr
authored
94
bedbc05 @tuncer add rebar support (Tuncer Ayaz and Steve Vinoski)
tuncer authored
95 charset.def:
96 if [ -n "$(DEFAULT_CHARSET)" ]; then \
97 echo $(DEFAULT_CHARSET) > charset.def; \
98 else rm -f charset.def ; touch charset.def; fi
53c6a29 @klacke svn migr
authored
99
bedbc05 @tuncer add rebar support (Tuncer Ayaz and Steve Vinoski)
tuncer authored
100 mime_type_c.beam: mime_type_c.erl
101
102 mime_types.erl: mime.types charset.def mime_type_c.beam
103 $(ERL) -noshell -pa ../ebin -s mime_type_c compile
53c6a29 @klacke svn migr
authored
104
105 debug:
106 $(MAKE) TYPE=debug
107
108 clean:
bedbc05 @tuncer add rebar support (Tuncer Ayaz and Steve Vinoski)
tuncer authored
109 rm -f $(EBIN_FILES) yaws_generated.erl charset.def \
110 mime_types.erl yaws_configure.hrl
53c6a29 @klacke svn migr
authored
111
d07115c @klacke Several cleanups due to dialyzer, also moved the control file into us…
authored
112 install: regen all docsinstall
da61d09 @klacke cygwin install patch by Bill Robertsson
authored
113 $(INSTALL) -d $(DESTDIR)$(PREFIX)/lib/yaws/examples/ebin
114 $(INSTALL) -d $(DESTDIR)$(PREFIX)/lib/yaws/examples/include
115 $(INSTALL) -d $(DESTDIR)$(PREFIX)/lib/yaws/ebin
116 $(INSTALL) -d $(DESTDIR)$(PREFIX)/lib/yaws/priv
117 $(INSTALL) -d $(DESTDIR)$(VARDIR)/log/yaws
118 $(INSTALL) -d $(DESTDIR)$(VARDIR)/yaws/ebin
119 (cd ..; tar cf - ebin ) | (cd $(DESTDIR)$(PREFIX)/lib/yaws; tar xf - )
120 (cd ..; tar cf - include ) | (cd $(DESTDIR)$(PREFIX)/lib/yaws; tar xf - )
121 (cd ..; tar cf - priv/*.xsd ) | (cd $(DESTDIR)$(PREFIX)/lib/yaws; tar xf - )
53c6a29 @klacke svn migr
authored
122
123 docsinstall:
da61d09 @klacke cygwin install patch by Bill Robertsson
authored
124 $(INSTALL) -d $(DESTDIR)$(VARDIR)/yaws/www
125 (cd ..; tar cf - www ) | (cd $(DESTDIR)$(VARDIR)/yaws; tar xf - )
53c6a29 @klacke svn migr
authored
126
127 tags:
128 erl -noshell -pa ../ebin -s yaws_debug mktags
129
130 xref:
131 erl -noshell -pa ../ebin -s yaws_debug xref ../ebin
132
133
Something went wrong with that request. Please try again.