0.98
[imt.git] / OMakefile
blob3354056f4f9a10408bfe68d81d04717de38dd970
1 mods = cl dep dep7 drive driver link path utils wine
2 cmos = $(addsuffix .cmo, $(mods))
3 cmxs = $(addsuffix .cmx, $(mods))
4 objs = $(addsuffix $(obj), $(mods))
6 ocamlc-lflags =
8 switch $(profile)
9 case release
10     ocamlopt-cflags += -inline 10
11     export
12 case debug
13     ocamlc-cflags += -g
14     ocamlc-lflags += -g
15     export
17 imt.opt: $(cmxs) $(objs)
18     $(ocamlopt) -o $@ str.cmxa unix.cmxa $(caml-sort $(cmxs))
20 imt.byte: $(cmos)
21     $(ocamlc) $(ocamlc-lflags) -o $@ str.cma unix.cma $(caml-sort $(cmos))
23 all: imt.opt imt.byte