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$
|
|
|
|
|
1996-05-15 07:18:46 -07:00
|
|
|
# Makefile for the ndbm library
|
|
|
|
|
|
|
|
include ../../config/Makefile
|
|
|
|
|
|
|
|
# Compilation optiosn
|
1996-05-30 04:10:21 -07:00
|
|
|
CC=$(BYTECC) -g
|
2000-02-05 04:16:09 -08:00
|
|
|
CAMLC=../../boot/ocamlrun ../../ocamlc -I ../../stdlib
|
1996-06-12 07:28:23 -07:00
|
|
|
CAMLOPT=../../boot/ocamlrun ../../ocamlopt -I ../../stdlib
|
2001-08-28 07:47:48 -07:00
|
|
|
MKLIB=../../tools/ocamlmklib
|
|
|
|
|
|
|
|
CFLAGS=$(DBM_INCLUDES) -I../../byterun -O $(BYTECCCOMPOPTS) $(SHAREDCCCOMPOPTS)
|
1997-07-15 07:31:29 -07:00
|
|
|
COBJS=cldbm.o
|
1996-06-12 07:28:23 -07:00
|
|
|
|
1996-05-15 07:18:46 -07:00
|
|
|
all: libmldbm.a dbm.cmi dbm.cma
|
|
|
|
|
1996-06-12 07:28:23 -07:00
|
|
|
allopt: libmldbm.a dbm.cmi dbm.cmxa
|
1996-05-15 07:18:46 -07:00
|
|
|
|
|
|
|
libmldbm.a: $(COBJS)
|
2001-08-28 07:47:48 -07:00
|
|
|
$(MKLIB) -oc mldbm $(COBJS) $(DBM_LINK)
|
1996-05-15 07:18:46 -07:00
|
|
|
|
|
|
|
dbm.cma: dbm.cmo
|
2001-08-28 07:47:48 -07:00
|
|
|
$(MKLIB) -ocamlc '$(CAMLC)' -o dbm -oc mldbm dbm.cmo $(DBM_LINK)
|
1996-05-15 07:18:46 -07:00
|
|
|
|
1996-06-12 07:28:23 -07:00
|
|
|
dbm.cmxa: dbm.cmx
|
2001-08-28 07:47:48 -07:00
|
|
|
$(MKLIB) -ocamlopt '$(CAMLOPT)' -o dbm dbm.cmx $(DBM_LINK)
|
1996-06-12 07:28:23 -07:00
|
|
|
|
1997-02-16 05:36:42 -08:00
|
|
|
partialclean:
|
1996-05-15 07:18:46 -07:00
|
|
|
rm -f *.cm*
|
|
|
|
|
1997-02-16 05:36:42 -08:00
|
|
|
clean: partialclean
|
1996-06-12 07:28:23 -07:00
|
|
|
rm -f *.a *.o
|
1996-05-15 07:18:46 -07:00
|
|
|
|
|
|
|
install:
|
2001-10-05 19:24:45 -07:00
|
|
|
if test -f libmldbm.so; then cp libmldbm.so $(LIBDIR)/libmldbm.so; fi
|
1996-05-15 07:18:46 -07:00
|
|
|
cp libmldbm.a $(LIBDIR)/libmldbm.a
|
|
|
|
cd $(LIBDIR); $(RANLIB) libmldbm.a
|
1997-07-30 05:29:46 -07:00
|
|
|
cp dbm.cma dbm.cmi dbm.mli $(LIBDIR)
|
1996-05-15 07:18:46 -07:00
|
|
|
|
1996-06-12 07:28:23 -07:00
|
|
|
installopt:
|
|
|
|
cp dbm.cmx dbm.cmxa dbm.a $(LIBDIR)
|
|
|
|
cd $(LIBDIR); $(RANLIB) dbm.a
|
|
|
|
|
1996-05-15 07:18:46 -07:00
|
|
|
.SUFFIXES: .ml .mli .cmo .cmi .cmx
|
|
|
|
|
|
|
|
.mli.cmi:
|
|
|
|
$(CAMLC) -c $(COMPFLAGS) $<
|
|
|
|
|
|
|
|
.ml.cmo:
|
|
|
|
$(CAMLC) -c $(COMPFLAGS) $<
|
|
|
|
|
1996-06-12 07:28:23 -07:00
|
|
|
.ml.cmx:
|
|
|
|
$(CAMLOPT) -c $(COMPFLAGS) $<
|
|
|
|
|
1996-05-15 07:18:46 -07:00
|
|
|
depend:
|
1998-04-21 09:09:03 -07:00
|
|
|
../../boot/ocamlrun ../../tools/ocamldep *.mli *.ml > .depend
|
1996-05-15 07:18:46 -07:00
|
|
|
|
|
|
|
include .depend
|