# -*- Makefile -*- #************************************************************************** #* * #* OCaml * #* * #* Xavier Leroy, projet Cristal, INRIA Rocquencourt * #* * #* Copyright 2002 Institut National de Recherche en Informatique et * #* en Automatique. * #* * #* All rights reserved. This file is distributed under the terms of * #* the GNU Lesser General Public License version 2.1, with the * #* special exception on linking described in the file LICENSE. * #* * #************************************************************************** # This file lists all standard library modules. # It is used by: # 1. stdlib/Makefile when building stdlib.cma # 2. Makefile to expunge the toplevels # 3. ocamldoc/Makefile.docfiles to compute all documentation files # which need to be generated for the stdlib # add stdlib__ as prefix to a module except for internal modules # and the stdlib module itself define add_stdlib_prefix $(or $(filter stdlib camlinternal%,$1), stdlib__$1) endef # Modules should be listed in dependency order. STDLIB_MODS=\ camlinternalFormatBasics camlinternalAtomic \ stdlib pervasives seq option either result bool char uchar \ sys list bytes string unit marshal obj array float int int32 int64 nativeint \ lexing parsing set map stack queue camlinternalLazy lazy stream buffer \ camlinternalFormat printf arg atomic \ printexc fun gc digest random hashtbl weak \ format scanf callback camlinternalOO oo camlinternalMod genlex ephemeron \ filename complex arrayLabels listLabels bytesLabels stringLabels moreLabels \ stdLabels bigarray STDLIB_MODULES=\ $(foreach module, $(STDLIB_MODS), $(call add_stdlib_prefix,$(module)))