Revision 1472 trunk/Makefile

Makefile (revision 1472)
9 9
copy: $(CXX)-copy
10 10
verify: $(CXX)-verify
11 11
doc: $(CXX)-docs
12
shared: g++-shared
12
shared: $(CXX)-shared
13 13
install: $(CXX)-install
14 14
clean: $(CXX)-clean
15 15

  
......
43 43
	cd contrib& nmake copy
44 44
cl-verify:
45 45
	cd tests& nmake verify
46
cl-shared:
47
	cd src& nmake shared
48
	cd contrib& nmake shared
49
	nmake cl-copy
46 50
cl-install:
47 51
	cd src& nmake install
48 52
cl-clean:
......
71 75
g++-verify:
72 76
	$(MAKE) --directory=tests CC=gcc CXX=g++ verify
73 77
g++-shared:
74
	$(MAKE) --directory=src CC=gcc CXX=g++ BUILD_SHARED_LIBRARY=1 all shared
78
	$(MAKE) --directory=src CC=gcc CXX=g++ CXXFLAGS=-fPIC shared
79
	$(MAKE) --directory=contrib CC=gcc CXX=g++ CXXFLAGS=-fPIC shared
80
	$(MAKE) g++-copy
75 81
g++-install:
76 82
	$(MAKE) --directory=src CC=gcc CXX=g++ install
77 83
g++-clean:
......
99 105
	$(MAKE) --directory=contrib copy
100 106
clang++-verify:
101 107
	$(MAKE) --directory=tests CC=clang CXX=clang++ verify
108
clang++-shared:
109
	$(MAKE) --directory=src CC=clang CXX=clang++ CXXFLAGS=-fpic shared
110
	$(MAKE) --directory=contrib CC=clang CXX=clang++ CXXFLAGS=-fpic shared
111
	$(MAKE) clang++-copy
102 112
clang++-install:
103 113
	$(MAKE) --directory=src CC=clang CXX=clang++ install
104 114
clang++-clean:
......
126 136
	$(MAKE) --directory=contrib copy
127 137
c++-verify:
128 138
	$(MAKE) --directory=tests CC=cc CXX=c++ verify
139
c++-shared:
140
	$(MAKE) --directory=src CC=cc CXX=c++ CXXFLAGS=-fPIC shared
141
	$(MAKE) --directory=contrib CC=cc CXX=c++ CXXFLAGS=-fPIC shared
142
	$(MAKE) c++-copy
129 143
c++-install:
130 144
	$(MAKE) --directory=src CC=cc CXX=c++ install
131 145
c++-clean:
......
153 167
	$(MAKE) --directory=contrib copy
154 168
CC-verify:
155 169
	$(MAKE) --directory=tests CC=cc CXX=CC verify
170
CC-shared:
171
	$(MAKE) --directory=src CC=cc CXX=CC CXXFLAGS=-fpic shared
172
	$(MAKE) --directory=contrib CC=cc CXX=CC CXXFLAGS=-fpic shared
173
	$(MAKE) CC-copy
156 174
CC-install:
157 175
	$(MAKE) --directory=src CC=cc CXX=CC install
158 176
CC-clean:
......
180 198
	$(MAKE) --directory=contrib copy
181 199
icpc-verify:
182 200
	$(MAKE) --directory=tests CC=icc CXX=icpc verify
201
icpc-shared:
202
	$(MAKE) --directory=src CC=icc CXX=icpc CXXFLAGS=-fpic shared
203
	$(MAKE) --directory=contrib CC=icc CXX=icpc CXXFLAGS=-fpic shared
204
	$(MAKE) icpc-copy
183 205
icpc-install:
184 206
	$(MAKE) --directory=src CC=icc CXX=icpc install
185 207
icpc-clean:
......
207 229
	$(MAKE) --directory=contrib copy
208 230
openCC-verify:
209 231
	$(MAKE) --directory=tests CC=opencc CXX=openCC verify
232
openCC-shared:
233
	$(MAKE) --directory=src CC=opencc CXX=openCC CXXFLAGS=-fPIC shared
234
	$(MAKE) --directory=contrib CC=opencc CXX=openCC CXXFLAGS=-fPIC shared
235
	$(MAKE) openCC-copy
210 236
openCC-install:
211 237
	$(MAKE) --directory=src CC=opencc CXX=openCC install
212 238
openCC-clean:

Also available in: Unified diff