1 PROGS
=gitgrep split_patch extract_c_and_res
#generate_dependencies
3 all: $(SUBDIRS
) $(PROGS
)
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
30 SYSLIBS
= str.cma unix.cma
32 INCLUDE
=-I ..
/commons
-I ..
/extra
-I ..
/parsing_c
33 LIBS
=..
/commons
/commons.cma ..
/globals
/globals.cma \
34 ..
/parsing_c
/parsing_c.cma ..
/extra
/extra.cma
36 OCAMLC
=ocamlc
$(OPTBIN
) -g
-dtypes
$(INCLUDE
)
37 OCAMLOPT
=ocamlopt
$(OPTBIN
) $(INCLUDE
) $(OPTFLAGS
)
38 #OCAMLLEX=ocamllex$(OPTBIN) -ml
39 OCAMLLEX
=ocamllex
$(OPTBIN
)
40 OCAMLYACC
=ocamlyacc
-v
41 OCAMLDEP
=ocamldep
$(OPTBIN
) #$(INCLUDE)
42 OCAMLMKTOP
=ocamlmktop
-g
-custom
$(INCLUDE
)
44 split_patch
: split_patch.cmo
45 $(OCAMLC
) -o
$@
$(SYSLIBS
) $(INCLUDE
) $(LIBS
) $+
47 extract_c_and_res
: extract_c_and_res.cmo
48 $(OCAMLC
) -o
$@
$(SYSLIBS
) $(INCLUDE
) $(LIBS
) $+
50 generate_dependencies
: generate_dependencies.cmo
51 $(OCAMLC
) -o
$@
$(SYSLIBS
) $(INCLUDE
) $(LIBS
) $+
53 .SUFFIXES
: .ml .mli .cmo .cmi .cmx
64 rm -f
*.cm
[ioxa
] *.o
*.a
*.cmxa
*.annot
69 ocamldep
$(INCLUDE
) *.mli
*.ml
> .depend