1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
|
include ../config.mk
all: copy_file close_all_fds_except unlink watch_bug dotdot
copy_file: copy_file.cmo
$(OCAMLC) -linkpkg -custom -o $@ $<
close_all_fds_except: close_all_fds_except.cmx
$(OCAMLOPT) -linkpkg -o $@ $<
unlink: unlink.cmo
$(OCAMLC) -linkpkg -custom -o $@ $<
watch_bug: watch_bug.cmo
$(OCAMLC) -linkpkg -custom -o $@ $<
dotdot: dotdot.cmo
$(OCAMLC) -linkpkg -custom -o $@ $<
clean:
rm -f *.o *.so *.a *.cmo *.cmi *.cma *.cmx *.cmxa *.annot $(SPOT) copy_file
%.cmo: %.ml
$(OCAMLC) -c -o $@ $<
%.cmx: %.ml
$(OCAMLOPT) -c -o $@ $<
|