The list of prerequisites in INSTALL.adoc was not quite complete.
This PR adds the missing requirements and removes some requirements that are no longer relevant.
This commit makes it possible to build the OCaml compiler according to
its configuration by simply runnning make. There is no need to specify
neither world nor world.opt explicitly, although the two targets
remain available.
This commit also introduces (and starts making use of) the
NATIVE_COMPILER build variable whosse value is true when the native
compiler is enabled and false otherwise.
This commit removes the remaining traces of support
for the Power/PowerPC architecture with OS other than Linux.
ocamlopt stopped supporting those configurations in 2014,
see commit 8815d7e and following.
The Graphics library is now distributed as a separate package.
The sources are at https://github.com/ocaml/graphics .
Signed-off-by: Jeremie Dimino <jeremie@dimino.org>
In order to prepare the transition to autoconf, this commit moves the
configuration Makefile out of the config directory which will disappear
and gives it the name it will have once intstalled, namely Makefile.config.
This commit renames a few C compiler related build variables so that
they are reserved for the build system. They will then be re-introduced,
but this time as user varialbes whose value can be freely customized
when compiling the package, without risking to conflict with those
command-line flags that are required by the build system itself.
Here are the variables this commit renames:
- CFLAGS -> OC_CFLAGS
- CPPFLAGS -> OC_CPPFLAGS
- LDFLAGS -> OC_LDFLAGS
Note: before this commit the compilation of scheduler.c in
otherlibs/threads was relying on make's implicit rule to compile C files.
Since this commit stops using the standard variables for flags,
it is necessary to introduce an explicit rule to compile C files
and that makes use of the newly introduced variables.
* Remove the now obsolete comments at the beginning of the main Makefile
* Move and fix documentation of the bootstrap from INSTALL to
HACKING-bootstrap.adoc
* Update install instructions
This commit moves:
- config/m.h to byterun/caml/m.h
- config/s.h to byterun/caml/s.h
Consequently, m.h and s.h now get installed alongside other
OCaml header files.
This commit also updates the .depend files, introducing updates in the
dependencies which are not consequences of this commit itself.
In the interest of keeping HACKING.adoc not-too-long and
general-purpose, advice on modifying specific sub-systems of the
compiler distribution should be moved to the directory of this
sub-system.
This PR also clarifies the relations between the README, INSTALL,
HACKING and CONTRIBUTING documents.
Hint: it is used in the toplevel to highlight errors using something nicer
than a bunch of (slightly-misaligned) '^' on a new line.
NB: $curseslibs ends up in $BYTECCLIBS and we probably link against curses
in the bytecode runtime while we only need it for the toplevel.
Cygwin is a flavour of Unix. Coupled with the fact that it is built
using the normal Unix configure route, it adds to the confusion of the
Windows ports (especially the fact that the four native ports need a
Cygwin environment to be compiled) including its instructions in the
native port.
Various out-of-date instructions also removed: Cygwin hasn't provided
GCC 4.5.3 for a long time and FlexDLL can be recompiled from sources
without alteration since version 0.32.