smock: add --overwrite option
[fedora-mingw.git] / ocaml-xml-light / mingw32-ocaml-xml-light-2.2-build.patch
1 --- Makefile.orig       2008-11-15 22:09:17.000000000 +0000
2 +++ Makefile    2008-11-15 22:10:32.000000000 +0000
3 @@ -2,7 +2,7 @@
4  # http://tech.motion-twin.com
5  .SUFFIXES : .ml .mli .cmo .cmx .cmi .mll .mly
6  
7 -INSTALLDIR=`ocamlc -where`
8 +INSTALLDIR=`ocamlopt -where`
9  CFLAGS=
10  LFLAGS= -a
11  LIBS=
12 @@ -33,13 +33,13 @@
13         ocamlc xml-light.cma test.ml -o test.exe
14         
15  test_opt.exe: xml-light.cmxa
16 -       ocamlopt xml-light.cmxa test.ml -o test_opt.exe
17 +       i686-pc-mingw32-ocamlopt xml-light.cmxa test.ml -o test_opt.exe
18  
19  xml-light.cma: xml_parser.cmo xml_lexer.cmo dtd.cmo xmlParser.cmo xml.cmo 
20         ocamlc -o xml-light.cma $(LFLAGS) $(LIBS) xml_parser.cmo xml_lexer.cmo dtd.cmo xmlParser.cmo xml.cmo
21  
22  xml-light.cmxa: xml_parser.cmx xml_lexer.cmx dtd.cmx xmlParser.cmx xml.cmx 
23 -       ocamlopt -o xml-light.cmxa $(LFLAGS) $(LIBS) xml_parser.cmx xml_lexer.cmx dtd.cmx xmlParser.cmx xml.cmx
24 +       i686-pc-mingw32-ocamlopt -o xml-light.cmxa $(LFLAGS) $(LIBS) xml_parser.cmx xml_lexer.cmx dtd.cmx xmlParser.cmx xml.cmx
25  
26  dtd.cmo: xml.cmi xml_lexer.cmi dtd.cmi
27  
28 @@ -84,10 +84,10 @@
29         ocamlc $(CFLAGS) -c $<
30  
31  .ml.cmx:
32 -       ocamlopt $(CFLAGS) -c $<
33 +       i686-pc-mingw32-ocamlopt $(CFLAGS) -c $<
34  
35  .mli.cmi:
36 -       ocamlc $(CFLAGS) $<
37 +       i686-pc-mingw32-ocamlopt $(CFLAGS) $<
38  
39  .mll.ml:
40         ocamllex $<