Release coccinelle-0.2.3rc2
[bpt/coccinelle.git] / pycaml / Makefile.in
1 #
2 # Edit SYSLIBS to fit your system
3 #
4
5 PY_PREFIX=@PY_PREFIX@
6 PY_VERSION=@PY_VERSION@
7 SYSLIBS=@PY_LIBS@
8
9 #
10 # The rest is automatic
11 #
12
13 LIBS= pycaml_ml.o \
14 -cclib -L$(PY_PREFIX)/lib/python$(PY_VERSION)/config \
15 -cclib -lpython$(PY_VERSION) $(SYSLIBS) \
16 unix.cma threads.cma pycaml.cmo
17
18 all: pycamltop pycamltest ocamlobj
19
20 pycamltop: pycaml_ml.o pycaml.cmo
21 ocamlmktop -thread -custom -o $@ $(LIBS)
22
23 pycaml_ml.o: pycaml_ml.c
24 ocamlc -thread -ccopt -c -ccopt -g \
25 -ccopt -I$(PY_PREFIX)/include/python$(PY_VERSION) $<
26
27 pycaml.cmo: pycaml.ml
28 ocamlc -thread -c $<
29
30 pycamltest: pycamltest.ml pycaml.cmo pycaml_ml.o
31 ocamlc -custom -thread -ccopt -g $(LIBS) pycamltest.ml -o $@
32
33 ocamlobj: ocamlobj.ml pycaml.cmo pycaml_ml.o
34 ocamlc -custom -thread -ccopt -g $(LIBS) ocamlobj.ml -o $@
35
36 clean:
37 rm -rf *.o *.cmi *.cmo pycamltop pycamltest ocamlobj
38
39 distclean: clean
40 rm -rf config.cache autom4te.cache config.status Makefile