Commits

camlspotter committed d199910

omake update

Comments (0)

Files changed (2)

 BYTE_ENABLED = true
 
 ######################### Compiler
+
+OCAMLFLAGS = -w A-4-9 -warn-error A-4-9
+
 OCAMLPACKAGEFLAGS=
 
 # Why we need "public." ?
   .DEFAULT: $(library_name).cmo $(library_name).cmx $(library_name).cma $(library_name).cmxa $(MyOCamlPackageExtras)
 
   $(CMA) $(CMXA) $(library_name).a $(CSTUBLIBRARIES) : $(CSTUBS) $(CMOS) $(CMXS)
-      ocamlmklib -verbose -o $(library_name) $(CSTUBS) $(linkopts) $(CMOS) $(CMXS)
+      if $(not $(equal $(cmodules), $(EMPTY)))
+          ocamlmklib -verbose -o $(library_name) $(CSTUBS) $(linkopts) $(CMOS) $(CMXS)
+      else
+          $(OCamlC) -a -o $(CMA) $(CMOS)
+          $(OCamlOpt) -a -o $(CMXA) $(CMXS)
 
   ## the followings are necessary for packing
 
 OCAML_NATIVE_LINK_FLAGS += planck.cmx
 
 CAMLP4PACKS[]=
+    sexplib
 
 OCAMLPACKS[]= 
     sexplib