Release coccinelle-0.1.2
[bpt/coccinelle.git] / pycaml / Makefile
CommitLineData
34e49164
C
1#pad: was called Makefile.deb-pycaml before
2
3OCAMLMAKEFILE = OCamlMakefile
4PY_PREFIX = $(shell python getprefix.py)
5PY_VERSION = $(shell python getversion.py)
6CLIBS = python$(PY_VERSION) pthread dl util m c
7
8SOURCES = pycaml.ml pycaml_ml.c
9RESULT = pycaml
10THREADS = yes
11NO_CUSTOM = NO_CUSTOM
12CFLAGS = -fPIC
13
14LIBDIRS = $(PY_PREFIX)/lib/python$(PY_VERSION)/config
15INCDIRS = $(PY_PREFIX)/include/python$(PY_VERSION)
16OCAMLLDFLAGS = -linkall
17
18all.opt: native-code-library byte-code-library pycaml.customtop
19 cp -f dllpycaml_stubs.so ../
20
21all: byte-code-library pycaml.customtop
22 cp -f dllpycaml_stubs.so ../
23
24pycaml.customtop: pycaml.cma
25 ocamlmktop -o pycaml.customtop pycaml.cma
26
27clean::
28 rm -f pycaml.customtop
29
30depend: # added by julia, undoubtedly wrong
31
32-include $(OCAMLMAKEFILE)