File: Makefile.config

package info (click to toggle)
otags 3.09.3-4
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 372 kB
  • ctags: 296
  • sloc: ml: 1,004; sh: 309; makefile: 122
file content (24 lines) | stat: -rw-r--r-- 507 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
# This is a -*-Makefile-*-
# $Id: Makefile.config,v 1.5 2007-03-15 22:40:43 tews Exp $ 

# Compilation commands are now in Makefile.here

# Additional compilation flags
OCFLAGS=${shell grep "(\* ocamlc options: !" $< | cut -d! -f2}
ODFLAGS=${shell grep "(\* ocamldep options: !" $< | cut -d! -f2}

%.cmi: %.mli
	${CAMLC} -c ${OCFLAGS} $<

%.cmo:%.ml
	${CAMLC} -c ${OCFLAGS} $<

%.cmx:%.ml
	${CAMLOPT} -c ${OCFLAGS} $<

%.dep:%.ml	
	${CAMLDEP} ${ODFLAGS} $< > $@

%.dep:%.mli
	${CAMLDEP} ${ODFLAGS} $< > $@