blob: 48bee64f06a899460fdb12daf1857e7c0c86bfdb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
# Makefile for the ndbm library
include ../../config/Makefile
# Compilation optiosn
CC=$(BYTECC) -g
CAMLC=../../boot/ocamlrun ../../boot/ocamlc -I ../../stdlib
CAMLOPT=../../boot/ocamlrun ../../ocamlopt -I ../../stdlib
CFLAGS=-I../../byterun -O $(BYTECCCOMPOPTS)
COBJS=cldbm.o
all: libmldbm.a dbm.cmi dbm.cma
allopt: libmldbm.a dbm.cmi dbm.cmxa
libmldbm.a: $(COBJS)
rm -rf libmldbm.a
ar rc libmldbm.a $(COBJS)
$(RANLIB) libmldbm.a
dbm.cma: dbm.cmo
$(CAMLC) -a -o dbm.cma dbm.cmo
dbm.cmxa: dbm.cmx
$(CAMLOPT) -a -o dbm.cmxa dbm.cmx
partialclean:
rm -f *.cm*
clean: partialclean
rm -f *.a *.o
install:
cp libmldbm.a $(LIBDIR)/libmldbm.a
cd $(LIBDIR); $(RANLIB) libmldbm.a
cp dbm.cma dbm.cmi dbm.mli $(LIBDIR)
installopt:
cp dbm.cmx dbm.cmxa dbm.a $(LIBDIR)
cd $(LIBDIR); $(RANLIB) dbm.a
.SUFFIXES: .ml .mli .cmo .cmi .cmx
.mli.cmi:
$(CAMLC) -c $(COMPFLAGS) $<
.ml.cmo:
$(CAMLC) -c $(COMPFLAGS) $<
.ml.cmx:
$(CAMLOPT) -c $(COMPFLAGS) $<
depend:
../../boot/ocamlrun ../../tools/ocamldep *.mli *.ml > .depend
include .depend
|