1 Debian patch touch this file
| 1 | # Makefile for examples subdir |
| 2 | |
| •3 | PACKAGES = lablgl.togl,unix |
| 4 | DERIVEDML = $(patsubst %.ml.gz,%.ml,$(wildcard *.ml.gz)) |
| 5 | |
| 6 | all: $(patsubst %.ml,%.opt,$(wildcard *.ml) $(DERIVEDML)) |
| 7 | |
| 8 | %.ml : %.ml.gz |
| 9 | gunzip -c $^ > $@ |
| 10 | |
| 11 | %.opt : %.ml |
| 12 | ocamlfind ocamlopt -package $(PACKAGES) -c $^ |
| 13 | ocamlfind ocamlopt -package $(PACKAGES) -linkpkg -o $@ $^ |
| 14 | |
| 15 | clean: |
| •16 | rm -f *.cm* *.o *.opt $(DERIVEDML) |