File: Makefile

package info (click to toggle)
lablgl 1:1.05-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 1,444 kB
  • sloc: ansic: 8,270; ml: 6,118; tcl: 342; makefile: 294; xml: 84; perl: 12
file content (16 lines) | stat: -rw-r--r-- 376 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# Makefile for examples subdir

PACKAGES = lablgl.togl,unix
DERIVEDML = $(patsubst %.ml.gz,%.ml,$(wildcard *.ml.gz))

all: $(patsubst %.ml,%.opt,$(wildcard *.ml) $(DERIVEDML))

%.ml : %.ml.gz
	gunzip -c $^ > $@

%.opt : %.ml
	ocamlfind ocamlopt -package $(PACKAGES) -c  $^
	ocamlfind ocamlopt -package $(PACKAGES) -linkpkg -o $@ $^

clean:
	rm -f *.cm* *.o *.opt $(DERIVEDML)