2 # Edit SYSLIBS to fit your system
6 PY_VERSION
=@PY_VERSION@
10 # The rest is automatic
14 -cclib
-L
$(PY_PREFIX
)/lib
/python
$(PY_VERSION
)/config \
15 -cclib
-lpython
$(PY_VERSION
) $(SYSLIBS
) \
16 unix.cma threads.cma pycaml.cmo
18 all: pycamltop pycamltest ocamlobj
20 pycamltop
: pycaml_ml.o pycaml.cmo
21 ocamlmktop
-thread
-custom
-o
$@
$(LIBS
)
23 pycaml_ml.o
: pycaml_ml.c
24 ocamlc
-thread
-ccopt
-c
-ccopt
-g \
25 -ccopt
-I
$(PY_PREFIX
)/include/python
$(PY_VERSION
) $<
30 pycamltest
: pycamltest.ml pycaml.cmo pycaml_ml.o
31 ocamlc
-custom
-thread
-ccopt
-g
$(LIBS
) pycamltest.ml
-o
$@
33 ocamlobj
: ocamlobj.ml pycaml.cmo pycaml_ml.o
34 ocamlc
-custom
-thread
-ccopt
-g
$(LIBS
) ocamlobj.ml
-o
$@
37 rm -rf
*.o
*.cmi
*.cmo pycamltop pycamltest ocamlobj
40 rm -rf config.cache autom4te.cache config.status Makefile