Coccinelle release-1.0.0-rc11
[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
b23ff9c7 12
34e49164 13CFLAGS = -fPIC
b23ff9c7
C
14ifeq ("$(PY_VERSION)","2.4")
15export CPPFLAGS =-DPYTHON24
16endif
34e49164
C
17
18LIBDIRS = $(PY_PREFIX)/lib/python$(PY_VERSION)/config
19INCDIRS = $(PY_PREFIX)/include/python$(PY_VERSION)
20OCAMLLDFLAGS = -linkall
21
91eba41f 22all.opt: native-code-library pycaml.customtop
34e49164 23
91eba41f 24all: pycaml.customtop
34e49164 25
91eba41f
C
26pycaml.customtop: byte-code-library
27 cp -f dllpycaml_stubs.so ../
34e49164
C
28 ocamlmktop -o pycaml.customtop pycaml.cma
29
b1b2de81 30clean::
34e49164 31 rm -f pycaml.customtop
174d1640 32 rm -f *.cm[aiox] *.a
34e49164 33
b1b2de81 34distclean:: clean
c491d8ee 35 rm -rf ._d
b23ff9c7 36 rm -f ../dllpycaml_stubs.so
b1b2de81 37
34e49164
C
38depend: # added by julia, undoubtedly wrong
39
40-include $(OCAMLMAKEFILE)