File: makefile.mak

package info (click to toggle)
quantlib 0.3.13-2
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 11,964 kB
  • ctags: 11,071
  • sloc: cpp: 69,443; ansic: 21,483; sh: 8,860; makefile: 1,824; lisp: 86
file content (120 lines) | stat: -rw-r--r-- 1,891 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
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

# main makefile for QuantLib under Borland C++

.autodepend
#.silent

MAKE = $(MAKE) -fmakefile.mak -DVERSION=0.3.13 -DVERSION_STRING=0_3_13

# MAKE Options
!ifdef __MT__
    MAKE = $(MAKE) -D__MT__
!endif
!ifdef _RTLDLL
    MAKE = $(MAKE) -D_RTLDLL
!endif
!ifdef _DEBUG
    MAKE = $(MAKE) -D_DEBUG
!endif
!ifdef SAFE
    MAKE = $(MAKE) -DSAFE
!endif

# Primary target:
# QuantLib library
quantlib::
    cd ql
    $(MAKE)
    cd ..

# check
check: tests
    cd test-suite
    $(MAKE) -DQL_DIR=".." check
    cd ..

# test
test: tests

# tests
tests:: quantlib
    cd test-suite
    $(MAKE) -DQL_DIR=".."
    cd ..

# functions
functions::
    cd functions\ql\Functions
    $(MAKE) -DQL_DIR="..\..\.."
    cd ..\..\..

#all
all:: examples functions tests
    cd test-suite
    $(MAKE) -DQL_DIR=".." check
    cd ..

# Examples
examples:: quantlib
    cd Examples
    $(MAKE) -DQL_DIR="..\.."
    cd ..

# the installation directive requires the QL_DIR environment variable to
# point to the installed version of QuantLib
install : inst
inst:: quantlib
    if exist "$(QL_DIR)\ql" rmdir /S /Q "$(QL_DIR)\ql"
    xcopy ql\*.hpp "$(QL_DIR)\ql" /S /I
    xcopy ql\*.h   "$(QL_DIR)\ql" /S /I

    if exist "$(QL_DIR)\lib" rmdir /S /Q "$(QL_DIR)\lib"
    xcopy lib\*.lib "$(QL_DIR)\lib" /S /I
    xcopy lib\*.pdb "$(QL_DIR)\lib" /S /I


# Documentation
docs-all:
    cd Docs
    $(MAKE) all
    cd ..

docs-html:
    cd Docs
    $(MAKE) html
    cd ..

docs-htmlhelp:
    cd Docs
    $(MAKE) htmlhelp
    cd ..

docs-html-online:
    cd Docs
    $(MAKE) html-online
    cd ..

docs-pdf:
    cd Docs
    $(MAKE) pdf
    cd ..

docs-ps:
    cd Docs
    $(MAKE) ps
    cd ..


# Clean up
clean::
    cd ql
    $(MAKE) clean
    cd ..\functions\ql\Functions
    $(MAKE) clean
    cd ..\..\..\test-suite
    $(MAKE) clean
    cd ..\Examples
    $(MAKE) clean
    cd ..\Docs
    $(MAKE) clean
    cd ..