]> rtime.felk.cvut.cz Git - l4.git/blob - l4/pkg/ocaml/ocaml/contrib/byterun/Makefile.nt
Update
[l4.git] / l4 / pkg / ocaml / ocaml / contrib / byterun / Makefile.nt
1 #########################################################################
2 #                                                                       #
3 #                            Objective Caml                             #
4 #                                                                       #
5 #            Xavier Leroy, projet Cristal, INRIA Rocquencourt           #
6 #                                                                       #
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.      #
11 #                                                                       #
12 #########################################################################
13
14 # $Id: Makefile.nt 9142 2008-11-26 13:26:53Z xleroy $
15
16 include Makefile.common
17
18 CFLAGS=-DOCAML_STDLIB_DIR='"$(LIBDIR)"' $(IFLEXDIR)
19
20 DBGO=d.$(O)
21 OBJS=$(COMMONOBJS:.o=.$(O)) win32.$(O) main.$(O)
22 DOBJS=$(OBJS:.$(O)=.$(DBGO)) instrtrace.$(DBGO)
23
24 ocamlrun$(EXE): libcamlrun.$(A) prims.$(O)
25         $(MKEXE) -o ocamlrun$(EXE) prims.$(O) $(call SYSLIB,ws2_32) $(EXTRALIBS) libcamlrun.$(A) 
26
27 ocamlrund$(EXE): libcamlrund.$(A) prims.$(O) main.$(O)
28         $(MKEXE) -o ocamlrun$(EXE) $(BYTECCDBGCOMPOPTS) prims.$(O) $(call SYSLIB,ws2_32) $(EXTRALIBS) libcamlrund.$(A)
29
30 libcamlrun.$(A): $(OBJS)
31         $(call MKLIB,libcamlrun.$(A),$(OBJS))
32
33 libcamlrund.$(A): $(DOBJS)
34         $(call MKLIB,libcamlrund.$(A),$(DOBJS))
35
36 .SUFFIXES: .$(O) .$(DBGO)
37
38 .c.$(O):
39         $(CC) $(CFLAGS) $(BYTECCCOMPOPTS) -c $<
40
41 .c.$(DBGO):
42         $(CC) $(CFLAGS) $(BYTECCDBGCOMPOPTS) -c $<
43         mv $*.$(O) $*.$(DBGO)
44
45 .depend.nt: .depend
46         rm -f .depend.win32
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
52         rm -f .depend.win32
53
54 include .depend.nt