File: Makefile.code

package info (click to toggle)
pxp 1.1.96-8
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 5,960 kB
  • ctags: 2,016
  • sloc: ml: 21,018; xml: 2,597; sh: 727; makefile: 706
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