File: Makefile.code

package info (click to toggle)
pxp 1.2.9-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 7,844 kB
  • sloc: ml: 28,666; xml: 2,597; makefile: 822; sh: 691
file content (43 lines) | stat: -rw-r--r-- 914 bytes parent folder | download | duplicates (11)
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#----------------------------------------------------------------------
# specific rules for this package:

OBJECTS  = to_html.cmo to_text.cmo
XOBJECTS = $(OBJECTS:.cmo=.cmx)
NAME     = readme
REQUIRES = str pxp

readme: $(OBJECTS) main.cmo
	ocamlfind ocamlc -o readme -custom -package "$(REQUIRES)" \
		-linkpkg $(OBJECTS) main.cmo 

readme.opt: $(XARCHIVE) main.cmx
	ocamlfind ocamlopt -o readme.opt -package "$(REQUIRES)" \
		-linkpkg $(XOBJECTS) main.cmx

#----------------------------------------------------------------------
# general rules:

OPTIONS   =
OCAMLC    = ocamlfind ocamlc -g -package "$(REQUIRES)"
OCAMLOPT  = ocamlfind ocamlopt  -package "$(REQUIRES)"
OCAMLDEP  = ocamldep 
OCAMLFIND = ocamlfind

depend: *.ml *.mli 
	$(OCAMLDEP) *.ml *.mli >depend

.SUFFIXES: .cmo .cmi .cmx .ml .mli

.ml.cmx:
	$(OCAMLOPT) -c $<

.ml.cmo:
	$(OCAMLC) -c $<

.mli.cmi:
	$(OCAMLC) -c $<

*.mli:

include depend