File: Makefile

package info (click to toggle)
ocaml-doc 3.09-1
  • links: PTS
  • area: non-free
  • in suites: etch, etch-m68k
  • size: 10,428 kB
  • ctags: 4,963
  • sloc: ml: 9,244; makefile: 2,413; ansic: 122; sh: 49; asm: 17
file content (115 lines) | stat: -rw-r--r-- 2,104 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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
# Makefile generated by imake - do not edit!
# $XConsortium: imake.c,v 1.91 95/01/12 16:15:47 kaleb Exp $

LIBDIR=/usr/local/lib/ocaml/
CAMLC=ocamlc
CAMLCOPT=ocamlopt
COMPFLAGS=-g
COMPFLAGSOPT=
CAMLLIBR=ocamllibr
CAMLLEX=ocamllex
CAMLYACC=ocamlyacc
CAMLDEP=ocamldep -pp camlp4o
CPP=/lib/cpp -P
RM=rm -f
CP=cp -p -f
TOP=../.
CONFIG=$(TOP)/config

all::
allopt:opt

# (begin Imakefile)

calc.OBJS=lexer.cmo parser.cmo calc.cmo main.cmo
calc.FILES=$(calc.OBJS:.cmo=.ml)

all::calc

depend::
	$(CAMLDEP) $(calc.FILES) >> Makefile

clean::
	$(RM) calc

calc: lexer.cmo parser.cmo calc.cmo main.cmo
	$(CAMLC) $(LINKFLAGS)  lexer.cmo parser.cmo calc.cmo main.cmo -o calc

calc.BINOBJS=lexer.cmx parser.cmx calc.cmx main.cmx
calc.FILES=$(calc.BINOBJS:.cmx=.ml)

opt::calc.opt

depend::
	$(CAMLDEP) $(calc.FILES) >> Makefile

clean::
	$(RM) calc calc.opt

calc.opt: lexer.cmx parser.cmx calc.cmx main.cmx
	$(CAMLCOPT) $(LINKFLAGSOPT)  lexer.cmx parser.cmx calc.cmx main.cmx -o calc.opt
	$(CP) calc.opt calc

parser.ml parser.mli: parser.mly
	@$(RM) parser.ml parser.mli
	$(CAMLYACC) parser.mly
	@chmod a-w parser.ml parser.mli

clean::
	$(RM) parser.ml parser.mli

beforedepend:: parser.ml parser.mli

lexer.ml: lexer.mll
	@$(RM) lexer.ml
	$(CAMLLEX) lexer.mll
	@chmod a-w lexer.ml

clean::
	$(RM) lexer.ml

beforedepend:: lexer.ml

# (end Imakefile)

clean::
	$(RM) *.cmi *.cmix *.cmo *.cmx *.o a.out* *~ *.opt #*#

depend::

beforedepend::

mfile:
	imake -I$(CONFIG) -DTOPDIR=$(TOP)

makefiles:: beforedepend mfile depend

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

.mli.cmi:
	$(CAMLC) $(COMPFLAGS) -c $<

.ml.cmo:
	$(CAMLC) $(COMPFLAGS) -c $<

.ml.cmx:
	$(CAMLCOPT) $(COMPFLAGSOPT) -c $<

# Generated dependencies below

lexer.cmo: parser.cmi 
lexer.cmx: parser.cmx 
parser.cmo: parser.cmi 
parser.cmx: parser.cmi 
calc.cmo: lexer.cmo parser.cmi 
calc.cmx: lexer.cmx parser.cmx 
main.cmo: calc.cmo 
main.cmx: calc.cmx 
lexer.cmo: parser.cmi 
lexer.cmx: parser.cmx 
parser.cmo: parser.cmi 
parser.cmx: parser.cmi 
calc.cmo: lexer.cmo parser.cmi 
calc.cmx: lexer.cmx parser.cmx 
main.cmo: calc.cmo 
main.cmx: calc.cmx