Source

ollio / OMakefile

.PHONY: all install clean

clean:
	rm -rf $(filter-proper-targets $(ls R, .))

# .SUBDIRS:


USE_OCAMLFIND = true

# OCAMLPACKS[] =
#    pack1
#    pack2
#
if $(not $(OCAMLFIND_EXISTS))
    eprintln(This project requires ocamlfind\, but is was not found.)
    eprintln(You need to install ocamlfind and run "omake --configure".)
    exit 1

#
# Include path
#
# OCAMLINCLUDES +=

#
# Compile native or byte code? 
#
# The default values are defined as follows:
#
NATIVE_ENABLED = $(OCAMLOPT_EXISTS)
BYTE_ENABLED = $(not $(OCAMLOPT_EXISTS))

#
# Various options
#
# OCAMLFLAGS    +=
# OCAMLCFLAGS   +=
OCAMLOPTFLAGS += -p
# OCAML_LINK_FLAGS +=
# OCAML_BYTE_LINK_FLAGS +=
# OCAML_NATIVE_LINK_FLAGS +=

################################################
# Generated files
#
# Workaround for the fact that ocamldep does not pay attention to .mll
# and .mly files.
#
# OCamlGeneratedFiles(parser.ml lexer.ml)

################################################
# Build an OCaml library
#

# FILES[] =
#    file1
#    file2
#
# LIB = main
#
# .DEFAULT: $(OCamlLibrary $(LIB), $(FILES))

################################################
# Build an OCaml program
#

FILES[] =
   vector
   oll
   main

PROGRAM = mlml
OCAML_LIBS +=
OCAML_CLIBS +=
OCAML_OTHER_LIBS += str
OCAML_LIB_FLAGS +=

.DEFAULT: $(OCamlProgram $(PROGRAM), $(FILES))
#	./$(PROGRAM) test.data