Source

ocaml / otherlibs / labltk / examples_camltk / Makefile

Full commit
#######################################################################
#                                                                     #
#                 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.          #
#                                                                     #
#######################################################################

include ../support/Makefile.common

# We are using the non-installed library !
COMPFLAGS=-I ../lib -I ../camltk -I ../support -I $(OTHERS)/unix -w s -dllpath ../support


all: addition$(EXE) helloworld$(EXE) winskel$(EXE) fileinput$(EXE) \
	eyes$(EXE) tetris$(EXE) mytext$(EXE) fileopen$(EXE)

addition$(EXE): addition.cmo
	$(CAMLC) $(COMPFLAGS) -o $@ $(LIBNAME).cma addition.cmo

helloworld$(EXE): helloworld.cmo
	$(CAMLC) $(COMPFLAGS) -o $@ $(LIBNAME).cma helloworld.cmo

winskel$(EXE): winskel.cmo
	$(CAMLC) $(COMPFLAGS) -o $@ $(LIBNAME).cma winskel.cmo

fileinput$(EXE): fileinput.cmo
	$(CAMLC) $(COMPFLAGS) -o $@ unix.cma $(LIBNAME).cma fileinput.cmo

socketinput$(EXE): socketinput.cmo
	$(CAMLC) $(COMPFLAGS) -o $@ unix.cma $(LIBNAME).cma socketinput.cmo

eyes$(EXE): eyes.cmo
	$(CAMLC) $(COMPFLAGS) -o $@ unix.cma $(LIBNAME).cma eyes.cmo

tetris$(EXE): tetris.cmo
	$(CAMLC) $(COMPFLAGS) -o $@ unix.cma $(LIBNAME).cma tetris.cmo

mytext$(EXE): mytext.cmo
	$(CAMLC) $(COMPFLAGS) -o $@ unix.cma $(LIBNAME).cma mytext.cmo

# graph$(EXE): graphics.cmo graphics_test.cmo
# 	  $(CAMLC) -o $@ graphics.cmo graphics_test.cmo
#
# graphics_test.cmo: graphics.cmo

fileopen$(EXE): fileopen.cmo
	$(CAMLC) $(COMPFLAGS) -o $@ $(LIBNAME).cma fileopen.cmo

clean :
	rm -f *.cm? $(EXECS) addition eyes fileinput fileopen helloworld jptest mytext tetris winskel

.SUFFIXES :
.SUFFIXES : .mli .ml .cmi .cmo

.mli.cmi:
	$(CAMLCOMP) $(COMPFLAGS) $<

.ml.cmo:
	$(CAMLCOMP) $(COMPFLAGS) $<