Makefile 426 Bytes
Newer Older
1
EXPAT_LIB=-L/usr/lib -lexpat
2
EXPAT_INC=-I /usr/include
3
4
5
6
7
8
9
10
11
12
13
14
15

libmlexpat.a: expat_stubs.o expat.cmo expat.cmx
	ocamlmklib -verbose -o mlexpat $^ $(EXPAT_LIB)

expat.cmo: expat.cmi expat.ml
	ocamlc -c expat.ml

expat.cmx: expat.cmi expat.ml
	ocamlopt -c expat.ml

expat.cmi: expat.mli
	ocamlc -c expat.mli

16
17
18
expat_stubs.o: expat_stubs.c
	ocamlc -c $(EXPAT_INC) expat_stubs.c

19
20
clean:
	rm -f *.o *.a *.so *.cmo *.cmx *.cmi *.cma *.cmxa