1 #########################################################################
5 # Xavier Leroy, projet Cristal, INRIA Rocquencourt #
7 # Copyright 2001 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 #########################################################################
16 include ..
/config
/Makefile
19 CFLAGS
=$(BYTECCCOMPOPTS
)
21 OBJS
=startocaml.
$(O
) ocamlres.
$(O
) ocaml.
$(O
) menu.
$(O
) \
22 history.
$(O
) editbuffer.
$(O
)
24 LIBS
=$(call SYSLIB
,kernel32
) $(call SYSLIB
,advapi32
) $(call SYSLIB
,gdi32
) \
25 $(call SYSLIB
,user32
) $(call SYSLIB
,comdlg32
) $(call SYSLIB
,comctl32
)
30 $(call MKEXE
,ocamlwin.exe
,$(OBJS
) $(LIBS
) $(EXTRALIBS
))
32 ocamlres.
$(O
): ocaml.rc ocaml.ico
33 ifeq ($(TOOLCHAIN
),msvc
)
36 cvtres
/nologo
/machine
:amd64
/out
:$@ ocaml.res
38 cvtres
/nologo
/machine
:ix86
/out
:$@ ocaml.res
42 ifeq ($(TOOLCHAIN
),mingw
)
43 windres
-i ocaml.rc
-o
$@
46 $(OBJS
): inria.h inriares.h history.h editbuffer.h
49 rm -f ocamlwin.exe
*.
$(O
) *.pdb ocamlwin.ilk
52 cp ocamlwin.exe
$(PREFIX
)/OCamlWin.exe
57 $(CC
) $(CFLAGS
) -c
$*.c