File: Makefile

package info (click to toggle)
ocaml-sqlite3 1.6.1-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 452 kB
  • sloc: ansic: 987; ml: 551; sh: 153; makefile: 95
file content (24 lines) | stat: -rw-r--r-- 492 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
LIBS = str sqlite3

TESTS = $(wildcard *.ml)

all: bytecode opt

bytecode: $(TESTS:%.ml=%.bc)
opt: $(if $(wildcard ../sqlite3.cmxa),$(TESTS:%.ml=%.exe),)

%.bc: %.ml
	ocamlc -w Ae -warn-error Ae -I .. -dllpath .. str.cma sqlite3.cma $< -o $@

%.exe: %.ml
	ocamlopt -w Ae -warn-error Ae -I .. str.cmxa sqlite3.cmxa $< -o $@

clean:
	rm -f \
	  $(TESTS:%.ml=%.bc) \
	  $(TESTS:%.ml=%.exe) \
	  $(TESTS:%.ml=%.cmi) \
	  $(TESTS:%.ml=%.cmo) \
	  $(TESTS:%.ml=%.cmx) \
	  $(TESTS:%.ml=%.o) \
	  t