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