Commits

camlspotter committed 361ad7e

to 2.7

  • Participants
  • Parent commits 2f90eec

Comments (0)

Files changed (1)

 ################################################################## C BUILD RULE
 
 PY_PREFIX=/usr
-PY_VERSION=2.6
+PY_VERSION=2.7
 CFLAGS+= -fPIC -I $(OCAML_WHERE) -I $(PY_PREFIX)/include/python$(PY_VERSION)
 
 IDLS[] = 
 clean:
   rm -f $(filter-proper-targets $(ls R, .))
 
-MyOCamlPackage(opycaml, utils type autoapi api, auto_stubs api_ml, -lpython2.6 -L$(PREFIX)/lib/ocaml -lcamlidl)
+MyOCamlPackage(opycaml, utils type autoapi api, auto_stubs api_ml, -lpython$(PY_VERSION) -L$(PREFIX)/lib/ocaml -lcamlidl)
 
 opycaml_python.o: opycaml.cmx libopycaml.a dllopycaml.so
-	$(OCamlOpt) -output-obj -o $@ opycaml.cmx -cclib -lopycaml -ccopt -L$(OCAML_WHERE) -ccopt -Wl,-rpath,$(OCAML_WHERE) -cclib -lpython2.6 -cclib -lcamlidl 
+	$(OCamlOpt) -output-obj -o $@ opycaml.cmx -cclib -lopycaml -ccopt -L$(OCAML_WHERE) -ccopt -Wl,-rpath,$(OCAML_WHERE) -cclib -lpython$(PY_VERSION) -cclib -lcamlidl 
 
 .DEFAULT: opycaml.cma opycaml.cmxa opycaml_python.o