Source

hello / sql / OMakefile

Full commit
.PHONY: all install clean

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

# OCAMLINCLUDES +=

NATIVE_ENABLED = $(OCAMLOPT_EXISTS)
BYTE_ENABLED = $(not $(OCAMLOPT_EXISTS))

# OCAMLFLAGS    +=
# OCAMLCFLAGS   +=
# OCAMLOPTFLAGS +=
# OCAML_LINK_FLAGS +=
# OCAML_BYTE_LINK_FLAGS +=
# OCAML_NATIVE_LINK_FLAGS +=

OCamlGeneratedFiles(sql_parser.ml sql_lexer.ml)

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

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

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

FILES[] =
   main
   sql
   sql_parser
   sql_lexer

PROGRAM = sql
# OCAML_LIBS +=
# OCAML_CLIBS +=
# OCAML_OTHER_LIBS +=
# OCAML_LIB_FLAGS +=

.DEFAULT: $(OCamlProgram $(PROGRAM), $(FILES))
	./$(PROGRAM)