···164164$(foreach PROGRAM, $(OCAML_NATIVE_PROGRAMS),\
165165 $(eval $(call OCAML_NATIVE_PROGRAM,$(PROGRAM))))
166166167167+# OCaml libraries that are compiled in both bytecode and native code
168168+169169+# List of compilerlibs
170170+171171+COMPILERLIBS = $(addprefix compilerlibs/, \
172172+ ocamlbytecomp \
173173+ ocamlcommon \
174174+ ocamlmiddleend \
175175+ ocamloptcomp \
176176+ ocamltoplevel)
177177+178178+# Since the compiler libraries are necessarily compiled with boot/ocamlc,
179179+# make sure they *always are*, even when rebuilding a program compiled
180180+# with ./ocamlc (e.g. ocamltex)
181181+182182+$(COMPILERLIBS:=.cma): \
183183+ CAMLC = $(BOOT_OCAMLC) $(BOOT_STDLIBFLAGS) -use-prims runtime/primitives
184184+185185+# FIXME: how about making another target depend on $(ALL_CONFIG_CMO)?
186186+compilerlibs/ocamlcommon.cma: $(ALL_CONFIG_CMO)
187187+188188+OCAML_LIBRARIES = $(COMPILERLIBS)
189189+190190+$(foreach LIBRARY, $(OCAML_LIBRARIES),\
191191+ $(eval $(call OCAML_LIBRARY,$(LIBRARY))))
192192+193193+# OCaml libraries that are compiled only in bytecode
194194+195195+OCAML_BYTECODE_LIBRARIES =
196196+197197+$(foreach LIBRARY, $(OCAML_BYTECODE_LIBRARIES),\
198198+ $(eval $(call OCAML_BYTECODE_LIBRARY,$(LIBRARY))))
199199+200200+# OCaml libraries that are compiled only in native code
201201+202202+OCAML_NATIVE_LIBRARIES =
203203+204204+$(foreach LIBRARY, $(OCAML_NATIVE_LIBRARIES),\
205205+ $(eval $(call OCAML_NATIVE_LIBRARY,$(LIBRARY))))
206206+167207USE_RUNTIME_PRIMS = -use-prims ../runtime/primitives
168208USE_STDLIB = -nostdlib -I ../stdlib
169209···21502190 @echo " make install"
21512191 @echo "should work."
21522192 @false
21932193+21942194+# We need to express that all the CMX files depend on the native compiler,
21952195+# so that they get invalidated and rebuilt when the compiler is updated
21962196+# This dependency must appear after all the definitions of the
21972197+# _SOURCES variable so that GNU make's secondary expansion mechanism works
21982198+# This is why this dependency is kept at the very end of this file
21992199+22002200+$(ALL_CMX_FILES): ocamlopt$(EXE)