File: Makefile.am

package info (click to toggle)
quantlib-swig 0.3.13-3
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 43,120 kB
  • ctags: 74,378
  • sloc: cpp: 795,926; ansic: 103,715; ml: 39,516; cs: 24,631; java: 17,063; perl: 12,601; python: 6,752; lisp: 2,223; ruby: 1,103; sh: 458; makefile: 319
file content (50 lines) | stat: -rw-r--r-- 816 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

BUILT_SOURCES = swig.mli swig.ml QuantLib.mli QuantLib.ml quantlib_wrap.c

CLEANFILES = $(BUILT_SOURCES) .build-stamp
OCAMLCFLAGS = -I/usr/lib/ocaml

if HAVE_OCAML

%.cmi: %.mli
	$(OCAMLC) -c $<

.PRECIOUS: %.cmi

%.cmo: %.ml %.cmi
	$(OCAMLC) -c $*.ml

%.o: %.c
	$(OCAMLC) -c $<

all-local: .build-stamp

.build-stamp: QuantLib.cmo swig.cmo
	touch .build-stamp

QuantLib.cmo: swig.cmi

#check-local: .build-stamp

#install-exec-local: .build-stamp

clean-local:
	rm -rf *.cmi *.cmo *.o

endif

QuantLib.mli QuantLib.ml quantlib_wrap.c: ../SWIG/*.i
	$(SWIG) -ocaml -c++ -I../SWIG -o quantlib_wrap.c quantlib.i

swig.mli:
	$(SWIG) -ocaml -co swig.mli

swig.ml:
	$(SWIG) -ocaml -co swig.ml

#dist-hook:
#	mkdir -p $(distdir)/examples
#	cp ./examples/*.pl $(distdir)/examples

EXTRA_DIST = README.txt $(BUILT_SOURCES)