1 let start = Unix.gettimeofday
();;
8 let jobs, targets
, dodeplist
, dotarlist
= getopt
();;
11 match getval key
with | None
-> failwith msg
| Some s
-> s
15 match getval key
with | None
-> def
| Some s
-> s
18 let srcdir = get "src" "no source dir";;
19 let cc = getdef "cc" "cc";;
20 let ccopt = getdef "ccopt" "";;
27 ("-cc " ^
cc ^
" -ccopt '" ^ flags ^
" " ^
ccopt ^
" -o " ^
o ^
"'")
30 [Filename.concat
srcdir c]
33 then StrSet.singleton
(Filename.concat
srcdir "vec.c")
40 let so = src ^
".so" in
41 let so = Filename.concat
(Sys.getcwd
()) so in
56 cmopp ~flags
:"-g -I +lablGL -thread" ~dirname
:srcdir src
)
57 ["xff"; "nto"; "nmo"; "slice"; "rend"; "vec"; "skb"; "qtr"; "anb"; "skin"]
61 let so = bso "swizzle" in
62 let so1 = bso "skin" in
66 ("-g -I +lablGL lablgl.cma lablglut.cma unix.cma")
68 (StrSet.singleton name
)
72 prog "dormin" ["slice.cmo"; "xff.cmo"; "nto.cmo"; "rend.cmo";
73 "vec.cmo"; "anb.cmo"; "skb.cmo"; "skin.cmo";
80 Helpers.run
start jobs targets dodeplist dotarlist