Commits

camlspotter committed a49616d

omymakefile update

  • Participants
  • Parent commits 97f568d

Comments (0)

Files changed (1)

 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