######################################################################### # # # 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) $(CC) $(CFLAGS) -o ocamlwin.exe $(OBJS) $(LIBS) ocamlres.$(O): ocaml.rc ocaml.ico ifeq ($(TOOLCHAIN),msvc) rc ocaml.rc cvtres /nologo /machine:ix86 /out:$@ ocaml.res 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