Separate rules for building bytecode & native code versions.
[virt-mem.git] / lib / Makefile.in
index bf1e36a..a21ebf7 100644 (file)
@@ -45,8 +45,6 @@ OCAMLOPTLIBS  = -linkpkg
 
 OCAMLDEPFLAGS  = $(SYNTAX)
 
-TARGETS                = virt_mem.cma virt_mem.cmxa
-
 OBJS           = virt_mem_gettext.cmo \
                  virt_mem_version.cmo \
                  virt_mem_kernels.cmo \
@@ -64,7 +62,11 @@ OBJS         = virt_mem_gettext.cmo \
 
 XOBJS          = $(OBJS:%.cmo=%.cmx)
 
-all:   $(TARGETS)
+all: byte opt
+
+byte: virt_mem.cma
+
+opt: virt_mem.cmxa
 
 virt_mem.cma: $(OBJS)
        ocamlmklib -o virt_mem $^