1999-11-17 10:59:06 -08:00
|
|
|
#########################################################################
|
|
|
|
# #
|
|
|
|
# Objective Caml #
|
|
|
|
# #
|
|
|
|
# Xavier Leroy, projet Cristal, INRIA Rocquencourt #
|
|
|
|
# #
|
|
|
|
# Copyright 1999 Institut National de Recherche en Informatique et #
|
|
|
|
# en Automatique. All rights reserved. This file is distributed #
|
|
|
|
# under the terms of the GNU Library General Public License. #
|
|
|
|
# #
|
|
|
|
#########################################################################
|
|
|
|
|
|
|
|
# $Id$
|
|
|
|
|
1998-02-23 04:42:23 -08:00
|
|
|
# Makefile for the ndbm library
|
|
|
|
|
|
|
|
include ../../config/Makefile
|
|
|
|
|
|
|
|
# Compilation optiosn
|
|
|
|
CC=$(BYTECC) -g
|
2000-02-05 04:16:09 -08:00
|
|
|
CAMLC=../../boot/ocamlrun ../../ocamlc -I ../../stdlib
|
1998-02-23 04:42:23 -08:00
|
|
|
CAMLOPT=../../boot/ocamlrun ../../ocamlopt -I ../../stdlib
|
|
|
|
CFLAGS=-I../../byterun -O $(BYTECCCOMPOPTS)
|
|
|
|
COBJS=dbstubs.o
|
|
|
|
|
|
|
|
all: libmldb.a db.cmi db.cma
|
|
|
|
|
|
|
|
allopt: libmldb.a db.cmi db.cmxa
|
|
|
|
|
|
|
|
libmldb.a: $(COBJS)
|
|
|
|
rm -rf libmldb.a
|
|
|
|
ar rc libmldb.a $(COBJS)
|
|
|
|
$(RANLIB) libmldb.a
|
|
|
|
|
|
|
|
db.cma: db.cmo
|
|
|
|
$(CAMLC) -a -o db.cma db.cmo
|
|
|
|
|
|
|
|
db.cmxa: db.cmx
|
|
|
|
$(CAMLOPT) -a -o db.cmxa db.cmx
|
|
|
|
|
|
|
|
partialclean:
|
|
|
|
rm -f *.cm*
|
|
|
|
|
|
|
|
clean: partialclean
|
|
|
|
rm -f *.a *.o
|
|
|
|
|
|
|
|
install:
|
|
|
|
cp libmldb.a $(LIBDIR)/libmldb.a
|
|
|
|
cd $(LIBDIR); $(RANLIB) libmldb.a
|
|
|
|
cp db.cma db.cmi db.mli $(LIBDIR)
|
|
|
|
|
|
|
|
installopt:
|
|
|
|
cp db.cmx db.cmxa db.a $(LIBDIR)
|
|
|
|
cd $(LIBDIR); $(RANLIB) db.a
|
|
|
|
|
|
|
|
.SUFFIXES: .ml .mli .cmo .cmi .cmx
|
|
|
|
|
|
|
|
.mli.cmi:
|
|
|
|
$(CAMLC) -c $(COMPFLAGS) $<
|
|
|
|
|
|
|
|
.ml.cmo:
|
|
|
|
$(CAMLC) -c $(COMPFLAGS) $<
|
|
|
|
|
|
|
|
.ml.cmx:
|
|
|
|
$(CAMLOPT) -c $(COMPFLAGS) $<
|
|
|
|
|
|
|
|
depend:
|
|
|
|
../../tools/ocamldep *.mli *.ml > .depend
|
|
|
|
|
|
|
|
include .depend
|