--- /dev/null
+.PHONY: clean
+
+OCAMLFLAGS += -dtypes
+
+JSON_FILES[] =
+ json
+ json_parse
+ base_conv
+
+LIB = json
+JSON_LIB = $(OCamlLibrary $(LIB), $(JSON_FILES))
+
+section
+ TEST_PARSER_PROG = test_parser
+ OCAML_LIBS += json
+ TEST_PARSER = $(OCamlProgram $(TEST_PARSER_PROG), test_parser $(JSON_FILES))
+ export TEST_PARSER
+
+section
+ GEN_FILES = parser.mli parser.ml lexer.ml
+ OCamlGeneratedFiles($(GEN_FILES))
+ CONV_FILES[] =
+ lexer
+ parser
+ syntax
+ codegen
+ jsonc
+
+ JSON_CONV_PROG = jsonc
+ JSON_CONV = $(OCamlProgram $(JSON_CONV_PROG), $(CONV_FILES))
+ export JSON_CONV
+
+.DEFAULT: $(JSON_LIB) $(TEST_PARSER) $(JSON_CONV)
+
+clean:
+ rm -f $(filter-proper-targets $(ls R, .)) *.annot *.cmo
--- /dev/null
+open build/OCaml
+
+#
+# The command-line variables are defined *after* the
+# standard configuration has been loaded.
+#
+DefineCommandVars()
+
+#
+# Include the OMakefile in this directory.
+#
+.SUBDIRS: .