1999-12-07 07:25:56 -08:00
|
|
|
include ../support/Makefile.common
|
1999-11-30 06:59:39 -08:00
|
|
|
|
2000-04-03 00:57:36 -07:00
|
|
|
COMPFLAGS=-I ../lib -I ../support -I $(OTHERS)/unix -w s
|
1999-11-30 06:59:39 -08:00
|
|
|
|
|
|
|
all: hello demo eyes calc clock tetris
|
|
|
|
|
2000-01-31 22:50:59 -08:00
|
|
|
opt: hello.opt demo.opt eyes.opt calc.opt clock.opt tetris.opt
|
1999-11-30 06:59:39 -08:00
|
|
|
|
|
|
|
hello: hello.cmo
|
2000-04-13 20:40:13 -07:00
|
|
|
$(LABLC) $(COMPFLAGS) -o hello labltk.cma hello.cmo $(TKLINKOPT)
|
1999-11-30 06:59:39 -08:00
|
|
|
|
|
|
|
demo: demo.cmo
|
2000-04-13 20:40:13 -07:00
|
|
|
$(LABLC) $(COMPFLAGS) -o demo labltk.cma demo.cmo $(TKLINKOPT)
|
1999-11-30 06:59:39 -08:00
|
|
|
|
|
|
|
eyes: eyes.cmo
|
2000-04-13 20:40:13 -07:00
|
|
|
$(LABLC) $(COMPFLAGS) -o eyes labltk.cma eyes.cmo $(TKLINKOPT)
|
1999-11-30 06:59:39 -08:00
|
|
|
|
|
|
|
calc: calc.cmo
|
2000-04-13 20:40:13 -07:00
|
|
|
$(LABLC) $(COMPFLAGS) -o calc labltk.cma calc.cmo $(TKLINKOPT)
|
1999-11-30 06:59:39 -08:00
|
|
|
|
|
|
|
clock: clock.cmo
|
2000-04-13 20:40:13 -07:00
|
|
|
$(LABLC) $(COMPFLAGS) -o clock labltk.cma unix.cma clock.cmo $(TKLINKOPT)
|
1999-11-30 06:59:39 -08:00
|
|
|
|
2000-01-23 19:23:23 -08:00
|
|
|
clock.opt: clock.cmx
|
2000-01-31 22:50:59 -08:00
|
|
|
$(CAMLOPT) $(COMPFLAGS) -o clock.opt \
|
2000-04-13 20:40:13 -07:00
|
|
|
labltk.cmxa unix.cmxa clock.cmx $(TKLINKOPT)
|
2000-01-23 19:23:23 -08:00
|
|
|
|
1999-11-30 06:59:39 -08:00
|
|
|
tetris: tetris.cmo
|
2000-04-13 20:40:13 -07:00
|
|
|
$(LABLC) $(COMPFLAGS) -o tetris labltk.cma tetris.cmo $(TKLINKOPT)
|
1999-11-30 06:59:39 -08:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f hello demo eyes calc clock tetris *.opt *.o *.cm*
|
|
|
|
|
|
|
|
.SUFFIXES :
|
|
|
|
.SUFFIXES : .mli .ml .cmi .cmx .cmo .opt
|
|
|
|
|
|
|
|
.mli.cmi:
|
|
|
|
$(LABLCOMP) $(COMPFLAGS) $<
|
|
|
|
|
|
|
|
.ml.cmo:
|
|
|
|
$(LABLCOMP) $(COMPFLAGS) $<
|
|
|
|
|
|
|
|
.ml.cmx:
|
|
|
|
$(CAMLOPT) -c $(COMPFLAGS) $<
|
|
|
|
|
|
|
|
.cmx.opt:
|
2000-04-13 20:40:13 -07:00
|
|
|
$(CAMLOPT) $(COMPFLAGS) -o $@ labltk.cmxa $< $(TKLINKOPT)
|