Makefile 764 B

1234567891011121314151617181920212223242526272829303132333435
  1. # Makefile contributed by Alain Frisch
  2. OCAMLOPT=ocamlopt
  3. OCAMLC=ocamlc
  4. MODULES = \
  5. multiArray rbuffer uCharExt uTF8
  6. # the list is topologically sorted
  7. MLI = $(MODULES:=.mli)
  8. SRC = $(MLI) $(MODULES:=.ml)
  9. all: bytecode native
  10. opt: native
  11. bytecode: extlib-leftovers.cma
  12. native: extlib-leftovers.cmxa
  13. extlib-leftovers.cma: $(SRC)
  14. $(OCAMLC) -safe-string -a -o extlib-leftovers.cma $(SRC)
  15. extlib-leftovers.cmxa: $(SRC)
  16. $(OCAMLOPT) -safe-string -g -a -o extlib-leftovers.cmxa $(SRC)
  17. clean:
  18. rm -f $(wildcard *.cmo) $(wildcard *.cmx) $(wildcard *.o) $(wildcard *.cmi) $(wildcard *.cma) $(wildcard *.cmxa) $(wildcard *.a) $(wildcard *.lib) $(wildcard *.obj)
  19. rm -Rf doc
  20. .PHONY: all opt bytecode native doc copy install uninstall clean
  21. Makefile: ;
  22. $(SRC): ;