File: Makefile

package info (click to toggle)
camlimages 2.00-3
  • links: PTS
  • area: main
  • in suites: woody
  • size: 3,536 kB
  • ctags: 2,325
  • sloc: ml: 10,848; ansic: 2,396; makefile: 599; sh: 30
file content (71 lines) | stat: -rw-r--r-- 1,287 bytes parent folder | download
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
# Generated automatically from Makefile.in by configure.
include ../Makefile.config
include Makefile.fortest

# The executable file to generate (default a.out under Unix)

################ End of user's variables #####################

all: test
opt: test.opt

clean::
	rm -f test test.opt *.cm* *.o out.image screen.bmp

LINKFLAGS= $(LINKFLAGS_CAMLIMAGES)

test: test.ml
	$(CAMLC) $(COMPFLAGS_CAMLIMAGES) $(LINKFLAGS) -o $@ test.ml

test.opt: test.ml
	$(CAMLOPT) $(COMPFLAGS_CAMLIMAGES) $(LINKFLAGS:.cma=.cmxa) -o $@ test.ml

depend: .depend

.depend:
	$(CAMLDEP) $(COMPFLAGS) */*.mli */*.ml > .depend

.SUFFIXES:
.SUFFIXES: .ml .mli .cmo .cmi .cmx .mll .mly .c .o

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

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

.ml.cmx:
	$(CAMLOPT) $(COMPFLAGS) -c $<

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

.mll.cmx:
	$(CAMLLEX) $<
	$(CAMLOPT) $(COMPFLAGS) -c $*.ml

.mly.cmo:
	$(CAMLYACC) $<
	$(CAMLC) $(COMPFLAGS) -c $*.mli
	$(CAMLC) $(COMPFLAGS) -c $*.ml

.mly.cmx:
	$(CAMLYACC) $<
	$(CAMLOPT) $(COMPFLAGS) -c $*.mli
	$(CAMLOPT) $(COMPFLAGS) -c $*.ml

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

.mll.ml:
	$(CAMLLEX) $<

.mly.ml:
	$(CAMLYACC) $<

.c.o:
	$(CAMLC) -ccopt "-o `echo $< | sed -e s/\.c$$/.o/`" -c $< 

include .depend