Release coccinelle-0.2.3rc3
[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
91eba41f 18all.opt: native-code-library pycaml.customtop
34e49164 19
91eba41f 20all: pycaml.customtop
34e49164 21
91eba41f
C
22pycaml.customtop: byte-code-library
23 cp -f dllpycaml_stubs.so ../
34e49164
C
24 ocamlmktop -o pycaml.customtop pycaml.cma
25
b1b2de81 26clean::
34e49164 27 rm -f pycaml.customtop
174d1640 28 rm -f *.cm[aiox] *.a
34e49164 29
b1b2de81
C
30distclean:: clean
31
34e49164
C
32depend: # added by julia, undoubtedly wrong
33
34-include $(OCAMLMAKEFILE)