]> rtime.felk.cvut.cz Git - l4.git/blob - l4/pkg/ocaml/contrib/otherlibs/labltk/examples_labltk/Makefile
update
[l4.git] / l4 / pkg / ocaml / contrib / otherlibs / labltk / examples_labltk / Makefile
1 include ../support/Makefile.common
2
3 COMPFLAGS=-I ../lib -I ../labltk -I ../support -I $(OTHERS)/unix -w s -dllpath ../support
4
5 all: hello demo eyes calc clock tetris lang
6
7 opt: hello.opt demo.opt eyes.opt calc.opt clock.opt tetris.opt
8
9 hello: hello.cmo
10         $(CAMLC) $(COMPFLAGS) -o hello $(LIBNAME).cma hello.cmo
11
12 demo: demo.cmo
13         $(CAMLC) $(COMPFLAGS) -o demo $(LIBNAME).cma demo.cmo
14
15 eyes: eyes.cmo
16         $(CAMLC) $(COMPFLAGS) -o eyes $(LIBNAME).cma eyes.cmo
17
18 calc: calc.cmo
19         $(CAMLC) $(COMPFLAGS) -o calc $(LIBNAME).cma calc.cmo
20
21 clock: clock.cmo
22         $(CAMLC) $(COMPFLAGS) -o clock $(LIBNAME).cma unix.cma clock.cmo
23
24 clock.opt: clock.cmx
25         $(CAMLOPT) $(COMPFLAGS) -o clock.opt \
26               $(LIBNAME).cmxa unix.cmxa clock.cmx
27
28 tetris: tetris.cmo
29         $(CAMLC) $(COMPFLAGS) -o tetris $(LIBNAME).cma tetris.cmo
30
31 taquin: taquin.cmo
32         $(CAMLC) $(COMPFLAGS) -o taquin $(LIBNAME).cma taquin.cmo
33
34 lang: lang.cmo
35         $(CAMLC) $(COMPFLAGS) -o lang $(LIBNAME).cma lang.cmo
36
37 clean:
38         rm -f hello demo eyes calc clock tetris lang *.opt *.o *.cm*
39
40 .SUFFIXES :
41 .SUFFIXES : .mli .ml .cmi .cmx .cmo .opt
42
43 .mli.cmi:
44         $(CAMLCOMP) $(COMPFLAGS) $<
45
46 .ml.cmo:
47         $(CAMLCOMP) $(COMPFLAGS) $<
48
49 .ml.cmx:
50         $(CAMLOPT) -c $(COMPFLAGS) $<
51
52 .cmx.opt:
53         $(CAMLOPT) $(COMPFLAGS) -o $@ $(LIBNAME).cmxa $<