# $Id: Makefile_user,v 1.4 2013/11/13 15:27:26 fclement Exp $

include ./.User_preamble.pph

include $(PPH_USER_MAKEFILES_DIR)/Environment.pph
include $(PPH_OCAML_APPLICATION_MAKEFILES_DIR)/Environment.pph

OCAML_GEN = output
OCAML_EXE_NAME = ocaml$(OCAML_GEN)c
SUB_PROJECT_DELIVERABLE_NAME = $(OCAML_EXE_NAME)
PROJECT_DELIVERABLE_NAME = $(SUB_PROJECT_DELIVERABLE_NAME)

# The default mode is not to fail on fragile matches.
# Uncomment the following line if you want to use the secure mode (all warnings
# are triggered and abort compilation).
OCAML_FLAGS = $(OCAML_FLAGS_STRICT)

# Uncomment the following lines, and modify them to your needs if you want to
# pre-process source files with HTMLC (note that the project environment
# ``config/project.env'' is already taken into account in the default
# HTMLC_INCLUDES and HTMLC_ENV variables).
#HTMLC_FLAGS =
#HTMLC_INCLUDES += -I ...
#HTMLC_ENV += -env ...

# Source and object file_name lists for OCaml are computed from:
# - OCAML_SOURCES_TO_PROCESS_WITH_HTMLC = .mliin and .mlin files;
# - OCAML_SOURCES_TO_PROCESS_WITH_MOCAC = .mlm and .mlms files;
# - OCAML_SOURCES_TO_PROCESS_WITH_OCAML_YAC = .mly files;
# - OCAML_SOURCES_TO_PROCESS_WITH_OCAML_LEX = .mll files;
# - OCAML_LINK_ORDER = modules in the order they must be compiled and linked.
#       They must be given in lowercase without any extension, i.e. with the
#       basename of their corresponding source files (do not list interface
#       only modules, i.e. with only an .mli);
# - OCAML_INTERFACE_ONLY_SOURCES = .mli files without corresponding .ml
#       (interface-only modules, for dependencies computation).

OCAML_LINK_ORDER = walk_$(OCAML_GEN) caml_$(OCAML_GEN)

# Uncomment and adjust the following line to specify the list of directories to
# search for already installed compiled files and libraries.
# Prefix each sub-directory of the standard library directory with "-I +"
# (other locations are not portable).
OCAML_SYSTEM_INCLUDES = $(OCAMLGEN_WALKER_SYSTEM_INCLUDES)

# The list of already installed compiled files and libraries to link with.
# (You may use provided WITH_* variables, and of course define your own ones).
OCAML_SYSTEM_BYT_LIBS = $(OCAMLGEN_WALKER_SYSTEM_BYT_LIBS)

# Uncomment and adjust the following line to specify the list of directories to
# search for in the ambient source hierarchy.
# Prefix each directory with "-I", and use relative paths or die!
OCAML_LOCAL_INCLUDES = $(OCAMLGEN_WALKER_LOCAL_INCLUDES)

# The list of local (= present in the ambient source hierarchy) compiled files
# and libraries to link with.
OCAML_LOCAL_BYT_LIBS = $(OCAMLGEN_WALKER_LOCAL_BYT_LIBS)

# The list of other byte object files to put in the library (source files are
# in another directory of the ambient source hierarchy).
#OCAML_OTHER_BYT_OBJS =

SUB_DIRS =

include $(PPH_USER_MAKEFILES_DIR)/Rule_Target.pph
include $(PPH_OCAML_APPLICATION_MAKEFILES_DIR)/Rule_Target.pph
