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