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$
|
|
|
|
|
2007-11-06 07:16:56 -08:00
|
|
|
include Makefile.common
|
1996-02-21 02:49:46 -08:00
|
|
|
|
2007-11-15 05:21:15 -08:00
|
|
|
CFLAGS=-DOCAML_STDLIB_DIR='"$(LIBDIR)"' $(IFLEXDIR)
|
1996-02-21 02:49:46 -08:00
|
|
|
|
2007-11-06 07:16:56 -08:00
|
|
|
DBGO=d.$(O)
|
2007-11-13 09:18:25 -08:00
|
|
|
OBJS=$(COMMONOBJS:.o=.$(O)) win32.$(O) main.$(O)
|
|
|
|
DOBJS=$(OBJS:.$(O)=.$(DBGO)) instrtrace.$(DBGO)
|
2002-06-07 02:49:45 -07:00
|
|
|
|
2007-11-13 09:18:25 -08:00
|
|
|
ocamlrun$(EXE): libcamlrun.$(A) prims.$(O)
|
2007-11-15 05:21:15 -08:00
|
|
|
$(MKEXE) -o ocamlrun$(EXE) prims.$(O) libcamlrun.$(A)
|
2006-05-09 09:04:49 -07:00
|
|
|
|
2007-11-06 07:16:56 -08:00
|
|
|
ocamlrund$(EXE): libcamlrund.$(A) prims.$(O) main.$(O)
|
2007-11-15 05:21:15 -08:00
|
|
|
$(MKEXE) -o ocamlrun$(EXE) $(BYTECCDBGCOMPOPTS) prims.$(O) libcamlrund.$(A)
|
1996-02-21 02:49:46 -08:00
|
|
|
|
2007-11-06 07:16:56 -08:00
|
|
|
libcamlrun.$(A): $(OBJS)
|
|
|
|
$(call MKLIB,libcamlrun.$(A),$(OBJS))
|
1996-02-21 02:49:46 -08:00
|
|
|
|
2007-11-06 07:16:56 -08:00
|
|
|
libcamlrund.$(A): $(DOBJS)
|
|
|
|
$(call MKLIB,libcamlrund.$(A),$(DOBJS))
|
1998-04-20 05:41:00 -07:00
|
|
|
|
2007-11-06 07:16:56 -08:00
|
|
|
.SUFFIXES: .$(O) .$(DBGO)
|
2002-06-07 02:49:45 -07:00
|
|
|
|
2007-11-06 07:16:56 -08:00
|
|
|
.c.$(O):
|
2001-08-28 07:47:48 -07:00
|
|
|
$(CC) $(CFLAGS) $(BYTECCCOMPOPTS) -c $<
|
2007-11-06 07:16:56 -08:00
|
|
|
|
2006-05-09 09:04:49 -07:00
|
|
|
.c.$(DBGO):
|
|
|
|
$(CC) $(CFLAGS) $(BYTECCDBGCOMPOPTS) -c $<
|
|
|
|
mv $*.$(O) $*.$(DBGO)
|
2001-08-28 07:47:48 -07:00
|
|
|
|
2006-01-04 08:55:50 -08:00
|
|
|
.depend.nt: .depend
|
2007-11-06 07:16:56 -08:00
|
|
|
rm -f .depend.win32
|
|
|
|
echo "win32.o: win32.c fail.h compatibility.h misc.h config.h \\" >> .depend.win32
|
|
|
|
echo " ../config/m.h ../config/s.h mlvalues.h memory.h gc.h \\" >> .depend.win32
|
|
|
|
echo " major_gc.h freelist.h minor_gc.h osdeps.h signals.h" >> .depend.win32
|
|
|
|
cat .depend >> .depend.win32
|
|
|
|
sed -e '/\.d\.o/q' -e 's/^\(.*\)\.o:/\1.$$(O) \1.$$(DBGO):/' .depend.win32 > .depend.nt
|
|
|
|
rm -f .depend.win32
|
1996-02-21 02:49:46 -08:00
|
|
|
|
2002-06-07 02:49:45 -07:00
|
|
|
include .depend.nt
|