1999-12-07 07:25:56 -08:00
|
|
|
include ../support/Makefile.common
|
1999-11-30 06:59:39 -08:00
|
|
|
|
2000-03-12 05:11:26 -08:00
|
|
|
COMPFLAGS=-I ../lib -I ../support -I $(OTHERS)/unix
|
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-03-12 05:11:26 -08:00
|
|
|
$(LABLC) $(COMPFLAGS) -o hello tk41.cma hello.cmo $(TKLINKOPT)
|
1999-11-30 06:59:39 -08:00
|
|
|
|
|
|
|
demo: demo.cmo
|
2000-03-12 05:11:26 -08:00
|
|
|
$(LABLC) $(COMPFLAGS) -o demo tk41.cma demo.cmo $(TKLINKOPT)
|
1999-11-30 06:59:39 -08:00
|
|
|
|
|
|
|
eyes: eyes.cmo
|
2000-03-12 05:11:26 -08:00
|
|
|
$(LABLC) $(COMPFLAGS) -o eyes tk41.cma eyes.cmo $(TKLINKOPT)
|
1999-11-30 06:59:39 -08:00
|
|
|
|
|
|
|
calc: calc.cmo
|
2000-03-12 05:11:26 -08:00
|
|
|
$(LABLC) $(COMPFLAGS) -o calc tk41.cma calc.cmo $(TKLINKOPT)
|
1999-11-30 06:59:39 -08:00
|
|
|
|
|
|
|
clock: clock.cmo
|
2000-03-12 05:11:26 -08:00
|
|
|
$(LABLC) $(COMPFLAGS) -o clock tk41.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-03-12 05:11:26 -08:00
|
|
|
tk41.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-03-12 05:11:26 -08:00
|
|
|
$(LABLC) $(COMPFLAGS) -o tetris tk41.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-01-31 22:50:59 -08:00
|
|
|
$(CAMLOPT) $(COMPFLAGS) -o $@ tk41.cmxa $< $(TKLINKOPT)
|