-
Notifications
You must be signed in to change notification settings - Fork 297
/
Copy pathMakefile.am
46 lines (31 loc) · 826 Bytes
/
Makefile.am
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
EXAMPLES = CPIBond EquityOptions HestonModelCalibration HestonMonteCarlo ObserverPattern Optimizer RandomNumbers Swing
SWIGFLAGS = $(SWIGFLAGS)
if JAVA_AUTOLOAD
SWIGFLAGS += -DJAVA_AUTOLOAD
endif
if JAVA_FINALIZER
SWIGFLAGS += -DJAVA_FINALIZER
endif
if JAVA_AUTOCLOSEABLE
SWIGFLAGS += -DJAVA_AUTOCLOSEABLE
endif
if HAVE_JAVA
if BUILD_JAVA
if HAVE_SCALA
if BUILD_SCALA
examples/%.class: examples/%.scala
$(SCALAC) -cp ../Java/QuantLib.jar -language:postfixOps examples/$*.scala
.PHONY: $(EXAMPLES)
check-local: $(EXAMPLES)
$(EXAMPLES): $(EXAMPLES:%=examples/%.class)
LD_LIBRARY_PATH=../Java $(SCALA) -cp ".:../Java/QuantLib.jar" examples.$@
EXTRA_DIST = README.txt
endif
endif
endif
endif
dist-hook:
mkdir -p $(distdir)/examples
cp ./examples/*.scala $(distdir)/examples
clean-local:
rm -f examples/*.class