1 #########################################################################
5 # Xavier Leroy, projet Cristal, INRIA Rocquencourt #
7 # Copyright 1999 Institut National de Recherche en Informatique et #
8 # en Automatique. All rights reserved. This file is distributed #
9 # under the terms of the GNU Library General Public License, with #
10 # the special exception on linking described in file ../LICENSE. #
12 #########################################################################
14 # $Id: Makefile.nt 9142 2008-11-26 13:26:53Z xleroy $
16 include Makefile.common
18 CFLAGS=-DOCAML_STDLIB_DIR='"$(LIBDIR)"' $(IFLEXDIR)
21 OBJS=$(COMMONOBJS:.o=.$(O)) win32.$(O) main.$(O)
22 DOBJS=$(OBJS:.$(O)=.$(DBGO)) instrtrace.$(DBGO)
24 ocamlrun$(EXE): libcamlrun.$(A) prims.$(O)
25 $(MKEXE) -o ocamlrun$(EXE) prims.$(O) $(call SYSLIB,ws2_32) $(EXTRALIBS) libcamlrun.$(A)
27 ocamlrund$(EXE): libcamlrund.$(A) prims.$(O) main.$(O)
28 $(MKEXE) -o ocamlrun$(EXE) $(BYTECCDBGCOMPOPTS) prims.$(O) $(call SYSLIB,ws2_32) $(EXTRALIBS) libcamlrund.$(A)
30 libcamlrun.$(A): $(OBJS)
31 $(call MKLIB,libcamlrun.$(A),$(OBJS))
33 libcamlrund.$(A): $(DOBJS)
34 $(call MKLIB,libcamlrund.$(A),$(DOBJS))
36 .SUFFIXES: .$(O) .$(DBGO)
39 $(CC) $(CFLAGS) $(BYTECCCOMPOPTS) -c $<
42 $(CC) $(CFLAGS) $(BYTECCDBGCOMPOPTS) -c $<
47 echo "win32.o: win32.c fail.h compatibility.h misc.h config.h \\" >> .depend.win32
48 echo " ../config/m.h ../config/s.h mlvalues.h memory.h gc.h \\" >> .depend.win32
49 echo " major_gc.h freelist.h minor_gc.h osdeps.h signals.h" >> .depend.win32
50 cat .depend >> .depend.win32
51 sed -e '/\.d\.o/q' -e 's/^\(.*\)\.o:/\1.$$(O) \1.$$(DBGO):/' .depend.win32 > .depend.nt