llvm.org GIT mirror llvm / 01b4ccb
Fix compiling the ocaml kaleidoscope tutorials git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@125202 91177308-0d34-0410-b5e6-96231b3b80d8 Erick Tryzelaar 8 years ago
3 changed file(s) with 25 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
7272 endif
7373
7474 # Source files
75 ifndef OcamlSources1
7576 OcamlSources1 := $(sort $(wildcard $(PROJ_SRC_DIR)/*.ml))
77 endif
78
79 ifndef OcamlHeaders1
7680 OcamlHeaders1 := $(sort $(wildcard $(PROJ_SRC_DIR)/*.mli))
81 endif
7782
7883 OcamlSources2 := $(filter-out $(ExcludeSources),$(OcamlSources1))
7984 OcamlHeaders2 := $(filter-out $(ExcludeHeaders),$(OcamlHeaders1))
351356 ifndef OCAMLOPT
352357 $(ToolEXE): $(ObjectsCMO) $(OcamlDir)/.dir
353358 $(Echo) "Archiving $(notdir $@) for $(BuildMode) build"
354 $(Verb) $(Archive.EXE) $@ $<
359 $(Verb) $(Archive.EXE) $@ $(ObjectsCMO)
355360 else
356361 $(ToolEXE): $(ObjectsCMX) $(OcamlDir)/.dir
357362 $(Echo) "Archiving $(notdir $@) for $(BuildMode) build"
358 $(Verb) $(Archive.EXE) $@ $<
363 $(Verb) $(Archive.EXE) $@ $(ObjectsCMX)
359364 endif
360365 endif
361366
1919
2020 OCAMLCFLAGS += -pp camlp4of
2121
22 OcamlSources1 = \
23 $(PROJ_SRC_DIR)/ast.ml \
24 $(PROJ_SRC_DIR)/parser.ml \
25 $(PROJ_SRC_DIR)/codegen.ml \
26 $(PROJ_SRC_DIR)/lexer.ml \
27 $(PROJ_SRC_DIR)/token.ml \
28 $(PROJ_SRC_DIR)/toplevel.ml \
29 $(PROJ_SRC_DIR)/toy.ml
30
2231 ExcludeSources = $(PROJ_SRC_DIR)/myocamlbuild.ml
2332
2433 include $(LEVEL)/bindings/ocaml/Makefile.ocaml
1919
2020 OCAMLCFLAGS += -pp camlp4of
2121
22 OcamlSources1 = \
23 $(PROJ_SRC_DIR)/ast.ml \
24 $(PROJ_SRC_DIR)/parser.ml \
25 $(PROJ_SRC_DIR)/codegen.ml \
26 $(PROJ_SRC_DIR)/lexer.ml \
27 $(PROJ_SRC_DIR)/token.ml \
28 $(PROJ_SRC_DIR)/toplevel.ml \
29 $(PROJ_SRC_DIR)/toy.ml
30
2231 ExcludeSources = $(PROJ_SRC_DIR)/myocamlbuild.ml
2332
2433 include $(LEVEL)/bindings/ocaml/Makefile.ocaml