#----------------------------------------------------------------------
# Build the goals tool itself.
+let CC = "@CC@"
+let OCAMLLIB = "@OCAMLLIB@"
let MENHIR = "@MENHIR@"
let OCAMLDEP = "@OCAMLDEP@"
let OCAMLFIND = "@OCAMLFIND@"
let OCAMLLEX = "@OCAMLLEX@"
# XXX
+let CFLAGS = [ "-g", "-O2", "-I%OCAMLLIB", "-I." ]
+#let CFLAGS = "@CFLAGS@ -I%OCAMLLIB -I."
let OCAMLFLAGS = [ "-g", "-safe-string", "-warn-error", "CDEFLMPSUVYZX+52-3" ]
let OCAMLPACKAGES = [ "-package", "str,unix,threads", "-I", "src", "-thread" ]
#let OCAMLFLAGS = "@OCAMLFLAGS@"
let objects = [
# These must be in dependency order.
"src/config.cmx",
+ "src/utils-c.o",
"src/utils.cmx",
"src/cmdline.cmx",
"src/jobs.cmx",
goal tool = : ocaml_link ("src/goals", objects) ;
+# C code.
+"src/utils-c.o" : "src/utils-c.c" {
+ %CC %CFLAGS -c %< -o %@
+}
+
# Parser.
"src/parser.mli", "src/parser.ml" : "src/parser.mly" {
%MENHIR --explain %<