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 #
|
2001-12-07 05:41:02 -08:00
|
|
|
# under the terms of the GNU Library General Public License, with #
|
|
|
|
# the special exception on linking described in file ../LICENSE. #
|
1999-11-17 10:59:06 -08:00
|
|
|
# #
|
|
|
|
#########################################################################
|
|
|
|
|
|
|
|
# $Id$
|
|
|
|
|
2008-07-23 22:18:31 -07:00
|
|
|
include Makefile.shared
|
1995-05-04 03:15:53 -07:00
|
|
|
|
1998-11-06 07:39:18 -08:00
|
|
|
allopt: stdlib.cmxa std_exit.cmx allopt-$(PROFILING)
|
|
|
|
|
|
|
|
allopt-noprof:
|
|
|
|
|
|
|
|
allopt-prof: stdlib.p.cmxa std_exit.p.cmx
|
2004-06-13 05:47:32 -07:00
|
|
|
rm -f std_exit.p.cmi
|
1995-07-21 02:03:58 -07:00
|
|
|
|
1998-11-06 07:39:18 -08:00
|
|
|
installopt: installopt-default installopt-$(PROFILING)
|
|
|
|
|
|
|
|
installopt-default:
|
1995-10-26 09:25:03 -07:00
|
|
|
cp stdlib.cmxa stdlib.a std_exit.o *.cmx $(LIBDIR)
|
1998-11-06 07:39:18 -08:00
|
|
|
cd $(LIBDIR); $(RANLIB) stdlib.a
|
|
|
|
|
|
|
|
installopt-noprof:
|
1999-01-27 02:53:29 -08:00
|
|
|
rm -f $(LIBDIR)/stdlib.p.cmxa; ln -s stdlib.cmxa $(LIBDIR)/stdlib.p.cmxa
|
|
|
|
rm -f $(LIBDIR)/stdlib.p.a; ln -s stdlib.a $(LIBDIR)/stdlib.p.a
|
2002-06-05 05:08:38 -07:00
|
|
|
rm -f $(LIBDIR)/std_exit.p.cmx; \
|
|
|
|
ln -s std_exit.cmx $(LIBDIR)/std_exit.p.cmx
|
1999-01-27 02:53:29 -08:00
|
|
|
rm -f $(LIBDIR)/std_exit.p.o; ln -s std_exit.o $(LIBDIR)/std_exit.p.o
|
1998-11-06 07:39:18 -08:00
|
|
|
|
|
|
|
installopt-prof:
|
|
|
|
cp stdlib.p.cmxa stdlib.p.a std_exit.p.cmx std_exit.p.o $(LIBDIR)
|
|
|
|
cd $(LIBDIR); $(RANLIB) stdlib.p.a
|
1995-07-21 02:03:58 -07:00
|
|
|
|
1998-08-06 06:27:38 -07:00
|
|
|
stdlib.p.cmxa: $(OBJS:.cmo=.p.cmx)
|
2004-06-13 05:47:32 -07:00
|
|
|
$(CAMLOPT) -a -o stdlib.p.cmxa $(OBJS:.cmo=.p.cmx)
|
1998-08-06 06:27:38 -07:00
|
|
|
|
1998-06-01 07:53:28 -07:00
|
|
|
camlheader camlheader_ur: header.c ../config/Makefile
|
|
|
|
if $(SHARPBANGSCRIPTS); then \
|
1998-09-02 11:21:28 -07:00
|
|
|
echo '#!$(BINDIR)/ocamlrun' > camlheader && \
|
|
|
|
echo '#!' | tr -d '\012' > camlheader_ur; \
|
1998-06-01 07:53:28 -07:00
|
|
|
else \
|
2002-06-05 05:08:38 -07:00
|
|
|
$(BYTECC) $(BYTECCCOMPOPTS) $(BYTECCLINKOPTS) \
|
|
|
|
-DRUNTIME_NAME='"$(BINDIR)/ocamlrun"' \
|
|
|
|
header.c -o tmpheader$(EXE) && \
|
2000-08-10 02:58:08 -07:00
|
|
|
strip tmpheader$(EXE) && \
|
|
|
|
mv tmpheader$(EXE) camlheader && \
|
1998-06-01 07:53:28 -07:00
|
|
|
cp camlheader camlheader_ur; \
|
1997-03-04 02:21:27 -08:00
|
|
|
fi
|
1995-05-04 03:15:53 -07:00
|
|
|
|
2007-11-22 14:14:43 -08:00
|
|
|
.PHONY: all allopt allopt-noprof allopt-prof install installopt
|
|
|
|
.PHONY: installopt-default installopt-noprof installopt-prof clean depend
|