File: Makefile.shared

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 (72 lines) | stat: -rw-r--r-- 1,468 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
72
$(CLIB) $(CDLL): $(COBJS)
	$(CAMLMKLIB) -oc $(LIBNAME) $(COBJS) $(EXTCLIB)

$(CMA): $(CLIB) $(MLOBJS)
	  if test "X$(CLIB)" = "X"; then \
	    $(CAMLC) -a -linkall -o $(LIBNAME).cma \
		  $(EXTMLLIB) $(MLOBJS) $(EXTCLIB); \
	  else \
	    $(CAMLMKLIB) -linkall -o $(LIBNAME) -dllpath $(LIBDIR) \
		  $(EXTMLLIB) $(MLOBJS) $(EXTCLIB); \
	  fi

$(CMXA): $(CLIB) $(MLOBJS:.cmo=.cmx)
	  if test "X$(CLIB)" = "X"; then \
	    $(CAMLOPT) -a -linkall -o $(LIBNAME).cmxa \
		  $(EXTMLLIB:.cma=.cmxa) $(MLOBJS:.cmo=.cmx) $(EXTCLIB); \
	  else \
	    $(CAMLMKLIB) -linkall -o $(LIBNAME) -dllpath $(LIBDIR) \
		  $(EXTMLLIB:.cma=.cmxa) $(MLOBJS:.cmo=.cmx) $(EXTCLIB); \
	  fi

#######

.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: ../config.h
	$(CAMLC) -ccopt "-I .. -I /usr/local/include $(CFLAGS)" -c $< 

depend: .depend

.depend:
	$(CAMLDEP) $(addprefix -I ../, $(BUILDDIRS)) *.ml *.mli > .depend

include .depend