Revision 1438 trunk/Makefile

Makefile (revision 1438)
1 1
#default targets depending on compiler
2 2
all: $(CXX)-all
3
src: $(CXX)-src
3 4
debug: $(CXX)-debug
5
contrib: $(CXX)-contrib
6
test: $(CXX)-test
4 7
verify: $(CXX)-verify
5
test: $(CXX)-test
8
doc: $(CXX)-docs
6 9
shared: g++-shared
7 10
install: $(CXX)-install
8 11
clean: $(CXX)-clean
9 12

  
10 13
help:
11 14
	@echo "Help"
15
	@echo "\tFor GNU C++ compiler,"
16
	@echo "\tmake g++\n"
17
	@echo "\tFor Microsoft C++ compiler,"
18
	@echo "\tnmake cl\n"
12 19
	@echo "\tFor Clang C++ compiler,"
13 20
	@echo "\tmake clang++\n"
14
	@echo "\tFor GNU C++ compiler,"
15
	@echo "\tmake g++\n"
16 21
	@echo "\tFor Solaris Studio C++ compiler,"
17 22
	@echo "\tmake icpc\n"
18 23
	@echo "\tFor Intel C++ compiler,"
19 24
	@echo "\tmake CC\n"
20
	@echo "\tFor ADMB C++ compiler,"
25
	@echo "\tFor AMD C++ compiler(experimental),"
21 26
	@echo "\tmake openCC\n"
22 27

  
23 28
installer:
......
27 32

  
28 33
#Microsoft Visual C++
29 34
cl: cl-all
30
cl-all:
35
cl-all: 
36
	nmake cl-src
37
	nmake cl-contrib
38
cl-src:
31 39
	cd src& nmake all
32 40
cl-debug:
33 41
	cd src& nmake DEBUG=1 all
42
cl-contrib:
43
	cd contrib& nmake all
44
cl-docs:
45
	cd docs& nmake all
46
cl-test:
47
	cd tests & nmake all
34 48
cl-verify:
35 49
	cd src& nmake verify
36
cl-test:
37
	cd src& nmake tests
38 50
cl-install:
39 51
	cd src& nmake install
40 52
cl-clean:
41 53
	cd src& nmake clean
54
	cd contrib& nmake clean
42 55

  
43 56
#GNU
44 57
g++: g++-all
45
g++-all:
58
g++-all: 
59
	$(MAKE) g++-src
60
	$(MAKE) g++-contrib
61
g++-src:
46 62
	$(MAKE) --directory=src CC=gcc CXX=g++ all
47 63
g++-debug:
48 64
	$(MAKE) --directory=src CC=gcc CXX=g++ DEBUG=1 all
65
g++-contrib:
66
	$(MAKE) --directory=contrib CC=gcc CXX=g++ all
67
g++-docs:
68
	$(MAKE) --directory=docs CC=gcc CXX=g++ all
69
g++-test:
70
	$(MAKE) --directory=tests CC=gcc CXX=g++ all
49 71
g++-verify:
50
	$(MAKE) --directory=src CC=gcc CXX=g++ verify
51
g++-test:
52
	$(MAKE) --directory=src CC=gcc CXX=g++ tests
72
	$(MAKE) --directory=examples copy
73
	$(MAKE) --directory=tests CC=gcc CXX=g++ verify
53 74
g++-shared:
54 75
	$(MAKE) --directory=src CC=gcc CXX=g++ BUILD_SHARED_LIBRARY=1 all shared
55 76
g++-install:
56 77
	$(MAKE) --directory=src CC=gcc CXX=g++ install
57 78
g++-clean:
58 79
	$(MAKE) --directory=src CC=gcc CXX=g++ clean
80
	$(MAKE) --directory=contrib CC=gcc CXX=g++ clean
59 81

  
60 82
#clang
61 83
clang++: clang++-all
62 84
clang++-all:
85
	$(MAKE) clang++-src
86
	$(MAKE) clang++-contrib
87
clang++-src:
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff