1 PROGS
=gitgrep split_patch extract_c_and_res
#generate_dependencies
9 ocamlopt
-o gitgrep str.cmxa gitgrep.ml
12 ocamlopt
-o gitsort str.cmxa gitsort.ml
14 isoprof
: process_isoprofile.ml
15 ocamlc
-g
-o isoprof str.cma process_isoprofile.ml
17 alloc_free
: alloc_free.ml
18 ocamlopt
-o alloc_free str.cmxa alloc_free.ml
20 # more flexible version of alloc_free
22 ocamlopt
-o bridge str.cmxa bridge.ml
24 install_bridge
: bridge
25 cp
-f bridge
/usr
/local
/bin
28 SYSLIBS
= str.cma unix.cma
30 INCLUDE
=-I ..
/commons
-I ..
/extra
-I ..
/parsing_c
31 LIBS
=..
/commons
/commons.cma ..
/globals
/globals.cma \
32 ..
/parsing_c
/parsing_c.cma ..
/extra
/extra.cma
34 OCAMLC
=ocamlc
$(OPTBIN
) -g
-dtypes
$(INCLUDE
)
35 OCAMLOPT
=ocamlopt
$(OPTBIN
) $(INCLUDE
) $(OPTFLAGS
)
36 #OCAMLLEX=ocamllex$(OPTBIN) -ml
37 OCAMLLEX
=ocamllex
$(OPTBIN
)
38 OCAMLYACC
=ocamlyacc
-v
39 OCAMLDEP
=ocamldep
$(OPTBIN
) $(INCLUDE
)
40 OCAMLMKTOP
=ocamlmktop
-g
-custom
$(INCLUDE
)
42 split_patch
: split_patch.cmo
43 $(OCAMLC
) -o
$@
$(SYSLIBS
) $(INCLUDE
) $(LIBS
) $+
45 extract_c_and_res
: extract_c_and_res.cmo
46 $(OCAMLC
) -o
$@
$(SYSLIBS
) $(INCLUDE
) $(LIBS
) $+
48 generate_dependencies
: generate_dependencies.cmo
49 $(OCAMLC
) -o
$@
$(SYSLIBS
) $(INCLUDE
) $(LIBS
) $+
57 .SUFFIXES
: .ml .mli .cmo .cmi .cmx
67 rm -f
*.cm
[ioxa
] *.o
*.a
*.cmxa
*.annot
73 ocamldep
$(INCLUDE
) *.mli
*.ml
> .depend