File: Makefile

package info (click to toggle)
xen-api-libs 0.5.2-3
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 1,940 kB
  • sloc: ml: 13,925; sh: 2,930; ansic: 1,699; makefile: 1,240; python: 83
file content (29 lines) | stat: -rw-r--r-- 562 bytes parent folder | download
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 $@ $<