2012-08-02 01:17:59 -07:00
|
|
|
#######################################################################
|
|
|
|
# #
|
|
|
|
# MLTk, Tcl/Tk interface of OCaml #
|
|
|
|
# #
|
|
|
|
# Francois Rouaix, Francois Pessaux, Jun Furuse and Pierre Weis #
|
|
|
|
# projet Cristal, INRIA Rocquencourt #
|
|
|
|
# Jacques Garrigue, Kyoto University RIMS #
|
|
|
|
# #
|
|
|
|
# Copyright 2002 Institut National de Recherche en Informatique et #
|
|
|
|
# en Automatique and Kyoto University. 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 found in the OCaml source tree. #
|
|
|
|
# #
|
|
|
|
#######################################################################
|
|
|
|
|
2009-07-20 04:51:50 -07:00
|
|
|
include ../support/Makefile.common
|
2002-04-26 05:16:26 -07:00
|
|
|
|
|
|
|
# We are using the non-installed library !
|
|
|
|
COMPFLAGS= -I ../lib -I ../labltk -I ../support
|
|
|
|
LINKFLAGS= -I ../lib -I ../labltk -I ../support
|
|
|
|
|
|
|
|
# Use pieces of Makefile.config
|
2010-01-22 04:48:24 -08:00
|
|
|
TKLINKOPT=$(LIBNAME).cma $(TKLIBS)
|
2002-04-26 05:16:26 -07:00
|
|
|
|
|
|
|
all: hello.exe demo.exe eyes.exe calc.exe clock.exe tetris.exe lang.exe
|
|
|
|
|
|
|
|
hello.exe: hello.cmo
|
|
|
|
$(CAMLC) -custom $(LINKFLAGS) $(TKLINKOPT) \
|
2010-01-22 04:48:24 -08:00
|
|
|
-o $@ hello.cmo
|
2002-04-26 05:16:26 -07:00
|
|
|
|
|
|
|
demo.exe: demo.cmo
|
|
|
|
$(CAMLC) -custom $(LINKFLAGS) $(TKLINKOPT) \
|
2010-01-22 04:48:24 -08:00
|
|
|
-o $@ demo.cmo
|
2002-04-26 05:16:26 -07:00
|
|
|
|
|
|
|
eyes.exe: eyes.cmo
|
|
|
|
$(CAMLC) -custom $(LINKFLAGS) $(TKLINKOPT) \
|
2010-01-22 04:48:24 -08:00
|
|
|
-o $@ eyes.cmo
|
2002-04-26 05:16:26 -07:00
|
|
|
|
|
|
|
calc.exe: calc.cmo
|
|
|
|
$(CAMLC) -custom $(LINKFLAGS) $(TKLINKOPT) \
|
2010-01-22 04:48:24 -08:00
|
|
|
-o $@ calc.cmo
|
2002-04-26 05:16:26 -07:00
|
|
|
|
|
|
|
clock.exe: clock.cmo
|
|
|
|
$(CAMLC) -custom $(LINKFLAGS) $(TKLINKOPT) unix.cma \
|
2010-01-22 04:48:24 -08:00
|
|
|
-o $@ clock.cmo
|
2002-04-26 05:16:26 -07:00
|
|
|
|
|
|
|
tetris.exe: tetris.cmo
|
|
|
|
$(CAMLC) -custom $(LINKFLAGS) $(TKLINKOPT) \
|
2010-01-22 04:48:24 -08:00
|
|
|
-o $@ tetris.cmo
|
2002-04-26 05:16:26 -07:00
|
|
|
|
|
|
|
lang.exe: lang.cmo
|
|
|
|
$(CAMLC) -custom $(LINKFLAGS) $(TKLINKOPT) \
|
2010-01-22 04:48:24 -08:00
|
|
|
-o $@ lang.cmo
|
2002-04-26 05:16:26 -07:00
|
|
|
|
2010-01-22 04:48:24 -08:00
|
|
|
clean :
|
2002-04-26 05:16:26 -07:00
|
|
|
rm -f *.cm? *.exe
|
|
|
|
|
|
|
|
.SUFFIXES :
|
|
|
|
.SUFFIXES : .mli .ml .cmi .cmo
|
|
|
|
|
|
|
|
.mli.cmi:
|
|
|
|
$(CAMLCOMP) $(COMPFLAGS) $<
|
|
|
|
|
|
|
|
.ml.cmo:
|
|
|
|
$(CAMLCOMP) $(COMPFLAGS) $<
|