| 1 |
####################################################################### |
| 2 |
# # |
| 3 |
# MLTk, Tcl/Tk interface of OCaml # |
| 4 |
# # |
| 5 |
# Francois Rouaix, Francois Pessaux, Jun Furuse and Pierre Weis # |
| 6 |
# projet Cristal, INRIA Rocquencourt # |
| 7 |
# Jacques Garrigue, Kyoto University RIMS # |
| 8 |
# # |
| 9 |
# Copyright 2002 Institut National de Recherche en Informatique et # |
| 10 |
# en Automatique and Kyoto University. All rights reserved. # |
| 11 |
# This file is distributed under the terms of the GNU Library # |
| 12 |
# General Public License, with the special exception on linking # |
| 13 |
# described in file LICENSE found in the OCaml source tree. # |
| 14 |
# # |
| 15 |
####################################################################### |
| 16 |
|
| 17 |
include ../support/Makefile.common |
| 18 |
|
| 19 |
COMPFLAGS=-I ../lib -I ../labltk -I ../support -w s -dllpath ../support |
| 20 |
|
| 21 |
all: hello demo eyes calc clock tetris lang |
| 22 |
|
| 23 |
opt: hello.opt demo.opt eyes.opt calc.opt clock.opt tetris.opt |
| 24 |
|
| 25 |
hello: hello.cmo |
| 26 |
$(CAMLC) $(COMPFLAGS) -o hello $(LIBNAME).cma hello.cmo |
| 27 |
|
| 28 |
demo: demo.cmo |
| 29 |
$(CAMLC) $(COMPFLAGS) -o demo $(LIBNAME).cma demo.cmo |
| 30 |
|
| 31 |
eyes: eyes.cmo |
| 32 |
$(CAMLC) $(COMPFLAGS) -o eyes $(LIBNAME).cma eyes.cmo |
| 33 |
|
| 34 |
calc: calc.cmo |
| 35 |
$(CAMLC) $(COMPFLAGS) -o calc $(LIBNAME).cma calc.cmo |
| 36 |
|
| 37 |
clock: clock.cmo |
| 38 |
$(CAMLC) $(COMPFLAGS) -o clock $(LIBNAME).cma \ |
| 39 |
-I +unix unix.cma clock.cmo |
| 40 |
|
| 41 |
clock.opt: clock.cmx |
| 42 |
$(CAMLOPT) $(COMPFLAGS) -o clock.opt \ |
| 43 |
$(LIBNAME).cmxa -I +unix unix.cmxa clock.cmx |
| 44 |
|
| 45 |
tetris: tetris.cmo |
| 46 |
$(CAMLC) $(COMPFLAGS) -o tetris $(LIBNAME).cma tetris.cmo |
| 47 |
|
| 48 |
taquin: taquin.cmo |
| 49 |
$(CAMLC) $(COMPFLAGS) -o taquin $(LIBNAME).cma taquin.cmo |
| 50 |
|
| 51 |
lang: lang.cmo |
| 52 |
$(CAMLC) $(COMPFLAGS) -o lang $(LIBNAME).cma lang.cmo |
| 53 |
|
| 54 |
clean: |
| 55 |
rm -f hello demo eyes calc clock tetris lang *.opt *.o *.cm* |
| 56 |
|
| 57 |
.SUFFIXES : |
| 58 |
.SUFFIXES : .mli .ml .cmi .cmx .cmo .opt |
| 59 |
|
| 60 |
.mli.cmi: |
| 61 |
$(CAMLCOMP) $(COMPFLAGS) $< |
| 62 |
|
| 63 |
.ml.cmo: |
| 64 |
$(CAMLCOMP) $(COMPFLAGS) $< |
| 65 |
|
| 66 |
.ml.cmx: |
| 67 |
$(CAMLOPT) -c $(COMPFLAGS) $< |
| 68 |
|
| 69 |
.cmx.opt: |
| 70 |
$(CAMLOPT) $(COMPFLAGS) -o $@ $(LIBNAME).cmxa $< |