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$
|
|
|
|
|
1996-02-21 02:49:46 -08:00
|
|
|
!include ..\config\Makefile.nt
|
|
|
|
|
|
|
|
CC=$(NATIVECC)
|
|
|
|
CFLAGS=-I..\byterun -DNATIVE_CODE -DTARGET_$(ARCH) -DSYS_$(SYSTEM) $(NATIVECCCOMPOPTS)
|
|
|
|
|
1996-09-26 08:05:59 -07:00
|
|
|
COBJS=startup.obj main.obj fail.obj roots.obj signals.obj \
|
1996-02-26 05:52:15 -08:00
|
|
|
misc.obj freelist.obj major_gc.obj minor_gc.obj memory.obj alloc.obj \
|
|
|
|
compare.obj ints.obj floats.obj str.obj array.obj io.obj extern.obj \
|
|
|
|
intern.obj hash.obj sys.obj parsing.obj gc_ctrl.obj terminfo.obj \
|
2000-04-11 06:05:30 -07:00
|
|
|
md5.obj obj.obj lexing.obj win32.obj printexc.obj callback.obj \
|
2001-08-11 10:36:38 -07:00
|
|
|
weak.obj compact.obj finalise.obj custom.obj globroots.obj
|
1996-02-26 05:52:15 -08:00
|
|
|
|
1996-02-21 02:49:46 -08:00
|
|
|
ASMOBJS=$(ARCH)nt.obj
|
|
|
|
|
|
|
|
OBJS=$(COBJS) $(ASMOBJS)
|
|
|
|
|
|
|
|
all: libasmrun.lib
|
|
|
|
|
|
|
|
libasmrun.lib: $(OBJS)
|
|
|
|
rm -f libasmrun.lib
|
|
|
|
$(MKLIB)libasmrun.lib $(OBJS)
|
|
|
|
|
|
|
|
install:
|
|
|
|
cp libasmrun.lib $(LIBDIR)
|
|
|
|
|
1996-09-26 08:05:59 -07:00
|
|
|
main.c: ../byterun/main.c
|
|
|
|
cp ../byterun/main.c main.c
|
1996-02-26 05:52:15 -08:00
|
|
|
misc.c: ../byterun/misc.c
|
|
|
|
cp ../byterun/misc.c misc.c
|
|
|
|
freelist.c: ../byterun/freelist.c
|
|
|
|
cp ../byterun/freelist.c freelist.c
|
|
|
|
major_gc.c: ../byterun/major_gc.c
|
|
|
|
cp ../byterun/major_gc.c major_gc.c
|
|
|
|
minor_gc.c: ../byterun/minor_gc.c
|
|
|
|
cp ../byterun/minor_gc.c minor_gc.c
|
|
|
|
memory.c: ../byterun/memory.c
|
|
|
|
cp ../byterun/memory.c memory.c
|
|
|
|
alloc.c: ../byterun/alloc.c
|
|
|
|
cp ../byterun/alloc.c alloc.c
|
1998-04-06 02:09:22 -07:00
|
|
|
array.c: ../byterun/array.c
|
1998-05-11 11:42:59 -07:00
|
|
|
cp ../byterun/array.c array.c
|
1996-02-26 05:52:15 -08:00
|
|
|
compare.c: ../byterun/compare.c
|
|
|
|
cp ../byterun/compare.c compare.c
|
|
|
|
ints.c: ../byterun/ints.c
|
|
|
|
cp ../byterun/ints.c ints.c
|
|
|
|
floats.c: ../byterun/floats.c
|
|
|
|
cp ../byterun/floats.c floats.c
|
|
|
|
str.c: ../byterun/str.c
|
|
|
|
cp ../byterun/str.c str.c
|
|
|
|
io.c: ../byterun/io.c
|
|
|
|
cp ../byterun/io.c io.c
|
|
|
|
extern.c: ../byterun/extern.c
|
|
|
|
cp ../byterun/extern.c extern.c
|
|
|
|
intern.c: ../byterun/intern.c
|
|
|
|
cp ../byterun/intern.c intern.c
|
|
|
|
hash.c: ../byterun/hash.c
|
|
|
|
cp ../byterun/hash.c hash.c
|
|
|
|
sys.c: ../byterun/sys.c
|
|
|
|
cp ../byterun/sys.c sys.c
|
|
|
|
parsing.c: ../byterun/parsing.c
|
|
|
|
cp ../byterun/parsing.c parsing.c
|
|
|
|
gc_ctrl.c: ../byterun/gc_ctrl.c
|
|
|
|
cp ../byterun/gc_ctrl.c gc_ctrl.c
|
|
|
|
terminfo.c: ../byterun/terminfo.c
|
|
|
|
cp ../byterun/terminfo.c terminfo.c
|
|
|
|
md5.c: ../byterun/md5.c
|
|
|
|
cp ../byterun/md5.c md5.c
|
|
|
|
obj.c: ../byterun/obj.c
|
|
|
|
cp ../byterun/obj.c obj.c
|
|
|
|
lexing.c: ../byterun/lexing.c
|
|
|
|
cp ../byterun/lexing.c lexing.c
|
1996-11-07 05:12:16 -08:00
|
|
|
printexc.c: ../byterun/printexc.c
|
|
|
|
cp ../byterun/printexc.c printexc.c
|
1996-11-08 06:44:00 -08:00
|
|
|
callback.c: ../byterun/callback.c
|
|
|
|
cp ../byterun/callback.c callback.c
|
1997-03-05 02:48:39 -08:00
|
|
|
weak.c: ../byterun/weak.c
|
|
|
|
cp ../byterun/weak.c weak.c
|
1997-05-13 07:45:38 -07:00
|
|
|
compact.c: ../byterun/compact.c
|
|
|
|
cp ../byterun/compact.c compact.c
|
2000-01-07 08:51:58 -08:00
|
|
|
finalise.c: ../byterun/finalise.c
|
|
|
|
cp ../byterun/finalise.c finalise.c
|
2000-02-10 06:04:59 -08:00
|
|
|
custom.c: ../byterun/custom.c
|
|
|
|
cp ../byterun/custom.c custom.c
|
1997-11-17 02:39:01 -08:00
|
|
|
meta.c: ../byterun/meta.c
|
|
|
|
cp ../byterun/meta.c meta.c
|
2001-08-11 10:36:38 -07:00
|
|
|
globroots.c: ../byterun/globroots.c
|
|
|
|
cp ../byterun/globroots.c globroots.c
|
1996-09-26 08:05:59 -07:00
|
|
|
|
1998-04-06 02:09:22 -07:00
|
|
|
LINKEDFILES=misc.c freelist.c major_gc.c minor_gc.c memory.c alloc.c array.c \
|
1996-11-07 05:12:16 -08:00
|
|
|
compare.c ints.c floats.c str.c io.c extern.c intern.c hash.c sys.c \
|
1997-03-05 02:48:39 -08:00
|
|
|
parsing.c gc_ctrl.c terminfo.c md5.c obj.c lexing.c printexc.c callback.c \
|
2001-08-11 10:36:38 -07:00
|
|
|
weak.c compact.c meta.c custom.c main.c globroots.c
|
1996-11-08 06:44:00 -08:00
|
|
|
|
2000-04-21 05:41:08 -07:00
|
|
|
# Need special compilation rule so as not to do -I..\byterun
|
2000-04-11 06:05:30 -07:00
|
|
|
win32.obj: ../byterun/win32.c
|
2000-04-21 05:41:08 -07:00
|
|
|
$(CC) /c $(NATIVECCCOMPOPTS) -DNATIVE_CODE ..\byterun\win32.c
|
1996-11-07 05:12:16 -08:00
|
|
|
|
|
|
|
clean::
|
|
|
|
rm -f $(LINKEDFILES)
|
|
|
|
|
1996-02-21 02:49:46 -08:00
|
|
|
clean::
|
|
|
|
rm -f *.obj *.lib *~
|
|
|
|
|
|
|
|
depend:
|
|
|
|
sed -e "s/\.o/.obj/g" .depend > .depend.nt
|
|
|
|
|
|
|
|
!include .depend.nt
|