1 include ../support/Makefile.common
3 COMPFLAGS=-I ../lib -I ../labltk -I ../support -I $(OTHERS)/unix -w s -dllpath ../support
5 all: hello demo eyes calc clock tetris lang
7 opt: hello.opt demo.opt eyes.opt calc.opt clock.opt tetris.opt
10 $(CAMLC) $(COMPFLAGS) -o hello $(LIBNAME).cma hello.cmo
13 $(CAMLC) $(COMPFLAGS) -o demo $(LIBNAME).cma demo.cmo
16 $(CAMLC) $(COMPFLAGS) -o eyes $(LIBNAME).cma eyes.cmo
19 $(CAMLC) $(COMPFLAGS) -o calc $(LIBNAME).cma calc.cmo
22 $(CAMLC) $(COMPFLAGS) -o clock $(LIBNAME).cma unix.cma clock.cmo
25 $(CAMLOPT) $(COMPFLAGS) -o clock.opt \
26 $(LIBNAME).cmxa unix.cmxa clock.cmx
29 $(CAMLC) $(COMPFLAGS) -o tetris $(LIBNAME).cma tetris.cmo
32 $(CAMLC) $(COMPFLAGS) -o taquin $(LIBNAME).cma taquin.cmo
35 $(CAMLC) $(COMPFLAGS) -o lang $(LIBNAME).cma lang.cmo
38 rm -f hello demo eyes calc clock tetris lang *.opt *.o *.cm*
41 .SUFFIXES : .mli .ml .cmi .cmx .cmo .opt
44 $(CAMLCOMP) $(COMPFLAGS) $<
47 $(CAMLCOMP) $(COMPFLAGS) $<
50 $(CAMLOPT) -c $(COMPFLAGS) $<
53 $(CAMLOPT) $(COMPFLAGS) -o $@ $(LIBNAME).cmxa $<