New upstream release
[pkg-ocaml-ocsigen.git] / Makefile.options
blob0f0aa4cd55fb3f72e46073d9354033696f454dd3
2 BYTEDBG :=
3 OPTDBG  :=
4 THREAD  :=
6 ifeq "$(DEBUG)" "YES"
7 BYTEDBG += -g
8 OPTDBG  += -g
9 endif
11 ifeq "$(ANNOT)" "YES"
12 BYTEDBG += -dtypes
13 OPTDBG  += -dtypes
14 endif
16 ifeq "$(PROFILING)" "YES"
17 BYTEDBG :=p ${BYTEDBG}
18 OPTDBG  += -p
19 endif
21 ifeq "$(PREEMPTIVE)" "YES"
22   THREAD += -thread
23 endif
25 ## ${SERVER_PACKAGE} is not only used to build the 'ocsigenserver' executable
26 ## but also to generate src/baselib/ocsigen_config.ml and src/files/META
28 LWT_EXTRA_PACKAGE :=
30 ifeq "$(PREEMPTIVE)" "YES"
31   LWT_EXTRA_PACKAGE += lwt.extra
32 endif
34 SERVER_PACKAGE := lwt.ssl           \
35                   ${LWT_EXTRA_PACKAGE} \
36                   netstring         \
37                   findlib           \
38                   cryptokit         \
39                   tyxml             \
40                   tyxml.parser      \
41                   dynlink           \
43 SERVER_SYNTAX :=  tyxml.syntax      \
45 INITPACKAGE := \"$(shell ${OCAMLFIND} query -p-format -recursive        \
46                                     -separator '\";\"' ${SERVER_PACKAGE})\"; \
47                \"${PROJECTNAME}.commandline\";  \
48                \"${PROJECTNAME}.polytables\";   \
49                \"${PROJECTNAME}.cookies\";      \
50                \"${PROJECTNAME}.baselib\";      \
51                \"${PROJECTNAME}.http\";         \
52                \"${PROJECTNAME}\";              \