# -*- 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 should be included after Makefile.common # 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. api_docgen/Makefile.docfiles to compute all documentation files which need # need to be generated for the stdlib # Three variables are exported: # $(STDLIB_MODULE_BASENAMES) - basenames, in dependency order, of the modules in # the stdlib # $(STDLIB_PREFIXED_MODULES) - just the namespaced modules of # $(STDLIB_MODULE_BASENAMES), i.e. without camlinternal* and stdlib. Used in # stdlib/Makefile to munge the dependencies. # $(STDLIB_MODULES) - full list, in prefixed form as appropriate. # Basenames of the source files for the standard library (i.e. unprefixed and # with lowercase first letters). These must be listed in dependency order. STDLIB_MODULE_BASENAMES = \ camlinternalFormatBasics \ stdlib \ either \ sys \ obj \ type \ atomic \ camlinternalLazy \ lazy \ seq \ option \ result \ bool \ char \ uchar \ list \ int \ bytes \ string \ unit \ marshal \ array \ float \ int32 \ int64 \ nativeint \ lexing \ parsing \ set \ map \ stack \ queue \ buffer \ mutex \ condition \ semaphore \ domain \ camlinternalFormat \ printf \ arg \ printexc \ fun \ gc \ digest \ bigarray \ random \ hashtbl \ weak \ format \ scanf \ callback \ camlinternalOO \ oo \ camlinternalMod \ ephemeron \ filename \ complex \ arrayLabels \ listLabels \ bytesLabels \ stringLabels \ moreLabels \ stdLabels \ in_channel \ out_channel \ effect STDLIB_PREFIXED_MODULES = \ $(filter-out stdlib camlinternal%, $(STDLIB_MODULE_BASENAMES)) # The pattern FOO = $(eval FOO := $$(shell )$(FOO) ensures that is # executed either once or not at all, giving us GNU make's equivalent of a # string lazy_t. STDLIB_MODULES = \ $(eval STDLIB_MODULES := $$(shell \ $(SAK) add-stdlib-prefix $(STDLIB_MODULE_BASENAMES)))$(STDLIB_MODULES)