Sys.Signals module for a Variant type of signals (and a set_signal function that...
[ocaml.git] / win32caml / Makefile
blob31bd426e63074649b247e4fafd4225ea86bf02c9
1 #########################################################################
2 # #
3 # Objective Caml #
4 # #
5 # Xavier Leroy, projet Cristal, INRIA Rocquencourt #
6 # #
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. #
11 # #
12 #########################################################################
14 # $Id$
16 include ../config/Makefile
18 CC=$(BYTECC)
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)
27 all: ocamlwin.exe
29 ocamlwin.exe: $(OBJS)
30 $(call MKEXE,ocamlwin.exe,$(OBJS) $(LIBS) $(EXTRALIBS))
32 ocamlres.$(O): ocaml.rc ocaml.ico
33 ifeq ($(TOOLCHAIN),msvc)
34 rc ocaml.rc
35 ifeq ($(ARCH),amd64)
36 cvtres /nologo /machine:amd64 /out:$@ ocaml.res
37 else
38 cvtres /nologo /machine:ix86 /out:$@ ocaml.res
39 endif
40 rm -f ocaml.res
41 endif
42 ifeq ($(TOOLCHAIN),mingw)
43 windres -i ocaml.rc -o $@
44 endif
46 $(OBJS): inria.h inriares.h history.h editbuffer.h
48 clean:
49 rm -f ocamlwin.exe *.$(O) *.pdb ocamlwin.ilk
51 install:
52 cp ocamlwin.exe $(PREFIX)/OCamlWin.exe
54 .SUFFIXES: .c .$(O)
56 .c.$(O):
57 $(CC) $(CFLAGS) -c $*.c