blob: a73b7315219547bb7777ad7c2a5b0cd3846a167e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
#########################################################################
# #
# Objective Caml #
# #
# Xavier Leroy, projet Cristal, INRIA Rocquencourt #
# #
# Copyright 2001 Institut National de Recherche en Informatique et #
# en Automatique. All rights reserved. This file is distributed #
# under the terms of the GNU Library General Public License, with #
# the special exception on linking described in file ../LICENSE. #
# #
#########################################################################
# $Id$
include ../config/Makefile
CC=$(BYTECC)
CFLAGS=$(BYTECCCOMPOPTS)
OBJS=startocaml.$(O) ocamlres.$(O) ocaml.$(O) menu.$(O) \
history.$(O) editbuffer.$(O)
LIBS=$(call SYSLIB,kernel32) $(call SYSLIB,advapi32) $(call SYSLIB,gdi32) \
$(call SYSLIB,user32) $(call SYSLIB,comdlg32) $(call SYSLIB,comctl32)
all: ocamlwin.exe
ocamlwin.exe: $(OBJS)
$(MKEXE) -o ocamlwin.exe $(OBJS) $(LIBS) $(EXTRALIBS) -subsystem windows
ocamlres.$(O): ocaml.rc ocaml.ico
ifeq ($(TOOLCHAIN),msvc)
rc ocaml.rc
ifeq ($(ARCH),amd64)
cvtres /nologo /machine:amd64 /out:$@ ocaml.res
else
cvtres /nologo /machine:ix86 /out:$@ ocaml.res
endif
rm -f ocaml.res
endif
ifeq ($(TOOLCHAIN),mingw)
windres -i ocaml.rc -o $@
endif
$(OBJS): inria.h inriares.h history.h editbuffer.h
clean:
rm -f ocamlwin.exe *.$(O) *.pdb ocamlwin.ilk
install:
cp ocamlwin.exe $(PREFIX)/OCamlWin.exe
.SUFFIXES: .c .$(O)
.c.$(O):
$(CC) $(CFLAGS) -c $*.c
|