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 (133 lines) | stat: -rw-r--r-- 3,026 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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
# 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)

COMPFLAGS=-g -pp camlp4o

grep.OBJS=expr.cmo auto.cmo ensent.cmo determ.cmo grep.cmo
grep.FILES=$(grep.OBJS:.cmo=.ml)

all::grep

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

clean::
	$(RM) grep

grep: expr.cmo auto.cmo ensent.cmo determ.cmo grep.cmo
	$(CAMLC) -pp camlp4o $(LINKFLAGS)  expr.cmo auto.cmo ensent.cmo determ.cmo grep.cmo -o grep

COMPFLAGSOPT=-pp camlp4o

fastgrep.BINOBJS=expr.cmx auto.cmx ensent.cmx determ.cmx grep.cmx
fastgrep.FILES=$(fastgrep.BINOBJS:.cmx=.ml)

opt::fastgrep.opt

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

clean::
	$(RM) fastgrep fastgrep.opt

fastgrep.opt: expr.cmx auto.cmx ensent.cmx determ.cmx grep.cmx
	$(CAMLCOPT) -pp camlp4o $(LINKFLAGSOPT)  expr.cmx auto.cmx ensent.cmx determ.cmx grep.cmx -o fastgrep.opt
	$(CP) fastgrep.opt fastgrep

cfastgrep.OBJS=expr.cmo auto.cmo ensent.cmo determ.cmo fastgrep.cmo fastrec.o
cfastgrep.FILES=$(cfastgrep.OBJS:.cmo=.ml)

all::cfastgrep

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

clean::
	$(RM) cfastgrep

cfastgrep: expr.cmo auto.cmo ensent.cmo determ.cmo fastgrep.cmo fastrec.o
	$(CAMLC) $(LINKFLAGS) -custom  expr.cmo auto.cmo ensent.cmo determ.cmo fastgrep.cmo fastrec.o -o cfastgrep

fastrec.o: fastrec.c
	$(CAMLC) -c -I $(LIBDIR)/caml fastrec.c

clean::
	rm -f fastrec.o

# (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

expr.cmo: expr.cmi 
expr.cmx: expr.cmi 
auto.cmo: expr.cmi auto.cmi 
auto.cmx: expr.cmx auto.cmi 
ensent.cmo: ensent.cmi 
ensent.cmx: ensent.cmi 
determ.cmo: auto.cmi ensent.cmi determ.cmi 
determ.cmx: auto.cmx ensent.cmx determ.cmi 
grep.cmo: auto.cmi determ.cmi expr.cmi 
grep.cmx: auto.cmx determ.cmx expr.cmx 
expr.cmo: expr.cmi 
expr.cmx: expr.cmi 
auto.cmo: expr.cmi auto.cmi 
auto.cmx: expr.cmx auto.cmi 
ensent.cmo: ensent.cmi 
ensent.cmx: ensent.cmi 
determ.cmo: auto.cmi ensent.cmi determ.cmi 
determ.cmx: auto.cmx ensent.cmx determ.cmi 
grep.cmo: auto.cmi determ.cmi expr.cmi 
grep.cmx: auto.cmx determ.cmx expr.cmx 
expr.cmo: expr.cmi 
expr.cmx: expr.cmi 
auto.cmo: expr.cmi auto.cmi 
auto.cmx: expr.cmx auto.cmi 
ensent.cmo: ensent.cmi 
ensent.cmx: ensent.cmi 
determ.cmo: auto.cmi ensent.cmi determ.cmi 
determ.cmx: auto.cmx ensent.cmx determ.cmi 
fastgrep.cmo: auto.cmi determ.cmi expr.cmi fastrec.cmi 
fastgrep.cmx: auto.cmx determ.cmx expr.cmx fastrec.cmi