File: Makefile

package info (click to toggle)
camlp5 8.04.00-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 11,972 kB
  • sloc: ml: 137,918; makefile: 2,055; perl: 1,729; sh: 1,653; python: 38
file content (28 lines) | stat: -rw-r--r-- 751 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
TOP=../..

LAUNCH=env TOP=$(TOP) ocamlfind camlp5-buildscripts/LAUNCH --
OCAMLFIND=$(LAUNCH) ocamlfind
NOT_OCAMLFIND=$(LAUNCH) not-ocamlfind
PACKAGES=camlp5,fmt,ounit2,camlp5.pa_lexer

all: streams streams.opt

streams.cmo: streams.ml
	$(OCAMLFIND) ocamlc -package $(PACKAGES) -c -syntax camlp5r streams.ml

streams: streams.cmo
	$(OCAMLFIND) ocamlc -package $(PACKAGES) -linkpkg -syntax camlp5r streams.cmo -o $@

streams_ppo.ml: streams.ml
	$(NOT_OCAMLFIND) preprocess -package $(PACKAGES),camlp5.pr_r  -syntax camlp5r streams.ml > $@

streams.opt: streams.ml
	$(OCAMLFIND) ocamlopt -package $(PACKAGES) -linkpkg -syntax camlp5r streams.ml -o $@

test:: all
	mkdir -p _build
	./streams

clean:
	rm -rf streams streams.opt *.cm* *.o *_ppo.ml _build