Compare commits
642 Commits
R3.14.0-al
...
R3.14.0-al
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7f7130cb2a | ||
|
|
8640b175b1 | ||
|
|
dc6a85b842 | ||
|
|
70cf9b538d | ||
|
|
e745a49e1e | ||
|
|
ea026b4350 | ||
|
|
161538e309 | ||
|
|
688f386a13 | ||
|
|
3681457c88 | ||
|
|
827c41d895 | ||
|
|
ae74e745f3 | ||
|
|
79eebbd8f8 | ||
|
|
36ca3a4431 | ||
|
|
7170c80194 | ||
|
|
ef7a2bdcc4 | ||
|
|
7189465b92 | ||
|
|
5605812c4b | ||
|
|
f4b0c741a1 | ||
|
|
1e922e5f30 | ||
|
|
4e9f6b716a | ||
|
|
857c4a9545 | ||
|
|
c1bd5924df | ||
|
|
1e33387764 | ||
|
|
5645505564 | ||
|
|
c6f2974aa3 | ||
|
|
c9f8816dea | ||
|
|
63393cc259 | ||
|
|
7c4b968db7 | ||
|
|
84ced8336c | ||
|
|
d5a01b6968 | ||
|
|
65d5561b3d | ||
|
|
159ecd02f2 | ||
|
|
efd4f1e6e1 | ||
|
|
902ee295e0 | ||
|
|
9191e04ac9 | ||
|
|
8b782cd6bb | ||
|
|
34ea7db15b | ||
|
|
5ad4bfcd11 | ||
|
|
418b34ad85 | ||
|
|
ced62f1e5f | ||
|
|
a1bbcf660a | ||
|
|
a16fdfe45e | ||
|
|
a8f3980097 | ||
|
|
ddbb74a35e | ||
|
|
3817ea5f3a | ||
|
|
8ef0216cf5 | ||
|
|
a609b3394b | ||
|
|
26c082ffaf | ||
|
|
b1d14576c5 | ||
|
|
02c05f38b1 | ||
|
|
b68d241c44 | ||
|
|
575d3a0f3e | ||
|
|
36d073b4dd | ||
|
|
ef696499e4 | ||
|
|
8629f103d6 | ||
|
|
ebf9c197e8 | ||
|
|
0a5ddd49ba | ||
|
|
3f79faccca | ||
|
|
a50ffacc50 | ||
|
|
ca640904a0 | ||
|
|
31454ef08a | ||
|
|
7f874c909e | ||
|
|
abe09ef1d3 | ||
|
|
c0c2d30209 | ||
|
|
0a9f914076 | ||
|
|
f125776bcb | ||
|
|
8d9dd818b1 | ||
|
|
1204080477 | ||
|
|
367e07d3ca | ||
|
|
d7137d3e02 | ||
|
|
92983574e7 | ||
|
|
ad1ce3a686 | ||
|
|
45de0e4e1f | ||
|
|
7ec189d2ce | ||
|
|
9b401acc13 | ||
|
|
3e485fd56f | ||
|
|
4eb4715941 | ||
|
|
9800d8e2ad | ||
|
|
0087c72f82 | ||
|
|
fc97348590 | ||
|
|
61e0c86fc7 | ||
|
|
aa424e2774 | ||
|
|
0f2a5128f8 | ||
|
|
740d86ea48 | ||
|
|
24dee489ff | ||
|
|
b3eaf02074 | ||
|
|
5622204418 | ||
|
|
2c96464e62 | ||
|
|
64ff16a74f | ||
|
|
33c4b2ae7c | ||
|
|
249c3bf3b9 | ||
|
|
1ee4d67709 | ||
|
|
26a35b488f | ||
|
|
963b610948 | ||
|
|
024066bf8b | ||
|
|
a002147d9e | ||
|
|
c6c4b1b4c3 | ||
|
|
6fccebc954 | ||
|
|
cbabe522e1 | ||
|
|
272029ae1a | ||
|
|
fbac2a99e2 | ||
|
|
994f1a9b0c | ||
|
|
6447488b9f | ||
|
|
3743c81751 | ||
|
|
6dcafe6b1e | ||
|
|
e1abaa2dc0 | ||
|
|
72d8c794e3 | ||
|
|
e85024e5a5 | ||
|
|
14917296bc | ||
|
|
91ec3bdf7e | ||
|
|
e8718d8265 | ||
|
|
64de91f99f | ||
|
|
51c938abb9 | ||
|
|
e9410e53c1 | ||
|
|
bdf904da6d | ||
|
|
4235560c90 | ||
|
|
3d43d93ece | ||
|
|
70392bfc21 | ||
|
|
b58f4df8df | ||
|
|
4e570ce710 | ||
|
|
9f55d94f8b | ||
|
|
c4b424fa1b | ||
|
|
c460c8125c | ||
|
|
fdce468c56 | ||
|
|
838968dcf0 | ||
|
|
8b38402d4b | ||
|
|
48f0c6aede | ||
|
|
bddf3b2449 | ||
|
|
b5f8bf2381 | ||
|
|
baffcb0110 | ||
|
|
9e2297bd78 | ||
|
|
35a62778b8 | ||
|
|
7cac5852ef | ||
|
|
952a1ce32e | ||
|
|
fc30463c7c | ||
|
|
76055af9e7 | ||
|
|
b63a06409f | ||
|
|
1744eaecf9 | ||
|
|
00ec5cbdeb | ||
|
|
922dece548 | ||
|
|
e1a60910e9 | ||
|
|
f3f2a8f548 | ||
|
|
e12e8162cf | ||
|
|
1aa047bf61 | ||
|
|
128cedaa06 | ||
|
|
719c36eb5b | ||
|
|
8fd9d6cb8e | ||
|
|
0f9e890314 | ||
|
|
ffbe181b58 | ||
|
|
2276e9f476 | ||
|
|
b4e3bed661 | ||
|
|
84c136f9e5 | ||
|
|
41824cde94 | ||
|
|
7997b8595a | ||
|
|
5eafdfd398 | ||
|
|
16701a7f3e | ||
|
|
dc86140f4e | ||
|
|
550e74f0fd | ||
|
|
a56080e419 | ||
|
|
e2c318b2fb | ||
|
|
0f1ed56f07 | ||
|
|
6b9c553dd0 | ||
|
|
2de1587cba | ||
|
|
a4d51830d8 | ||
|
|
618cee0ac6 | ||
|
|
13aba586ca | ||
|
|
74b5168f99 | ||
|
|
3cba651ae8 | ||
|
|
745b4dc19e | ||
|
|
2a3d025bda | ||
|
|
e42bd02bb6 | ||
|
|
29ff706f0f | ||
|
|
2a2d1f2bc6 | ||
|
|
e88eea7693 | ||
|
|
999b246da0 | ||
|
|
da11287c31 | ||
|
|
a38e3b96b6 | ||
|
|
44e18d649e | ||
|
|
b27caeab76 | ||
|
|
ed5e4a2611 | ||
|
|
d6e1e7e027 | ||
|
|
d7afe38857 | ||
|
|
d24ebb4803 | ||
|
|
a30c122f83 | ||
|
|
aaccfedfd8 | ||
|
|
a00707b719 | ||
|
|
a6e1e76130 | ||
|
|
63ffdc4564 | ||
|
|
ea9aba2917 | ||
|
|
3fb8147771 | ||
|
|
b67619c0fc | ||
|
|
571136b337 | ||
|
|
c532fc4a1c | ||
|
|
034e3129d2 | ||
|
|
4cdc6b2279 | ||
|
|
e7133a50ec | ||
|
|
4e9a68e2a5 | ||
|
|
b42049ff64 | ||
|
|
889b9742f4 | ||
|
|
8d5123d516 | ||
|
|
9873fcbe58 | ||
|
|
2e59061b67 | ||
|
|
4a4e5a8682 | ||
|
|
2c577b3391 | ||
|
|
e1e3b4c39e | ||
|
|
26536a647e | ||
|
|
9ba9afe834 | ||
|
|
7dec56450b | ||
|
|
45433c9857 | ||
|
|
1a9941689e | ||
|
|
3fa13a1d8f | ||
|
|
aca1c5f76e | ||
|
|
e87f32f6e9 | ||
|
|
40946c702a | ||
|
|
544913d509 | ||
|
|
ff7dcd1e38 | ||
|
|
41aba1370d | ||
|
|
7635c70877 | ||
|
|
1845113762 | ||
|
|
17b7777e74 | ||
|
|
3517862871 | ||
|
|
145f5ca087 | ||
|
|
36fc409e30 | ||
|
|
379b452241 | ||
|
|
167e17f5bc | ||
|
|
0b834904f4 | ||
|
|
ca02b34b6f | ||
|
|
8b48db3da0 | ||
|
|
6348d4c311 | ||
|
|
ad0819ba51 | ||
|
|
549de0c8f9 | ||
|
|
e5cafc9f58 | ||
|
|
771de45cca | ||
|
|
757553668d | ||
|
|
b6de9cf931 | ||
|
|
7b3c96471d | ||
|
|
1867f33eeb | ||
|
|
4fb58d5d46 | ||
|
|
0940527c65 | ||
|
|
8db5931fb2 | ||
|
|
17582955a9 | ||
|
|
27cd4bbd26 | ||
|
|
c4b03e703b | ||
|
|
a33ced77fc | ||
|
|
e53da894f5 | ||
|
|
7be2c2db6a | ||
|
|
85f5100665 | ||
|
|
66900cefc9 | ||
|
|
0eb794b5fd | ||
|
|
818ffecc45 | ||
|
|
f63a958a3b | ||
|
|
cb0f8f6879 | ||
|
|
7760d0e025 | ||
|
|
22bb0d96d2 | ||
|
|
2b650db1bc | ||
|
|
c0957fb625 | ||
|
|
0775b0c397 | ||
|
|
6f312ac705 | ||
|
|
be26f7f684 | ||
|
|
e04c8fdd47 | ||
|
|
958890ea64 | ||
|
|
2c63f42dbb | ||
|
|
8a399c6fcb | ||
|
|
a9fe5348d9 | ||
|
|
f550878fed | ||
|
|
a1801b7808 | ||
|
|
10c1cd7569 | ||
|
|
c38a119e68 | ||
|
|
88457cce79 | ||
|
|
63fb42a888 | ||
|
|
212b3212cc | ||
|
|
2a4cbd456e | ||
|
|
2f3c7ae269 | ||
|
|
94e8d24f5a | ||
|
|
36f57b79db | ||
|
|
0e740e83cb | ||
|
|
a0c392423e | ||
|
|
8c0b42356f | ||
|
|
83cb77131d | ||
|
|
94fa715e96 | ||
|
|
47d9285617 | ||
|
|
a97d5e18cd | ||
|
|
b59e2d7793 | ||
|
|
0ecf80c4bf | ||
|
|
e3dcae62d8 | ||
|
|
4323532096 | ||
|
|
37977cef1b | ||
|
|
93987971ab | ||
|
|
33fa1b7ff8 | ||
|
|
9e52a5b095 | ||
|
|
c82ea31a40 | ||
|
|
603f2cfd9d | ||
|
|
a9ff0223af | ||
|
|
e414071448 | ||
|
|
03e53adfab | ||
|
|
807ed1317d | ||
|
|
85485063cf | ||
|
|
f121fbb43b | ||
|
|
b572a856e9 | ||
|
|
93aa11d2f6 | ||
|
|
2a763a57ae | ||
|
|
6eb7163723 | ||
|
|
35b2755efe | ||
|
|
6ccd369d90 | ||
|
|
f1ada22570 | ||
|
|
60608a662b | ||
|
|
aef1418926 | ||
|
|
3e7c9345c3 | ||
|
|
e4641c3d3b | ||
|
|
50f60bae50 | ||
|
|
c188778d53 | ||
|
|
0ce45f849a | ||
|
|
bf0537cf73 | ||
|
|
dc957f400f | ||
|
|
8ba3da20af | ||
|
|
7bc172f355 | ||
|
|
ab468c8b8c | ||
|
|
a1fbe85e7b | ||
|
|
cebb5854cf | ||
|
|
8d9a97ef1d | ||
|
|
74f58efb24 | ||
|
|
d8cb7ff848 | ||
|
|
6174ebefde | ||
|
|
a885e11a74 | ||
|
|
56c0dbc4b2 | ||
|
|
49a79bf8fb | ||
|
|
6aadf7f5fc | ||
|
|
7286d6be96 | ||
|
|
8460ec69f7 | ||
|
|
5de0de0e14 | ||
|
|
10bd2f2372 | ||
|
|
2f90f91f22 | ||
|
|
733204b3c2 | ||
|
|
1dacd15eea | ||
|
|
e80ea9a289 | ||
|
|
da3c88ea9a | ||
|
|
1a7fd71b2f | ||
|
|
27ffa8e384 | ||
|
|
6a52eff141 | ||
|
|
865ab30162 | ||
|
|
4729b48bd7 | ||
|
|
855f1afc9d | ||
|
|
1bb85f670c | ||
|
|
321dae127a | ||
|
|
e7200ab600 | ||
|
|
c5b6b92361 | ||
|
|
8a8f1a7ccf | ||
|
|
8ded7b56ab | ||
|
|
e8dec4073d | ||
|
|
5f6be5e6e8 | ||
|
|
c558d86ba9 | ||
|
|
748f8f9131 | ||
|
|
7d6ded2ad7 | ||
|
|
e10d86cd05 | ||
|
|
d704cd7bb8 | ||
|
|
8b2f9c138a | ||
|
|
728a319f3d | ||
|
|
10d8caa7ea | ||
|
|
a33c20599c | ||
|
|
29f275ab82 | ||
|
|
d85ee06cee | ||
|
|
5882c4d675 | ||
|
|
55bd72a6b1 | ||
|
|
ca53e44f8a | ||
|
|
c5bc8f753b | ||
|
|
79f66abba3 | ||
|
|
1e63230768 | ||
|
|
a1aea5a3d7 | ||
|
|
258a09c5e0 | ||
|
|
99454b6ca6 | ||
|
|
35e4be9f4a | ||
|
|
9a0335326f | ||
|
|
41232fae4f | ||
|
|
70b368c854 | ||
|
|
1cfca09aa1 | ||
|
|
c50d84e50d | ||
|
|
dc3d2b9ff9 | ||
|
|
d3dc9bee2b | ||
|
|
7a560a88b1 | ||
|
|
2a150bd018 | ||
|
|
943982da70 | ||
|
|
e5e747c6c5 | ||
|
|
ffdd3ce510 | ||
|
|
db43b6e983 | ||
|
|
debb5b5814 | ||
|
|
745977642e | ||
|
|
3761af7cd2 | ||
|
|
abe1bc9e98 | ||
|
|
57bf87beac | ||
|
|
e7bfee6f8d | ||
|
|
ed492f407c | ||
|
|
013587eeeb | ||
|
|
e347cbd2e6 | ||
|
|
46aa89399a | ||
|
|
ad3da31c06 | ||
|
|
329e3b5177 | ||
|
|
30cb21cae3 | ||
|
|
2cdc26d2fe | ||
|
|
625557cd1d | ||
|
|
a74b043aff | ||
|
|
7a334eb417 | ||
|
|
bf2e145ed1 | ||
|
|
c2aa43750f | ||
|
|
4a53d963b3 | ||
|
|
e0181dfae0 | ||
|
|
a3aac0aaa2 | ||
|
|
d4a6bb29f4 | ||
|
|
5acd6d9547 | ||
|
|
a0019d0e5c | ||
|
|
d8d0e6b86d | ||
|
|
dbe9c8e75f | ||
|
|
4c247070aa | ||
|
|
cbe80325be | ||
|
|
7331ddbd78 | ||
|
|
4a76aa1d64 | ||
|
|
12075c3274 | ||
|
|
bf7b7c7aa9 | ||
|
|
6ebdda485d | ||
|
|
79929bbacd | ||
|
|
6c1be6f025 | ||
|
|
951db45c95 | ||
|
|
0472e5f546 | ||
|
|
bfe7e7d44d | ||
|
|
e7115758de | ||
|
|
fc076ff851 | ||
|
|
e8b0b09c3f | ||
|
|
3e743436cd | ||
|
|
cd63b99470 | ||
|
|
a7bc964a3b | ||
|
|
22f18ef226 | ||
|
|
2fddf4ffc2 | ||
|
|
4e55497467 | ||
|
|
1cecf8593b | ||
|
|
693fc2e591 | ||
|
|
bdcccedb95 | ||
|
|
321dfb609a | ||
|
|
6f3a2f8b4a | ||
|
|
93a9e56502 | ||
|
|
7eea9df5d5 | ||
|
|
582c20e9a6 | ||
|
|
e4a7e695ae | ||
|
|
d1b985609d | ||
|
|
b830f40620 | ||
|
|
5d0fc9e609 | ||
|
|
b2bc95d8b8 | ||
|
|
d6d842a317 | ||
|
|
8958f19f9a | ||
|
|
e8cc2b0edf | ||
|
|
e941c6d19f | ||
|
|
6d0ee622c6 | ||
|
|
93364c06d6 | ||
|
|
f8675d987e | ||
|
|
b62f877c69 | ||
|
|
52de8d577a | ||
|
|
ec1aa66cd3 | ||
|
|
e35e8e69b7 | ||
|
|
44f9fbd6c3 | ||
|
|
411b6176ec | ||
|
|
4baf145c50 | ||
|
|
e57e9bcac0 | ||
|
|
9cc502dbe6 | ||
|
|
7c260ef69a | ||
|
|
cb2bbe86dd | ||
|
|
d0574e2f19 | ||
|
|
cfe2ed5f17 | ||
|
|
1ecd0c520c | ||
|
|
7415fdbed3 | ||
|
|
1d14996b28 | ||
|
|
2aa0507c12 | ||
|
|
a50444c61a | ||
|
|
3057b9627c | ||
|
|
250554ed71 | ||
|
|
ad5db9a914 | ||
|
|
4f09be744f | ||
|
|
296db96a6c | ||
|
|
43822c9e35 | ||
|
|
8dd2439e65 | ||
|
|
418aa20de6 | ||
|
|
774f6dc27e | ||
|
|
8c0600b372 | ||
|
|
d8e1d92ab9 | ||
|
|
afdd6e7bee | ||
|
|
fb1f6751d3 | ||
|
|
cb4bfd4640 | ||
|
|
b1d9ce2941 | ||
|
|
b236dedfe8 | ||
|
|
a93f6d5e7e | ||
|
|
9ab0e7ec59 | ||
|
|
06c360c5eb | ||
|
|
c1ba676103 | ||
|
|
36a69befd8 | ||
|
|
46ffb184ff | ||
|
|
a1e38ee7fd | ||
|
|
a64805a69f | ||
|
|
fef788d23f | ||
|
|
378e7cc772 | ||
|
|
02caca0732 | ||
|
|
59b6494147 | ||
|
|
03ea50ac35 | ||
|
|
539e635d0c | ||
|
|
95a0478582 | ||
|
|
6ae32acf9b | ||
|
|
625d383805 | ||
|
|
164b1948fc | ||
|
|
0d742d5408 | ||
|
|
36a46d4aad | ||
|
|
12b49d1353 | ||
|
|
64274356d1 | ||
|
|
fdb3b85bde | ||
|
|
d95e8b2822 | ||
|
|
3e09b0fd52 | ||
|
|
8ea97a12b5 | ||
|
|
0af2304a36 | ||
|
|
4a2999770b | ||
|
|
fe4cad085e | ||
|
|
d3c0f075cf | ||
|
|
a5ee8cf64a | ||
|
|
68e3f07c6a | ||
|
|
85b58a1e05 | ||
|
|
d57ab33a44 | ||
|
|
47519588b6 | ||
|
|
1c0ef4c177 | ||
|
|
d4433eb33c | ||
|
|
31ee7d7e07 | ||
|
|
22545f79ed | ||
|
|
e7c18f1dc9 | ||
|
|
be8e43a227 | ||
|
|
458337bb75 | ||
|
|
f89e77438d | ||
|
|
ad7dc7153c | ||
|
|
faa077ca9e | ||
|
|
37fbc3b19d | ||
|
|
26a9323422 | ||
|
|
25b6f3da80 | ||
|
|
5700c0a8c2 | ||
|
|
f110f47011 | ||
|
|
34198a1824 | ||
|
|
f4397da253 | ||
|
|
55e6d1a8d5 | ||
|
|
7a5b239bff | ||
|
|
a67a2852bc | ||
|
|
5f5c51fc44 | ||
|
|
1b128857c8 | ||
|
|
0217cb7b49 | ||
|
|
fd5b26a387 | ||
|
|
d622dc7d31 | ||
|
|
25ad71b167 | ||
|
|
25617e3917 | ||
|
|
284385549e | ||
|
|
40e2d2be24 | ||
|
|
9470277223 | ||
|
|
da2ad045bf | ||
|
|
fcdec162d9 | ||
|
|
78d1474884 | ||
|
|
f3497249b8 | ||
|
|
ba569b18d3 | ||
|
|
f861933932 | ||
|
|
0c8f90dc59 | ||
|
|
e1c196f0ad | ||
|
|
8685b5d48c | ||
|
|
7f16818f53 | ||
|
|
24b8e85338 | ||
|
|
d486eb746f | ||
|
|
c8f4fac5dc | ||
|
|
c1f7601ad4 | ||
|
|
1052c6b2b7 | ||
|
|
16d897ff93 | ||
|
|
f211944fb3 | ||
|
|
f3bd7daba2 | ||
|
|
1eee39d1c9 | ||
|
|
1d26155a03 | ||
|
|
8b452face6 | ||
|
|
066dff91f2 | ||
|
|
76f6bb3c2f | ||
|
|
1db05de682 | ||
|
|
9686356aa1 | ||
|
|
17b939f6d6 | ||
|
|
8101eb486f | ||
|
|
5fe64ffc92 | ||
|
|
ffe38880e9 | ||
|
|
6943e07f55 | ||
|
|
9723bfc8cd | ||
|
|
6b2c93673e | ||
|
|
06bfcd795d | ||
|
|
a0cfe60c1e | ||
|
|
019441ad97 | ||
|
|
2076e3f802 | ||
|
|
6fc0d7f8d7 | ||
|
|
8c4747fe7b | ||
|
|
656e4355a7 | ||
|
|
6fd085c371 | ||
|
|
4f02dbb007 | ||
|
|
e090cfbc64 | ||
|
|
be42414408 | ||
|
|
76d9b0c5c5 | ||
|
|
c815fd04ff | ||
|
|
86c80186d3 | ||
|
|
6153a1f0ae | ||
|
|
25bb508f3d | ||
|
|
f113853b05 | ||
|
|
e3bd7003ba | ||
|
|
c951e901aa | ||
|
|
3b422a60fa | ||
|
|
b569796b4a | ||
|
|
54a056fef5 | ||
|
|
229a796e06 | ||
|
|
6d1ad48c39 | ||
|
|
d109acbc0e | ||
|
|
1f27a82828 | ||
|
|
2c26c663cb | ||
|
|
cb6dfd31d0 | ||
|
|
a3fe65a59a | ||
|
|
87a07b3f22 | ||
|
|
be993f0de6 | ||
|
|
6922c4586d | ||
|
|
5d8b53ab3e | ||
|
|
b8f736fac4 | ||
|
|
67c207d352 | ||
|
|
4784b73a9f | ||
|
|
2ded135da9 | ||
|
|
f9b3f734f0 | ||
|
|
03a89c0f2e | ||
|
|
8cae692103 | ||
|
|
1583ab889a | ||
|
|
d1074a3a75 | ||
|
|
de4663ede8 | ||
|
|
0a67e36522 | ||
|
|
cd94aecbee | ||
|
|
e035bb19b6 | ||
|
|
1fda02a9fb | ||
|
|
4ef6484e9e | ||
|
|
eecf335a1f | ||
|
|
9022f378ea | ||
|
|
cae8a6b564 | ||
|
|
0c1583ff7b | ||
|
|
8e49220af5 | ||
|
|
1e6d54f6da | ||
|
|
d107f664e5 | ||
|
|
95f536d8f2 | ||
|
|
e9dbe33a14 | ||
|
|
3e548bdd60 | ||
|
|
bf2d280464 |
@@ -35,7 +35,7 @@ To build only for WIN32 and not cross compile for IOC development type
|
||||
To compile EPICS on WIN32, we need
|
||||
|
||||
WindRiver System's Tornado (used: 1.0) (not required if host only build)
|
||||
Microsoft's Visual C/C++ (used: 4.0) (borland C++ rumored to work also)
|
||||
Microsoft's Visual C/C++ (used: 6.0) (borland C++ rumored to work also)
|
||||
|
||||
and some tools:
|
||||
|
||||
@@ -192,3 +192,8 @@ in a visual C++ make file project: "kill caRepeater.exe&make -C ..". Be careful
|
||||
not to introduce additional spaces around the &. The kill.exe command is in the
|
||||
NT resource kit.
|
||||
|
||||
6) When compiling applications that link with EPICS base you will need to
|
||||
include from <epics>\base\include, include from <epics>\base\include\os\win32,
|
||||
and augment the link path with <epics>\base\lib\win32-x86. If the visual C++
|
||||
/Za option is not used then you will also need to define __STDC__ to be zero
|
||||
on the command line.
|
||||
|
||||
1632
README.htm
1632
README.htm
File diff suppressed because it is too large
Load Diff
@@ -2,15 +2,175 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
||||
<meta name="GENERATOR" content="Mozilla/4.72 [en] (X11; U; SunOS 5.8 sun4u) [Netscape]">
|
||||
<meta name="GENERATOR" content="Mozilla/4.76 [en] (X11; U; SunOS 5.8 sun4u) [Netscape]">
|
||||
<title>EPICS Release baseR3.14
|
||||
</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<center>
|
||||
<h1>
|
||||
EPICS Release base 3.14.0alpha1</h1>
|
||||
This is the first release of 3.14. This is the first release that supports
|
||||
EPICS Release base 3.14.0alpha2</h1></center>
|
||||
Since the alpha1 release some major changes were made to the build system,
|
||||
to some of the libCom facilities, and to the iocsh facilities.
|
||||
<p>The unbundled version of the sequencer has been build and tested with
|
||||
this release. You must obtain a version of the sequencer that has been
|
||||
built against alpha2.
|
||||
<p>A verion of the HPlanGpib support has been built and tested with this
|
||||
release. Again you must obtain a version that builds with alpha2.
|
||||
<p>A new update to the Application Developer's Guide is available for this
|
||||
release.
|
||||
<h3>
|
||||
Build changes</h3>
|
||||
|
||||
<ul>
|
||||
<li>
|
||||
Operating system independant builds are now done in an O.Common subdirectory
|
||||
and then installed instead of being performed directly in an install directory.</li>
|
||||
|
||||
<li>
|
||||
Build definition names (e.g. RECTYPES, MENUS, DBDNAME, and BPTS) have been
|
||||
changed to specify the name of the file to be created and installed instead
|
||||
of the source file name.</li>
|
||||
|
||||
<li>
|
||||
All db and dbd related definitions and rules have been moved into base/configure/RULES.Db
|
||||
file. The rules now allow multiple dbd files and registerRecordDeviceDriver
|
||||
files to be created in a single Makefile.</li>
|
||||
|
||||
<li>
|
||||
"gnumake depends" no longer depends on a complete buildInstall.</li>
|
||||
</ul>
|
||||
|
||||
<h3>
|
||||
Converting alpha1 applications to alpha2</h3>
|
||||
Build modifications in alpha2 require the following changes to existing
|
||||
R3.14 applications.
|
||||
<ul>
|
||||
<li>
|
||||
Remove the now unused RULES files</li>
|
||||
|
||||
<li>
|
||||
</li>
|
||||
|
||||
<ul>./configure/RULES.Db
|
||||
<br>./configure/RULES.registerRecordDeviceDriver
|
||||
<br> </ul>
|
||||
|
||||
<li>
|
||||
Delete the following line in ./configure/RULES</li>
|
||||
|
||||
<ul>
|
||||
<br>include $(TOP)/configure/RULES.registerRecordDeviceDriver</ul>
|
||||
</ul>
|
||||
|
||||
<ul>
|
||||
<li>
|
||||
In <top>/configure/Makefile change</li>
|
||||
|
||||
<ul>
|
||||
<br>@$(PERL) $(TOOLS)/makeConfigAppInclude.pl $(T_A) $@ $(TOP)</ul>
|
||||
to
|
||||
<ul>@$(PERL) $(TOOLS)/makeConfigAppInclude.pl $(EPICS_HOST_ARCH) $(T_A)
|
||||
$@ $(TOP)
|
||||
<br> </ul>
|
||||
and add the line
|
||||
<ul>
|
||||
<br>depends: install
|
||||
<br> </ul>
|
||||
to the bottom of the Makefile.
|
||||
<ul> </ul>
|
||||
</ul>
|
||||
|
||||
<ul>
|
||||
<li>
|
||||
In all *App/*Db/Makefileschange</li>
|
||||
|
||||
<ul>
|
||||
<br>include $(TOP)/configure/RULES.Db</ul>
|
||||
to
|
||||
<ul>include $(TOP)/configure/RULES</ul>
|
||||
|
||||
<li>
|
||||
In all *App/src/Makefile files</li>
|
||||
|
||||
<ul> </ul>
|
||||
change DBDNAME = <name>App to
|
||||
DBD += <name>
|
||||
<ul> </ul>
|
||||
and remove the line
|
||||
<br>
|
||||
<ul>DBDEXPAND = <name>Include.dbd
|
||||
<br> </ul>
|
||||
NOTE: If any of your *App/*Db/Makefiles contain "DBDNAME =" lines you should
|
||||
make these same changes in that *Db dirctory.
|
||||
<br>
|
||||
<li>
|
||||
In all *App/src/Makefile Makefiles</li>
|
||||
|
||||
<ul> </ul>
|
||||
change RECTYPES=<name>.h to
|
||||
DBDINC+=<name>
|
||||
<ul> </ul>
|
||||
change MENUS=<name>.h to
|
||||
DBDINC+=<name></ul>
|
||||
|
||||
<ul>change BPTS to
|
||||
DBD
|
||||
<p>change INSTALLDB to
|
||||
DB
|
||||
<p>change DBDINSTALL to
|
||||
DBD
|
||||
<br>
|
||||
<li>
|
||||
In all example *App/src/Makefile files change</li>
|
||||
|
||||
<ul>
|
||||
<br>example_SRCS_DEFAULT += registerRecordDeviceDriver.c</ul>
|
||||
to
|
||||
<ul>example_SRCS_DEFAULT += <name>_registerRecordDeviceDriver.cpp
|
||||
<br> </ul>
|
||||
where <name> is the base name of a <name>.dbd file which was created
|
||||
from a <name>Include.dbd file and which will be loaded in a st.cmd or
|
||||
stcmd.host script (e.g. example).
|
||||
<br>
|
||||
<li>
|
||||
In ./iocBoot/ioc<name>/st.cmd files change</li>
|
||||
|
||||
<br>
|
||||
<ul>dbLoadDatabase("dbd/exampleApp.dbd")</ul>
|
||||
to
|
||||
<ul>dbLoadDatabase("dbd/example.dbd")
|
||||
<br> </ul>
|
||||
|
||||
<li>
|
||||
In <top>/iocBoot/ioc<name>/stcmd.host files change</li>
|
||||
|
||||
<ul>
|
||||
<br>dbLoadDatabase("../../dbd/exampleApp.dbd",0,0)</ul>
|
||||
to
|
||||
<ul>dbLoadDatabase("../../dbd/example.dbd",0,0)</ul>
|
||||
</ul>
|
||||
|
||||
<h3>
|
||||
EPICS_HOST_ARCH changes</h3>
|
||||
GNU compiler builds are now determined by the value of EPICS_HOST_ARCH
|
||||
and are no longer specified in CONFIG_SITE. All references to the
|
||||
ANSI (ACC/GCC) and CPLUSPLUS (CCC/G++) macros have been removed.
|
||||
<br>
|
||||
<h3>
|
||||
libCom</h3>
|
||||
Most of the library routines and files starting with the prefix osi have
|
||||
been changed to start with epics. Several also had major changes to their
|
||||
user interface. See the latest version of the Application Developer's Guide
|
||||
for details.
|
||||
<br>
|
||||
<center>
|
||||
<h2>
|
||||
EPICS Release base 3.14.0alpha1 Notes</h2></center>
|
||||
|
||||
<p><br>
|
||||
<p>This is the first release of 3.14. This is the first release that supports
|
||||
iocCore on platforms besides vxWorks.
|
||||
<p>iocCore is now supported on the following platforms:
|
||||
<ul>
|
||||
@@ -33,7 +193,8 @@ Linux</li>
|
||||
<br>Has been tested on Redhat x86 platforms.
|
||||
<li>
|
||||
winNT</li>
|
||||
</ul>
|
||||
|
||||
<br>Testing has been done with visual C++ 6.0.</ul>
|
||||
A new version of the Application Developers Guide is available. The following
|
||||
gives links to the new Application Developer's Guide and to RTEMS information.
|
||||
<p>http://www.aps.anl.gov/epics/modules/base/R3-14.php
|
||||
|
||||
@@ -1,49 +1,75 @@
|
||||
# CONFIG.Host.Borland
|
||||
#
|
||||
# This file is maintained by the EPICS community.
|
||||
# Sites may override these definitions in CONFIG_SITE.Borland
|
||||
|
||||
# Use std path variables from ms
|
||||
HOME = $(HOMEDRIVE)$(HOMEPATH)
|
||||
|
||||
BORLAND_LIB = $(BORLAND)\\lib
|
||||
BORLAND_INC = $(BORLAND)\\include
|
||||
BORLAND_BIN = $(BORLAND)\\bin
|
||||
|
||||
#
|
||||
#
|
||||
ANSI = ACC
|
||||
CPLUSPLUS = CCC
|
||||
|
||||
#
|
||||
#
|
||||
WINLINK = ilink32
|
||||
# -q supress command line banner
|
||||
WINLINK = $(BORLAND_BIN)/ilink32 -q
|
||||
|
||||
RCCMD = brcc32 -i . -i .. -i $(INSTALL_INCLUDE) -i $(EPICS_BASE_INCLUDE) -fo $@ $<
|
||||
# -l specifies default language
|
||||
# -fo Renames the output .RES file
|
||||
RCCMD = $(BORLAND_BIN)/brcc32 $(subst -I,-i,$(INCLUDES)) -l0x409 -fo$@ $<
|
||||
|
||||
ARCMD = tlib $@
|
||||
ARCMD = $(BORLAND_BIN)/tlib $@
|
||||
|
||||
#
|
||||
# Configure OS vendor C compiler
|
||||
CCLINKOPT = -WM -D_WIN32
|
||||
ACC = bcc32 $(CCLINKOPT)
|
||||
# Configure Borland C compiler
|
||||
# -q suppress compiler identification banner
|
||||
# -tWM generate a 32-bit multi-threaded target
|
||||
# -tWD generate a .DLL executable
|
||||
# -a8 quad word alignment
|
||||
# -D_WIN32 macro defined to be consistant with Microsoft Visual C++
|
||||
# -D_RTLDLL macro defined to use Borland C++ RTL library
|
||||
CCLINKOPT = -q -tWM -tWD -a8 -D_WIN32 -D_RTLDLL
|
||||
ACC = $(BORLAND_BIN)/bcc32 $(CCLINKOPT)
|
||||
|
||||
#
|
||||
# __STDC__=0 is a real great idea of Jeff that gives us both:
|
||||
# 1) define STDC for EPICS code (pretend ANSI conformance)
|
||||
# 2) set it to 0 to use MS C "extensions" (open for _open etc.)
|
||||
# because MS uses: if __STDC__ ... disable many nice things
|
||||
# __STDC__=0 works but not as cleanly as with
|
||||
# Microsoft Visual C++.
|
||||
# The Borland header files use ifdef __STDC__
|
||||
# to disable many nice things. This is overridden
|
||||
# by defining NO_BORLAND_STDC in the Makefile.Host.
|
||||
#
|
||||
ifdef NO_BORLAND_STDC
|
||||
ACC_ANSI = $(ACC)
|
||||
ACC_STRICT = $(ACC)
|
||||
else
|
||||
ACC_ANSI = $(ACC) -D__STDC__=0
|
||||
ACC_STRICT = $(ACC) -D__STDC__=0
|
||||
ACC_TRAD = $(ACC) /nologo
|
||||
endif
|
||||
ACC_TRAD = $(ACC)
|
||||
|
||||
#
|
||||
ACC_WARN_YES = -w -g0
|
||||
# -w display warnings on
|
||||
# -g0 no limit to warning messages
|
||||
# some warning message here are always disabled because they are
|
||||
# trivial and numerous
|
||||
# -w-8012 Comparing signed and unsigned values
|
||||
# -w-8060 Possibly incorrect assignment
|
||||
# -w-8071 Conversion may lose significant digits
|
||||
ACC_WARN_YES = -w -g0 -w-8012 -w-8060 -w-8071
|
||||
# -w- display warnings off
|
||||
ACC_WARN_NO = -w-
|
||||
|
||||
#
|
||||
# -O1 optimization for size
|
||||
# -k- turn off standard stack frame
|
||||
# -H- Turn off precompiled headers
|
||||
# -R- Don't include browser info in .obj files
|
||||
ACC_OPT_YES = -k- -H- -R- -O1
|
||||
# -H- turn off precompiled headers
|
||||
# -R- don't include browser info in .obj files
|
||||
# -O1 optimization for size
|
||||
# -v- turn off source debugging
|
||||
# -vi control expansion of inline functions
|
||||
ACC_OPT_YES = -k- -H- -R- -O1 -v- -vi
|
||||
|
||||
#
|
||||
ACC_OPT_NO =
|
||||
@@ -57,26 +83,39 @@ ACC_SLIBS_NO=
|
||||
|
||||
# Configure OS vendor C++ compiler
|
||||
#
|
||||
# __STDC__=0 is a real great idea of Jeff that gives us both:
|
||||
# 1) define STDC for EPICS code (pretend ANSI conformance)
|
||||
# 2) set it to 0 to use MS C "extensions" (open for _open etc.)
|
||||
# because MS uses: if __STDC__ ... disable many nice things
|
||||
# __STDC__=0 works but not as cleanly as with
|
||||
# Microsoft Visual C++.
|
||||
# The Borland header files use ifdef __STDC__
|
||||
# to disable many nice things. This is overridden
|
||||
# by defining NO_BORLAND_STDC in the Makefile.Host.
|
||||
#
|
||||
CCC = bcc32 $(CCLINKOPT)
|
||||
CCC = $(BORLAND_BIN)/bcc32 $(CCLINKOPT)
|
||||
ifdef NO_BORLAND_STDC
|
||||
CCC_NORMAL = $(CCC)
|
||||
CCC_STRICT = $(CCC)
|
||||
else
|
||||
CCC_NORMAL = $(CCC) -D__STDC__=0
|
||||
CCC_STRICT = $(CCC) -D__STDC__=0
|
||||
endif
|
||||
CCC_TEMPL_INST_FLAG =
|
||||
|
||||
#
|
||||
CCC_WARN_YES = -w -g0
|
||||
# -w display warnings on
|
||||
# -g0 no limit to warning messages
|
||||
# -w-8012 Comparing signed and unsigned values
|
||||
# -w-8060 Possibly incorrect assignment
|
||||
# -w-8071 Conversion may lose significant digits
|
||||
CCC_WARN_YES = -w -g0 -w-8012 -w-8060 -w-8071
|
||||
# -w- display warnings off
|
||||
CCC_WARN_NO = -w-
|
||||
|
||||
#
|
||||
# -O1 optimization for size
|
||||
# -k- turn off standard stack frame
|
||||
# -H- Turn off precompiled headers
|
||||
# -R- Don't include browser info in .obj files
|
||||
CCC_OPT_YES = -k- -H- -R- -O1
|
||||
# -O1 optimization for size
|
||||
# -v- turn off source debugging
|
||||
# -vi control expansion of inline functions
|
||||
CCC_OPT_YES = -k- -H- -R- -O1 -v- -vi
|
||||
|
||||
#
|
||||
CCC_OPT_NO =
|
||||
@@ -88,16 +127,15 @@ CCC_SLIBS_YES=
|
||||
CCC_SLIBS_NO=
|
||||
|
||||
PROD_VERSION=3.13
|
||||
# -w display warnings on
|
||||
# -C clear state before linking
|
||||
# -Gn no state files
|
||||
# -x no map
|
||||
# -Gi generate import library
|
||||
# -Tpd this flag specifies the output file type
|
||||
# -aa this flag specifies the application type
|
||||
# -c case sensitive linking
|
||||
LINK_OPT_FLAGS_YES = -w -C -Gn -x -Gi -Tpd -aa -c
|
||||
LINK_OPT_FLAGS_NO = -w- -C -Gn -x -Gi -Tpd -aa -c
|
||||
# -C clear state before linking
|
||||
# -Gi generate import library
|
||||
# -Gn no state files
|
||||
# -Tpd targets a Windows .DLL file
|
||||
# -x no map
|
||||
# -w display warnings on
|
||||
LINK_OPT_FLAGS_YES = -c -C -Gi -Gn -Tpd -x -w
|
||||
LINK_OPT_FLAGS_NO = -c -C -Gi -Gn -Tpd -x -w-
|
||||
WIN32_DLLFLAGS = $(LINK_OPT_FLAGS_$(HOST_OPT))
|
||||
OPT_LDFLAGS =
|
||||
|
||||
@@ -111,6 +149,7 @@ ARCH_CLASS=WIN32
|
||||
|
||||
# ifdef WIN32 looks better that ifeq ($(ARCH_CLASS),WIN32) ??
|
||||
WIN32=1
|
||||
BORLANDC=1
|
||||
|
||||
EXE=.exe
|
||||
OBJ=.obj
|
||||
@@ -118,7 +157,7 @@ RES=.res
|
||||
|
||||
# Problem: BorlandC does not recognize *.cc as C++ source,
|
||||
# we have to compile xx.cc using the flag -P xx.cc,
|
||||
SOURCE_CXXFLAG = -P
|
||||
SOURCE_CXXFLAG = -P -D__cplusplus
|
||||
|
||||
# Operating system flags
|
||||
OP_SYS_CFLAGS =
|
||||
@@ -126,13 +165,14 @@ OP_SYS_CFLAGS =
|
||||
#
|
||||
# Borland specific include files
|
||||
#
|
||||
OP_SYS_INCLUDES = -I$(INCLUDE)
|
||||
OP_SYS_INCLUDES = -I$(BORLAND_INC)
|
||||
#
|
||||
OP_SYS_LDLIBS =
|
||||
|
||||
#
|
||||
# specify dll .def file only if it exists
|
||||
#
|
||||
#DLL_DEF_FLAG = $(addprefix /def:,$(wildcard ../$(LIBRARY).def))
|
||||
DLL_DEF_FLAG = $(subst /,\\,$(wildcard ../$(LIBRARY).def))
|
||||
|
||||
# HOST_OPT_FLAGS is part of CFLAGS/CXXFLAGS,
|
||||
@@ -152,7 +192,7 @@ HOST_OPT_FLAGS += $(subst $@, /_WINDLL, $(findstring $@,$(LIBOBJS)))
|
||||
# x.lib: what you link to progs that use the dll (LIBNAME)
|
||||
# x.exp: what you need to build the dll (in no variable)
|
||||
#
|
||||
LINK.shrlib = $(WINLINK) $(WIN32_DLLFLAGS) -L$(LIB) -L$(LIB)\\Psdk c0d32.obj
|
||||
LINK.shrlib = $(WINLINK) $(WIN32_DLLFLAGS) -L$(BORLAND_LIB) -L$(BORLAND_LIB)\\Psdk c0d32.obj
|
||||
|
||||
# adjust names of libraries to build
|
||||
#
|
||||
@@ -171,7 +211,12 @@ SHRLIBNAME = $(LIBRARY).dll
|
||||
#
|
||||
DLL_LINK_LIBNAME_YES = $(LIBRARY).lib
|
||||
DLL_LINK_LIBNAME = $(DLL_LINK_LIBNAME_$(SHARED_LIBRARIES))
|
||||
|
||||
#ifeq ($(strip $(SHARED_LIBRARIES)),NO)
|
||||
#LIBNAME = $(LIBRARY).lib
|
||||
#else
|
||||
LIBNAME = $(LIBRARY)Obj.lib
|
||||
#endif
|
||||
|
||||
# dll install location
|
||||
INSTALL_SHRLIB = $(INSTALL_BIN)
|
||||
@@ -181,6 +226,7 @@ INSTALL_SHRLIB = $(INSTALL_BIN)
|
||||
OBJECT_LIB_EXT_YES = Obj.lib # object library extension for static build
|
||||
OBJECT_LIB_EXT_NO = .lib # object library extension for dynamic build
|
||||
OBJECT_LIB_EXT = $(OBJECT_LIB_EXT_$(STATIC_BUILD))
|
||||
|
||||
COND_PROD_DEPLIBS = $(foreach prod,$(PROD), $(foreach lib, $($(basename $(prod))_LIBS),\
|
||||
$(firstword $($(lib)_DIR) $(EPICS_BASE_LIB))/$(lib)$(OBJECT_LIB_EXT)))
|
||||
PRODNAME_DEPLIBS = $(foreach lib,$(PRODNAME_LIBS),$(firstword $(wildcard $($(lib)_DIR)/$(lib).lib $($(lib)_DIR)/$(lib)Obj.lib $(EPICS_BASE_LIB)/$(lib).lib $(EPICS_BASE_LIB)/$(lib)Obj.lib ) $(filter $(LIBRARY)$(OBJECT_LIB_EXT), $(lib)$(OBJECT_LIB_EXT)) ))
|
||||
@@ -201,18 +247,18 @@ USR_LDLIBS = $(PRODNAME_DEPLIBS) $(PROD_DEPLIBS) $(USR_DEPLIBS) $(SYS_PROD_LIBS:
|
||||
|
||||
DLL_LDLIBS = $(DLL_DEPLIBS) $(SYS_PROD_LIBS:%=%.lib) $(OP_SYS_LDLIBS)
|
||||
|
||||
#multithreaded
|
||||
LIBSUF=mt
|
||||
# -w display warnings on
|
||||
#multithreaded import library
|
||||
LIBSUF=mti
|
||||
# -c case sensitive linking
|
||||
# -C clear state before linking
|
||||
# -Gn no state files
|
||||
# -Tpe targets a Windows .EXE file
|
||||
# -x no map
|
||||
# -c case sensitive linking
|
||||
LDFLAGS += -w -C -Gn -x -c -L$(LIB) -L$(LIB)\\Psdk
|
||||
# -w display warnings on
|
||||
LDFLAGS += -c -C -Gn -Tpe -x -w -L$(BORLAND_LIB) -L$(BORLAND_LIB)\\Psdk
|
||||
LINKSTARTUP = c0x32.obj
|
||||
LINKLIBS=import32.lib cw32$(LIBSUF).lib
|
||||
|
||||
LINK.c = $(WINLINK) $(LDFLAGS) $(LINKSTARTUP)
|
||||
LINK.cc = $(WINLINK) $(LDFLAGS) $(LINKSTARTUP)
|
||||
|
||||
|
||||
|
||||
@@ -60,7 +60,7 @@ G++_STRICT = $(G++) -Wtraditional
|
||||
|
||||
#ARCH_DEP_CFLAGS = -D_X86_ -Dlinux -D_USE_BSD
|
||||
ARCH_DEP_CFLAGS = -D_X86_ -Dlinux
|
||||
ARCH_DEP_LDFLAGS += -lpthread
|
||||
ARCH_DEP_LDFLAGS += -lpthread -lreadline -lcurses -lrt
|
||||
|
||||
#glibc FAQ
|
||||
# "_GNU_SOURCE: glibc does not make the GNU extensions available
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# CONFIG.Host.UnixCommon
|
||||
|
||||
#
|
||||
# Contains definitions common to all Unix archs
|
||||
#
|
||||
@@ -20,7 +20,10 @@ SHRLIB_SUFFIX = .so
|
||||
|
||||
SHRLIBNAME = lib$(LIBRARY)$(SHRLIB_SUFFIX)$(SHRLIB_VERSION:%=.%)
|
||||
|
||||
DLL_LDLIBS = $(PRODNAME_LIBS:%=-l%) $(PROD_LIBS:%=-l%) $(USR_LIBS:%=-l%)
|
||||
#For backward compatability only
|
||||
DLL_LIBS = $(subst $(LIBRARY),, $(PROD_LIBS))
|
||||
|
||||
DLL_LDLIBS = $(PRODNAME_LIBS:%=-l%) $(DLL_LIBS:%=-l%)
|
||||
|
||||
INSTALL_SHRLIB = $(INSTALL_LIB)
|
||||
|
||||
@@ -61,7 +64,8 @@ USR_LDLIBS = $(PRODNAME_LIBS:%=-l%) $(PROD_LIBS:%=-l%) $(USR_LIBS:%=-l%)\
|
||||
#--------------------------------------------------
|
||||
# Operating system definitions
|
||||
OP_SYS_INCLUDES =
|
||||
OP_SYS_CFLAGS = -DUNIX
|
||||
OP_SYS_CFLAGS = -DUNIX
|
||||
|
||||
OP_SYS_LDFLAGS =
|
||||
OP_SYS_LDLIBS = -lm
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@ CPLUSPLUS = CCC
|
||||
MSVISC = c:\\Program\ Files\\DevStudio\\Vc
|
||||
WINLINK = link
|
||||
|
||||
RCCMD = rc -l 0x409 -i . -i .. -i $(INSTALL_INCLUDE) -i $(EPICS_BASE_INCLUDE) -fo $@ $<
|
||||
RCCMD = rc -l 0x409 -i . -i .. -I$(INSTALL_INCLUDE)/os/$(OS_CLASS) -I$(INSTALL_INCLUDE) $(INSTALL_INCLUDES) -I$(EPICS_BASE_INCLUDE)/os/$(OS_CLASS) -I$(EPICS_BASE_INCLUDE) -fo $@ $<
|
||||
|
||||
ARCMD = lib /nologo /verbose /out:$@
|
||||
|
||||
|
||||
@@ -24,5 +24,11 @@ SHARED_LIBRARIES=NO
|
||||
#==========================
|
||||
|
||||
ARCH_DEP_CFLAGS = -DCYGWIN32 -U_WIN32
|
||||
ARCH_DEP_LDLIBS = -lm
|
||||
ARCH_DEP_LDLIBS =
|
||||
OP_SYS_LDLIBS =
|
||||
|
||||
# cygwin32 overrides to eliminate following warning message -
|
||||
# -fPIC ignored for target (all code is position independent)
|
||||
GCC_DEP_CFLAGS = -D_REENTRANT
|
||||
G++_DEP_CFLAGS = -D_REENTRANT
|
||||
|
||||
|
||||
8
config/CONFIG.Host.solaris-sparc-gnu
Normal file
8
config/CONFIG.Host.solaris-sparc-gnu
Normal file
@@ -0,0 +1,8 @@
|
||||
# $Id$
|
||||
|
||||
# solaris-sparc is the new name for solaris
|
||||
-include $(EPICS_BASE)/config/CONFIG.Host.solaris
|
||||
|
||||
ANSI=GCC
|
||||
CPLUSPLUS=G++
|
||||
|
||||
66
config/CONFIG.Host.solaris-x86
Normal file
66
config/CONFIG.Host.solaris-x86
Normal file
@@ -0,0 +1,66 @@
|
||||
# CONFIG.Host.solaris-x86
|
||||
#
|
||||
# This file is maintained by the EPICS community.
|
||||
# Sites may override these definitions in CONFIG_SITE.Host.solaris-x86
|
||||
|
||||
ARCH_CLASS = solaris
|
||||
|
||||
# Include definitions common to all Unix archs
|
||||
include $(EPICS_BASE)/config/CONFIG.Host.UnixCommon
|
||||
|
||||
#
|
||||
# required by sun's C++ compiler
|
||||
#
|
||||
AR = ar
|
||||
_AR = $(AR) $(ARFLAGS)
|
||||
G++_AR = $(_AR)
|
||||
CCC_AR = $(CCC) -xar -o
|
||||
ARCMD = $($(CPLUSPLUS)_AR) $@
|
||||
|
||||
RANLIB =
|
||||
|
||||
SPARCWORKS = /opt/SUNWspro
|
||||
|
||||
# Configure OS vendor C compiler
|
||||
ACC = $(SPARCWORKS)/bin/cc
|
||||
ACC_ANSI = $(ACC) -Xa
|
||||
ACC_STRICT = $(ACC) -Xc -v
|
||||
ACC_TRAD = $(ACC) -Xs
|
||||
ACC_DEP_CFLAGS = -KPIC -D_REENTRANT
|
||||
ACC_WARN_YES =
|
||||
ACC_WARN_NO = -w
|
||||
ACC_OPT_YES = -O
|
||||
ACC_OPT_NO = -g
|
||||
ACC_SFLAGS_YES= -Bstatic
|
||||
ACC_SFLAGS_NO=
|
||||
ACC_SLIBS_YES= -lw -lintl -Bdynamic -ldl -Bstatic -lXext -lX
|
||||
ACC_SLIBS_NO=
|
||||
ACC_SHRLIB_CFLAGS_YES =
|
||||
ACC_SHRLIB_LDFLAGS_YES = -G -h $@
|
||||
|
||||
# Configure OS vendor C++ compiler
|
||||
CCC = $(SPARCWORKS)/bin/CC
|
||||
CCC_NORMAL = $(CCC) +p
|
||||
CCC_STRICT = $(CCC) +p
|
||||
CCC_DEP_CFLAGS = -KPIC -D_REENTRANT
|
||||
CCC_TEMPL_INST_FLAG =
|
||||
CCC_WARN_YES = +w
|
||||
CCC_WARN_NO =
|
||||
CCC_OPT_YES = -O
|
||||
CCC_OPT_NO = -g
|
||||
CCC_SFLAGS_YES= -Bstatic
|
||||
CCC_SFLAGS_NO=
|
||||
CCC_SLIBS_YES= -lw -lintl -Bdynamic -ldl -Bstatic -lXext -lX
|
||||
CCC_SLIBS_NO=
|
||||
CCC_DEPENDS_FLAG = -xM1
|
||||
CCC_SHRLIB_CFLAGS_YES =
|
||||
CCC_SHRLIB_LDFLAGS_YES = -G -h $@
|
||||
|
||||
GCC = gcc
|
||||
G++ = g++
|
||||
|
||||
# Solaris on x86
|
||||
ARCH_DEP_CFLAGS = -DSOLARIS -D_X86_
|
||||
# socket and nsl needed by libca.a
|
||||
ARCH_DEP_LDLIBS = -lsocket -lnsl
|
||||
|
||||
5
config/CONFIG.Host.win32-x86
Normal file
5
config/CONFIG.Host.win32-x86
Normal file
@@ -0,0 +1,5 @@
|
||||
# $Id$
|
||||
|
||||
# win32-x86 is the new name for WIN32
|
||||
-include $(EPICS_BASE)/config/CONFIG.Host.WIN32
|
||||
|
||||
16
config/CONFIG.Vx.mv2700
Normal file
16
config/CONFIG.Vx.mv2700
Normal file
@@ -0,0 +1,16 @@
|
||||
|
||||
# $Id$
|
||||
#
|
||||
# This file is maintained by the EPICS community.
|
||||
|
||||
# Vx GNU cross compiler suffix
|
||||
CMPLR_SUFFIX = ppc
|
||||
|
||||
# For Vx directories of form:
|
||||
# $(VX_DIR)/$(HOST_ARCH).$(ARCH_CLASS)/bin
|
||||
ARCH_CLASS = mv2700
|
||||
|
||||
# Architecture specific build flags
|
||||
ARCH_DEP_CPPFLAGS = -DCPU=PPC604
|
||||
ARCH_DEP_CFLAGS = -mcpu=604
|
||||
|
||||
16
config/CONFIG.Vx.ppc603
Normal file
16
config/CONFIG.Vx.ppc603
Normal file
@@ -0,0 +1,16 @@
|
||||
# $Id$
|
||||
#
|
||||
# This file is maintained by the EPICS community.
|
||||
|
||||
# Vx GNU cross compiler suffix
|
||||
CMPLR_SUFFIX = ppc
|
||||
|
||||
# For Vx directories of form:
|
||||
# $(VX_DIR)/$(HOST_ARCH).$(ARCH_CLASS)/bin
|
||||
ARCH_CLASS = ppc
|
||||
|
||||
# Architecture specific build flags
|
||||
ARCH_DEP_CPPFLAGS = -DCPU=PPC603 -DTRUE=1
|
||||
ARCH_DEP_CFLAGS = -mcpu=603 --no-builtin -mstrict-align
|
||||
|
||||
# ARCH_DEP_CFLAGS== -fsigned-char #May need for calcPerform.c
|
||||
@@ -11,7 +11,7 @@ ARCH_CLASS = ppc
|
||||
|
||||
# Architecture specific build flags
|
||||
ARCH_DEP_CPPFLAGS = -DCPU=PPC604 -D_GNU_TOOL -DTRUE=1
|
||||
ARCH_DEP_CFLAGS = -mcpu=604 --no-builtin
|
||||
ARCH_DEP_CFLAGS = -mcpu=604 --no-builtin -mstrict-align
|
||||
|
||||
# ARCH_DEP_CFLAGS== -fsigned-char #May need for calcPerform.c
|
||||
|
||||
|
||||
@@ -49,23 +49,3 @@ endif
|
||||
|
||||
EPICS_BASE = $(INSTALL_LOCATION)
|
||||
|
||||
#
|
||||
# this speeds up the build by turning off implicit rules search
|
||||
# for EPICS Makefiles (which are not created from other files)
|
||||
#
|
||||
.PHONY:: $(EPICS_BASE)/config/CONFIG DEPENDS
|
||||
.PHONY:: $(EPICS_BASE)/config/CONFIG_SITE.$(BUILD_TYPE).$(T_A)
|
||||
.PHONY:: $(EPICS_BASE)/config/CONFIG_SITE.$(BUILD_TYPE).$(HOST_ARCH)
|
||||
.PHONY:: $(EPICS_BASE)/config/CONFIG_SITE.$(BUILD_TYPE)
|
||||
.PHONY:: $(EPICS_BASE)/config/CONFIG_SITE.Host.UnixCommon
|
||||
|
||||
.PHONY:: $(EPICS_BASE)/config/RULES.$(BUILD_TYPE)
|
||||
.PHONY:: $(EPICS_BASE)/config/RULES_*
|
||||
|
||||
.PHONY:: $(HOME)/EPICS_CONFIG
|
||||
.PHONY:: $(HOME)/EPICS_CONFIG.$(BUILD_TYPE) $(HOME)/EPICS_CONFIG.$(HOST_ARCH)
|
||||
.PHONY:: $(HOME)/EPICS_CONFIG.$(BUILD_TYPE).$(T_A)
|
||||
.PHONY:: $(HOME)/EPICS_CONFIG.$(BUILD_TYPE).$(HOST_ARCH)
|
||||
.PHONY:: $(HOME)/EPICS_CONFIG_HOST_ARCH.$(HOST_ARCH)
|
||||
|
||||
.PHONY:: ../Makefile.* Makefile
|
||||
|
||||
@@ -11,10 +11,16 @@ EPICS_VERSION=3
|
||||
EPICS_REVISION=14
|
||||
EPICS_MODIFICATION=0
|
||||
EPICS_UPDATE_NAME=alpha
|
||||
EPICS_UPDATE_LEVEL=1
|
||||
EPICS_UPDATE_LEVEL=2
|
||||
|
||||
EPICS_VERSION_STRING="EPICS Version ${EPICS_VERSION}.${EPICS_REVISION}.${EPICS_MODIFICATION}.${EPICS_UPDATE_NAME}${EPICS_UPDATE_LEVEL}"
|
||||
EPICS_LOCAL_NAME=B
|
||||
EPICS_LOCAL_VERSION=0
|
||||
|
||||
CVS_DATE="\$$Date$$"
|
||||
CVS_TAG="\$$Name$$"
|
||||
|
||||
EPICS_VERSION_STRING="EPICS Version ${EPICS_VERSION}.${EPICS_REVISION}.${EPICS_MODIFICATION}.${EPICS_UPDATE_NAME}${EPICS_UPDATE_LEVEL}.$(EPICS_LOCAL_NAME)$(EPICS_LOCAL_VERSION)"
|
||||
|
||||
CVS_DATE="\$$Date$$"
|
||||
|
||||
BASE_3_14=YES
|
||||
|
||||
@@ -11,6 +11,7 @@ ARCH_Linux = linux-x86
|
||||
ARCH_WIN32 = win32-x86
|
||||
ARCH_hp700 = hpux-m68k
|
||||
ARCH_hp700 = osf-alpha
|
||||
ARCH_Borland = win32-x86-borland
|
||||
|
||||
ifndef EPICS_HOST_ARCH
|
||||
ifdef HOST_ARCH
|
||||
|
||||
@@ -10,5 +10,5 @@ HOSTEXE=.exe
|
||||
|
||||
TORNADO=YES
|
||||
|
||||
WIND_HOST_TYPE = cygwin32
|
||||
WIND_HOST_TYPE = x86-win32
|
||||
|
||||
|
||||
4
config/CONFIG_HOST_ARCH.solaris-sparc-gnu
Normal file
4
config/CONFIG_HOST_ARCH.solaris-sparc-gnu
Normal file
@@ -0,0 +1,4 @@
|
||||
# $Id$
|
||||
|
||||
-include $(EPICS_BASE)/config/CONFIG_HOST_ARCH.solaris
|
||||
|
||||
9
config/CONFIG_HOST_ARCH.solaris-x86
Normal file
9
config/CONFIG_HOST_ARCH.solaris-x86
Normal file
@@ -0,0 +1,9 @@
|
||||
# CONFIG_HOST_ARCH.solaris-x86
|
||||
#
|
||||
# Override values in CONFIG.Vx
|
||||
|
||||
# Include definitions common to all Unix archs
|
||||
include $(EPICS_BASE)/config/CONFIG_HOST_ARCH.UnixCommon
|
||||
|
||||
WIND_HOST_TYPE = x86-solaris2
|
||||
|
||||
4
config/CONFIG_HOST_ARCH.win32-x86
Normal file
4
config/CONFIG_HOST_ARCH.win32-x86
Normal file
@@ -0,0 +1,4 @@
|
||||
# $Id$
|
||||
|
||||
# win32-x86 is the new name for WIN32
|
||||
-include $(EPICS_BASE)/config/CONFIG_HOST_ARCH.WIN32
|
||||
@@ -21,6 +21,7 @@
|
||||
# hp700
|
||||
# sgi
|
||||
# solaris
|
||||
# solaris-x86
|
||||
# sun4
|
||||
#
|
||||
# HOST_ARCH now an environment variable
|
||||
@@ -42,6 +43,7 @@ endif
|
||||
# mv162lc
|
||||
# mv167
|
||||
# mv177
|
||||
# mv2700
|
||||
# niCpu030
|
||||
# pc486
|
||||
# ppc604
|
||||
@@ -119,7 +121,7 @@ MAKE_INC_TARGET_FIRST=NO
|
||||
# NOTE WIN32: YES results in a DLL. CONFIG_SITE.Host.WIN32
|
||||
# distribution file contains YES override
|
||||
#
|
||||
# NOTE solaris and sun4: If YES then LD_LIBRARY_PATH must
|
||||
# NOTE solaris,Linux, and sun4: If YES then LD_LIBRARY_PATH must
|
||||
# include fullpathname $(INSTALL_LOCATION)/lib/$(HOST_ARCH)
|
||||
# for both the base build and when invoking base executables
|
||||
SHARED_LIBRARIES=NO
|
||||
|
||||
@@ -6,3 +6,5 @@
|
||||
|
||||
SHARED_LIBRARIES = YES
|
||||
|
||||
BORLAND=C:\\Borland\\bcc55
|
||||
|
||||
|
||||
@@ -2,3 +2,5 @@
|
||||
|
||||
# linux-x86 is the new name for linux
|
||||
-include $(EPICS_BASE)/config/CONFIG_SITE.Host.Linux
|
||||
|
||||
SHARED_LIBRARY=YES
|
||||
|
||||
4
config/CONFIG_SITE.Host.solaris-sparc-gnu
Normal file
4
config/CONFIG_SITE.Host.solaris-sparc-gnu
Normal file
@@ -0,0 +1,4 @@
|
||||
# $Id$
|
||||
|
||||
# solaris-sparc is the new name for solaris
|
||||
-include $(EPICS_BASE)/config/CONFIG_SITE.Host.solaris
|
||||
5
config/CONFIG_SITE.Host.win32-x86
Normal file
5
config/CONFIG_SITE.Host.win32-x86
Normal file
@@ -0,0 +1,5 @@
|
||||
# $Id$
|
||||
|
||||
# win32-x86 is the new name for WIN32
|
||||
-include $(EPICS_BASE)/config/CONFIG_SITE.Host.WIN32
|
||||
|
||||
10
config/CONFIG_SITE.Vx.Linux
Normal file
10
config/CONFIG_SITE.Vx.Linux
Normal file
@@ -0,0 +1,10 @@
|
||||
# $Id$
|
||||
#
|
||||
# This file contains overrides for Vx builds
|
||||
|
||||
# The definitions VX_DIR, VX_GNU, GNU_DIR, GNU_LIB, etc.
|
||||
# can be overridden for specific Linux-target architecture
|
||||
# combinations by creating a CONFIG_SITE.Vx.Linux.<T_A>
|
||||
# file with the override definitions.
|
||||
|
||||
-include $(EPICS_BASE)/config/CONFIG_SITE.$(BUILD_TYPE).$(HOST_ARCH).$(T_A)
|
||||
11
config/CONFIG_SITE.Vx.Linux.mv167
Normal file
11
config/CONFIG_SITE.Vx.Linux.mv167
Normal file
@@ -0,0 +1,11 @@
|
||||
# $Id$
|
||||
#
|
||||
# This file contains overrides for Vx builds
|
||||
|
||||
# ORNL SNS overrides for cross compilers
|
||||
#VX_DIR_YES = /opt/tornado20/
|
||||
#VX_CONFIG_DIR_YES = $(VX_DIR)/target/config
|
||||
#VX_INCLUDE_YES = /usr/local/crossgcc/m68k/m68k-wrs-vxworks/sys-include
|
||||
#VX_GNU_YES = /usr/local/crossgcc/m68k/
|
||||
#VX_GNU_BIN_YES = $(VX_GNU)/bin
|
||||
#VX_GNU_LIB_YES = /usr/local/crossgcc/m68k/lib/gcc-lib/m68k-wrs-vxworks/2.95.2
|
||||
11
config/CONFIG_SITE.Vx.Linux.ppc603
Normal file
11
config/CONFIG_SITE.Vx.Linux.ppc603
Normal file
@@ -0,0 +1,11 @@
|
||||
# $Id$
|
||||
#
|
||||
# This file contains overrides for Vx builds
|
||||
|
||||
# ORNL SNS overrides for cross compilers
|
||||
#VX_DIR_YES = /opt/tornado20/
|
||||
#VX_CONFIG_DIR_YES = $(VX_DIR)/target/config
|
||||
#VX_INCLUDE_YES = /usr/local/crossgcc/ppc/powerpc-wrs-vxworks/sys-include
|
||||
#VX_GNU_YES = /usr/local/crossgcc/ppc/
|
||||
#VX_GNU_BIN_YES = $(VX_GNU)/bin
|
||||
#VX_GNU_LIB_YES = /usr/local/crossgcc/ppc/lib/gcc-lib/powerpc-wrs-vxworks/2.95.2
|
||||
@@ -3,7 +3,13 @@
|
||||
# Rules for making things related to databases
|
||||
#
|
||||
MAKEBPT = $(EPICS_BASE_HOST_BIN)/makeBpt$(EXE)
|
||||
MSI = $(EPICS_EXTENSIONS_BIN)/msi$(EXE)
|
||||
|
||||
ifndef MSI
|
||||
# Tool from R3.14 extensions bin, R3.13 extensions bin, or user path
|
||||
MSI = $(firstword $(wildcard $(EPICS_EXTENSIONS_HOST_BIN)/msi$(HOSTEXE) \
|
||||
$(EPICS_EXTENSIONS)/bin/$(HOST_OS_CLASS)/msi$(HOSTEXE)) msi$(HOSTEXE))
|
||||
endif
|
||||
|
||||
DBEXPAND = $(EPICS_BASE_HOST_BIN)/dbExpand$(EXE)
|
||||
DBST = dbst
|
||||
MAKEDBDEPENDS = $(PERL) $(TOP)/config/makeDbDepends.pl
|
||||
|
||||
@@ -29,6 +29,7 @@
|
||||
vpath %.h $(USER_VPATH)
|
||||
vpath %.c $(USER_VPATH) ../os/$(ARCH_CLASS) ../os/generic ..
|
||||
vpath %.cc $(USER_VPATH) ../os/$(ARCH_CLASS) ../os/generic ..
|
||||
vpath %.cpp $(USER_VPATH) ../os/$(ARCH_CLASS) ../os/generic ..
|
||||
vpath %.rc $(USER_VPATH) ../os/$(ARCH_CLASS) ../os/generic ..
|
||||
|
||||
# check for add-on CFLAGS and CXXFLAGS
|
||||
@@ -281,7 +282,9 @@ endif
|
||||
|
||||
#---------------------------------------------------------------
|
||||
# always use c++ linker
|
||||
ifneq ($(strip $(CPLUSPLUS)),)
|
||||
LINK.c = $(LINK.cc)
|
||||
endif # CPLUSPLUS
|
||||
|
||||
#---------------------------------------------------------------
|
||||
# Version number for base shared libraries (and win32 products)
|
||||
@@ -532,6 +535,11 @@ ifeq ($(HOST_ARCH),Borland)
|
||||
$(COMPILE.cc) $<
|
||||
$(LINK.cc) $(subst ../,,$(basename $<))$(OBJ) , $@ ,,$(LINKLIBS) $(subst /,\\,$(LDLIBS))
|
||||
|
||||
%$(EXE): %.cpp
|
||||
@$(RM) $@
|
||||
$(COMPILE.cc) $<
|
||||
$(LINK.cc) $(subst ../,,$(basename $<))$(OBJ) , $@ ,,$(LINKLIBS) $(subst /,\\,$(LDLIBS))
|
||||
|
||||
%$(EXE): %.C
|
||||
@$(RM) $@
|
||||
$(COMPILE.cc) $<
|
||||
@@ -549,6 +557,11 @@ else
|
||||
$(COMPILE.cc) $<
|
||||
$(LINK.cc) $(subst ../,,$(basename $<))$(OBJ) $(LDLIBS)
|
||||
|
||||
%$(EXE): %.cpp
|
||||
@$(RM) $@
|
||||
$(COMPILE.cc) $<
|
||||
$(LINK.cc) $(subst ../,,$(basename $<))$(OBJ) $(LDLIBS)
|
||||
|
||||
%$(EXE): %.C
|
||||
@$(RM) $@
|
||||
$(COMPILE.cc) $<
|
||||
@@ -564,6 +577,10 @@ endif
|
||||
@$(RM) $@
|
||||
$(COMPILE.cc) $<
|
||||
|
||||
%$(OBJ): %.cpp
|
||||
@$(RM) $@
|
||||
$(COMPILE.cc) $<
|
||||
|
||||
%$(OBJ): %.C
|
||||
@$(RM) $@
|
||||
$(COMPILE.cc) $<
|
||||
|
||||
@@ -93,9 +93,7 @@ endif
|
||||
#CROSS_WARN=YES
|
||||
#etc.
|
||||
|
||||
#CROSS_COMPILER_TARGET_ARCHS=mv167
|
||||
#ANSI=GCC
|
||||
#CPLUSPLUS=G++
|
||||
#CROSS_COMPILER_TARGET_ARCHS=vxWorks-68040
|
||||
#CMPLR=STRICT
|
||||
#CXXCMPLR=STRICT
|
||||
|
||||
|
||||
@@ -1,7 +1,22 @@
|
||||
# Cross compiler default definitions
|
||||
|
||||
# Build class: either HOST or CROSS
|
||||
# Used to determine OPT and WARN compiler flags
|
||||
BUILD_CLASS = CROSS
|
||||
|
||||
ANSI = GCC
|
||||
CPLUSPLUS = G++
|
||||
# Cross build: either defined or not
|
||||
# Used in os/CONFIG.Common.<arch> files
|
||||
# ifdef CROSS looks better than ifeq ($(BUILD_CLASS),CROSS)
|
||||
CROSS = YES
|
||||
|
||||
GNU_TARGET_INCLUDE_DIR = $(GNU_DIR)/$(GNU_TARGET)/include
|
||||
GNU_TARGET_LIB_DIR = $(GNU_DIR)/$(GNU_TARGET)/lib
|
||||
|
||||
CROSS_CPPFLAGS = -nostdinc
|
||||
CROSS_CFLAGS = -B$(GNU_LIB)/gcc-lib/
|
||||
CROSS_INCLUDES = $(addprefix -I,$(GNU_TARGET_INCLUDE_DIR))
|
||||
CROSS_LDFLAGS = $(addprefix -L,$(GNU_TARGET_LIB_DIR))
|
||||
|
||||
|
||||
# All cross builds use the gnu compiler
|
||||
include $(CONFIG)/CONFIG.gnuCommon
|
||||
|
||||
46
configure/CONFIG.gnuCommon
Normal file
46
configure/CONFIG.gnuCommon
Normal file
@@ -0,0 +1,46 @@
|
||||
#--------------------------------------------------
|
||||
# GNU compiler defaults
|
||||
|
||||
GNU_BIN = $(GNU_DIR)/bin
|
||||
GNU_LIB = $(GNU_DIR)/lib
|
||||
|
||||
export GCC_EXEC_PREFIX = $(GNU_LIB)/gcc-lib/
|
||||
|
||||
CC = $(GNU_BIN)/$(CMPLR_PREFIX)cc$(CMPLR_SUFFIX)
|
||||
CCC = $(GNU_BIN)/$(CMPLR_PREFIX)cc$(CMPLR_SUFFIX)
|
||||
AR = $(GNU_BIN)/$(CMPLR_PREFIX)ar$(CMPLR_SUFFIX) -rc
|
||||
LD = $(GNU_BIN)/$(CMPLR_PREFIX)ld$(CMPLR_SUFFIX) -r
|
||||
CPP = $(CC) -x c -E
|
||||
RANLIB = $(GNU_BIN)/$(CMPLR_PREFIX)ranlib$(CMPLR_SUFFIX)
|
||||
|
||||
CODE_CFLAGS = -fPIC
|
||||
CONFORM_CFLAGS_ANSI = -ansi
|
||||
CONFORM_CFLAGS_STRICT = -ansi -pedantic
|
||||
CONFORM_CFLAGS_TRAD = -traditional
|
||||
WARN_CFLAGS_YES = -Wall
|
||||
WARN_CFLAGS_NO = -w
|
||||
#OPT_CFLAGS_YES = -g -O3
|
||||
OPT_CFLAGS_YES = -O3
|
||||
OPT_CFLAGS_NO = -g
|
||||
|
||||
# Template instantiation c++ flags
|
||||
TEMPL_INST_CXXFLAG = -DEXPL_TEMPL
|
||||
|
||||
CODE_CXXFLAGS = -fPIC
|
||||
CONFORM_CXXFLAGS_NORMAL = -ansi -pedantic
|
||||
CONFORM_CXXFLAGS_STRICT = -ansi -pedantic
|
||||
#WARN_CXXFLAGS_YES = -Wall -Weffc++
|
||||
WARN_CXXFLAGS_YES = -Wall
|
||||
WARN_CXXFLAGS_NO = -w
|
||||
#OPT_CXXFLAGS_YES = -g -O3
|
||||
OPT_CXXFLAGS_YES = -O3
|
||||
OPT_CXXFLAGS_NO = -g
|
||||
|
||||
STATIC_LDFLAGS_YES = -static
|
||||
STATIC_LDFLAGS_NO =
|
||||
|
||||
SHRLIB_LDFLAGS_YES = -shared
|
||||
SHRLIB_LDFLAGS_NO =
|
||||
|
||||
DEPENDS_FLAG = -MM
|
||||
|
||||
@@ -20,8 +20,10 @@
|
||||
# USR_CPPFLAGS c preprocesser flags
|
||||
# INC include-files to install
|
||||
# LIBSRCS source files for building library
|
||||
# PROD_LIBS EPICS libs needed by PROD and TESTPROD
|
||||
# USR_LIBS NONEPICS libs needed by PROD and TESTPROD
|
||||
# LIB_SRCS source files for building library
|
||||
# SHRLIB_LIBS libs needed by shared LIBRARY
|
||||
# PROD_LIBS libs needed by PROD and TESTPROD
|
||||
# USR_LIBS libs needed by PROD and TESTPROD
|
||||
# USR_LDFLAGS ld flags
|
||||
# SYS_PROD_LIBS system libs needed by PROD and TESTPROD
|
||||
# PROD products to build and install
|
||||
@@ -75,14 +77,6 @@ USR_LDFLAGS+=$(USR_LDFLAGS_DEFAULT)
|
||||
endif
|
||||
endif
|
||||
|
||||
ifneq ($(strip $(HTMLS_$(OS_CLASS))),)
|
||||
HTMLS+=$(subst -nil-,,$(HTMLS_$(OS_CLASS)))
|
||||
else
|
||||
ifdef HTMLS_DEFAULT
|
||||
HTMLS+=$(HTMLS_DEFAULT)
|
||||
endif
|
||||
endif
|
||||
|
||||
# check for special includes:
|
||||
#
|
||||
ifneq ($(strip $(INC_$(OS_CLASS))),)
|
||||
@@ -104,6 +98,14 @@ LIBSRCS+=$(LIBSRCS_DEFAULT)
|
||||
endif
|
||||
endif
|
||||
|
||||
ifneq ($(strip $(LIB_SRCS_$(OS_CLASS))),)
|
||||
LIB_SRCS += $(subst -nil-,,$(LIB_SRCS_$(OS_CLASS)))
|
||||
else
|
||||
ifdef LIB_SRCS_DEFAULT
|
||||
LIB_SRCS+=$(LIB_SRCS_DEFAULT)
|
||||
endif
|
||||
endif
|
||||
|
||||
ifneq ($(strip $(SRCS_$(OS_CLASS))),)
|
||||
SRCS += $(subst -nil-,,$(SRCS_$(OS_CLASS)))
|
||||
else
|
||||
@@ -128,6 +130,14 @@ BIN_INSTALLS+=$(BIN_INSTALLS_DEFAULT)
|
||||
endif
|
||||
endif
|
||||
|
||||
ifneq ($(strip $(PROD_OBJS_$(OS_CLASS))),)
|
||||
PROD_OBJS+=$(subst -nil-,,$(PROD_OBJS_$(OS_CLASS)))
|
||||
else
|
||||
ifneq (,$(strip $(PROD_OBJS_DEFAULT)))
|
||||
PROD_OBJS+=$(PROD_OBJS_DEFAULT)
|
||||
endif
|
||||
endif
|
||||
|
||||
ifneq ($(strip $(OBJS_$(OS_CLASS))),)
|
||||
OBJS+=$(subst -nil-,,$(OBJS_$(OS_CLASS)))
|
||||
else
|
||||
@@ -160,6 +170,14 @@ LIBOBJS+=$(LIBOBJS_DEFAULT)
|
||||
endif
|
||||
endif
|
||||
|
||||
ifneq ($(strip $(LIB_OBJS_$(OS_CLASS))),)
|
||||
LIB_OBJS+=$(subst -nil-,,$(LIB_OBJS_$(OS_CLASS)))
|
||||
else
|
||||
ifneq (,$(strip $(LIB_OBJS_DEFAULT)))
|
||||
LIB_OBJS+=$(LIB_OBJS_DEFAULT)
|
||||
endif
|
||||
endif
|
||||
|
||||
ifneq ($(strip $(LIBRARY_$(OS_CLASS))),)
|
||||
LIBRARY+=$(subst -nil-,,$(LIBRARY_$(OS_CLASS)))
|
||||
else
|
||||
@@ -192,6 +210,14 @@ PROD_LIBS += $(PROD_LIBS_DEFAULT)
|
||||
endif
|
||||
endif
|
||||
|
||||
ifneq ($(strip $(SHRLIB_LIBS_$(OS_CLASS))),)
|
||||
SHRLIB_LIBS += $(subst -nil-,,$(SHRLIB_LIBS_$(OS_CLASS)))
|
||||
else
|
||||
ifdef SHRLIB_LIBS_DEFAULT
|
||||
SHRLIB_LIBS += $(SHRLIB_LIBS_DEFAULT)
|
||||
endif
|
||||
endif
|
||||
|
||||
ifneq ($(strip $(USR_LIBS_$(OS_CLASS))),)
|
||||
USR_LIBS += $(subst -nil-,,$(USR_LIBS_$(OS_CLASS)))
|
||||
else
|
||||
@@ -255,14 +281,3 @@ RCS += $(RCS_DEFAULT)
|
||||
endif
|
||||
endif
|
||||
|
||||
#
|
||||
# concat specific sequencer flags
|
||||
#
|
||||
ifneq ($(strip $(SNCFLAGS_$(OS_CLASS))),)
|
||||
SNCFLAGS += $(subst -nil-,,$(SNCFLAGS_$(OS_CLASS)))
|
||||
else
|
||||
ifdef SNCFLAGS_DEFAULT
|
||||
SNCFLAGS += $(SNCFLAGS_DEFAULT)
|
||||
endif
|
||||
endif
|
||||
|
||||
|
||||
@@ -21,6 +21,9 @@ As_DIR = $(EPICS_BASE_LIB)
|
||||
ca_DIR = $(EPICS_BASE_LIB)
|
||||
cas_DIR = $(EPICS_BASE_LIB)
|
||||
Com_DIR = $(EPICS_BASE_LIB)
|
||||
dbtoolsIoc_DIR = $(EPICS_BASE_LIB)
|
||||
iocsh_DIR = $(EPICS_BASE_LIB)
|
||||
miscIoc_DIR = $(EPICS_BASE_LIB)
|
||||
rsrvIoc_DIR = $(EPICS_BASE_LIB)
|
||||
registryIoc_DIR = $(EPICS_BASE_LIB)
|
||||
asHost_DIR = $(EPICS_BASE_LIB)
|
||||
@@ -34,12 +37,11 @@ gdd_DIR = $(EPICS_BASE_LIB)
|
||||
# For applications and extensions
|
||||
|
||||
# add epics/base include directories
|
||||
ifneq ($(EPICS_BASE),$(TOP))
|
||||
ifneq ($(EPICS_BASE),$(INSTALL_LOCATION))
|
||||
ifneq ($(strip $(EPICS_BASE)),$(strip $(TOP)))
|
||||
ifneq ($(strip $(EPICS_BASE)),$(strip $(INSTALL_LOCATION)))
|
||||
INSTALL_INCLUDES += \
|
||||
-I$(EPICS_BASE_INCLUDE)/os/$(OS_CLASS) \
|
||||
-I$(EPICS_BASE_INCLUDE)
|
||||
|
||||
endif
|
||||
endif
|
||||
|
||||
@@ -69,17 +71,30 @@ EPICS_BASE_CPPFLAGS += $(OSITHREAD_DEFAULT_STACK_FLAGS_$(OSITHREAD_USE_DEFAULT_S
|
||||
#---------------------------------------------------------------
|
||||
# Epics base build tools and tool flags
|
||||
|
||||
MAKEBPT = $(EPICS_BASE_HOST_BIN)/makeBpt$(HOSTEXE)
|
||||
DBEXPAND = $(EPICS_BASE_HOST_BIN)/dbExpand$(HOSTEXE)
|
||||
MAKEDBDEPENDS = $(PERL) $(TOOLS)/makeDbDepends.pl
|
||||
MAKEDBDDEPENDS = $(EPICS_BASE_HOST_BIN)/dbMakeDBDDepends$(HOSTEXE)
|
||||
REPLACEVAR = $(PERL) $(TOOLS)/replaceVAR.pl
|
||||
DBTORECORDTYPEH = $(EPICS_BASE_HOST_BIN)/dbToRecordtypeH$(HOSTEXE)
|
||||
DBTOMENUH = $(EPICS_BASE_HOST_BIN)/dbToMenuH$(HOSTEXE)
|
||||
REGISTERRECORDDEVICEDRIVER = $(PERL) $(EPICS_BASE_HOST_BIN)/registerRecordDeviceDriver.pl
|
||||
|
||||
# private versions of lex/yacc from EPICS
|
||||
EYACC = $(EPICS_BASE_HOST_BIN)/antelope$(HOSTEXE)
|
||||
ELEX = $(EPICS_BASE_HOST_BIN)/e_flex$(HOSTEXE) -S$(EPICS_BASE_INCLUDE)/flex.skel.static
|
||||
YACC = $(EYACC)
|
||||
LEX = $(ELEX)
|
||||
|
||||
# state notation language compiler (installed from base/src/sequencer)
|
||||
SNC = $(SEQ)/bin/$(EPICS_HOST_ARCH)/snc$(HOSTEXE)
|
||||
#---------------------------------------------------------------
|
||||
# External tools and tool flags
|
||||
|
||||
# adl2dl
|
||||
ADL2DL = $(EPICS_EXTENSIONS_HOST_BIN)/adl2dl
|
||||
ifndef ADL2DL
|
||||
# Tool from R3.14 extensions bin, R3.13 extensions bin, or user path
|
||||
ADL2DL = $(firstword $(wildcard $(EPICS_EXTENSIONS_HOST_BIN)/adl2dl \
|
||||
$(EPICS_EXTENSIONS)/bin/$(HOST_OS_CLASS)/adl2dl) adl2dl)
|
||||
endif
|
||||
|
||||
# sch2edif compiler and flags
|
||||
SCH2EDIF = sch2edif
|
||||
@@ -89,10 +104,26 @@ SCH2EDIF_FLAGS =
|
||||
|
||||
# e2db and flags
|
||||
# - again there is an assumption where edb.def is installed.
|
||||
E2DB = $(EPICS_EXTENSIONS_HOST_BIN)/e2db
|
||||
ifndef E2DB
|
||||
# Tool from R3.14 extensions bin, R3.13 extensions bin, or user path
|
||||
E2DB = $(firstword $(wildcard $(EPICS_EXTENSIONS_HOST_BIN)/e2db \
|
||||
$(EPICS_EXTENSIONS)/bin/$(HOST_OS_CLASS)/e2db) e2db)
|
||||
endif
|
||||
E2DB_SYSFLAGS = -ate -d $(EPICS_EXTENSIONS)/templates/capfast/edb.def
|
||||
E2DB_FLAGS =
|
||||
|
||||
#dbst
|
||||
DBST = $(EPICS_EXTENSIONS_HOST_BIN)/dbst
|
||||
ifndef DBST
|
||||
# Tool from R3.14 extensions bin, R3.13 extensions bin, or user path
|
||||
DBST = $(firstword $(wildcard $(EPICS_EXTENSIONS_HOST_BIN)/dbst \
|
||||
$(EPICS_EXTENSIONS)/bin/$(HOST_OS_CLASS)/dbst) dbst)
|
||||
endif
|
||||
|
||||
#msi
|
||||
ifndef MSI
|
||||
# Tool from R3.14 extensions bin, R3.13 extensions bin, or user path
|
||||
MSI = $(firstword $(wildcard $(EPICS_EXTENSIONS_HOST_BIN)/msi$(HOSTEXE) \
|
||||
$(EPICS_EXTENSIONS)/bin/$(HOST_OS_CLASS)/msi$(HOSTEXE)) msi$(HOSTEXE))
|
||||
endif
|
||||
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ EPICS_VERSION=3
|
||||
EPICS_REVISION=14
|
||||
EPICS_MODIFICATION=0
|
||||
EPICS_UPDATE_NAME=alpha
|
||||
EPICS_UPDATE_LEVEL=1
|
||||
EPICS_UPDATE_LEVEL=2
|
||||
|
||||
EPICS_VERSION_STRING="EPICS Version ${EPICS_VERSION}.${EPICS_REVISION}.${EPICS_MODIFICATION}.${EPICS_UPDATE_NAME}${EPICS_UPDATE_LEVEL}"
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
#
|
||||
# This file is to be maintained by the community.
|
||||
#
|
||||
# Common Configuration Information
|
||||
# Common Configuration Information
|
||||
|
||||
#-------------------------------------------------------
|
||||
# Build architectures
|
||||
@@ -14,13 +14,18 @@
|
||||
CROSS1 = $(CROSS_COMPILER_TARGET_ARCHS$(word 1,$(CROSS_COMPILER_HOST_ARCHS)))
|
||||
|
||||
# CROSS2 will be defined only when CROSS_COMPILER_HOST_ARCHS is defined
|
||||
# and EPICS_HOST_ARCH is one of it's words
|
||||
# and EPICS_HOST_ARCH is one of it's words
|
||||
CROSS2 = $(CROSS_COMPILER_TARGET_ARCHS$(filter-out 1,$(words $(filter $(EPICS_HOST_ARCH),$(CROSS_COMPILER_HOST_ARCHS)))))
|
||||
|
||||
BUILD_ARCHS = $(EPICS_HOST_ARCH) $(CROSS1) $(CROSS2)
|
||||
|
||||
#-------------------------------------------------------
|
||||
# Build class default, HOST or CROSS, CONFIG will override
|
||||
# Ext, app, and module configure dir targets
|
||||
CONFIG_TARGETS += CONFIG_APP_INCLUDE RULES_INCLUDE
|
||||
CONFIG_INSTALLS += ../RULES_BUILD
|
||||
|
||||
#-------------------------------------------------------
|
||||
# Cross compile default, HOST or CROSS, CONFIG.crossCommon will override
|
||||
BUILD_CLASS = HOST
|
||||
|
||||
#-------------------------------------------------------
|
||||
@@ -61,6 +66,9 @@ INSTALL_DB = $(INSTALL_LOCATION)/db
|
||||
INSTALL_CONFIG = $(INSTALL_LOCATION)/configure
|
||||
INSTALL_JAVA = $(INSTALL_LOCATION)/javalib
|
||||
|
||||
#Directory for OS independant build created files
|
||||
COMMON_DIR = ../O.Common
|
||||
|
||||
ifdef T_A
|
||||
|
||||
INSTALL_LIB = $(INSTALL_LOCATION_LIB)/$(T_A)
|
||||
@@ -68,88 +76,39 @@ INSTALL_SHRLIB = $(INSTALL_LOCATION_LIB)/$(T_A)
|
||||
INSTALL_TCLLIB = $(INSTALL_LOCATION_LIB)/$(T_A)
|
||||
INSTALL_BIN = $(INSTALL_LOCATION_BIN)/$(T_A)
|
||||
|
||||
#--------------------------------------------------
|
||||
# vpath directories
|
||||
GENERIC_SRC_DIRS = .. $(SRC_DIRS)
|
||||
OS_SRC_DIRS += . $(foreach dir, $(SRC_DIRS) .., \
|
||||
$(dir)/os/$(OS_CLASS) $(dir)/os/posix $(dir)/os/default )
|
||||
ALL_SRC_DIRS = $(OS_SRC_DIRS) $(GENERIC_SRC_DIRS)
|
||||
|
||||
#--------------------------------------------------
|
||||
# compile line include directories
|
||||
INSTALL_INCLUDES += \
|
||||
-I$(INSTALL_INCLUDE)/os/$(OS_CLASS) \
|
||||
-I$(INSTALL_INCLUDE)
|
||||
-I$(INSTALL_INCLUDE)
|
||||
GENERIC_SRC_INCLUDES = $(addprefix -I, $(GENERIC_SRC_DIRS))
|
||||
|
||||
#--------------------------------------------------
|
||||
# GNU compiler defaults
|
||||
|
||||
GNU_BIN = $(GNU_DIR)/bin
|
||||
GNU_LIB = $(GNU_DIR)/lib
|
||||
export GCC_EXEC_PREFIX = $(GNU_LIB)/gcc-lib/
|
||||
|
||||
GCC_AR = $(GNU_BIN)/$(CMPLR_PREFIX)ar$(CMPLR_SUFFIX) -rc
|
||||
GCC_CPP = $(GCC) -x c -E
|
||||
GCC_RANLIB = $(GNU_BIN)/$(CMPLR_PREFIX)ranlib$(CMPLR_SUFFIX)
|
||||
|
||||
GCC = $(GNU_BIN)/$(CMPLR_PREFIX)cc$(CMPLR_SUFFIX)
|
||||
|
||||
GCC_CONFORM_CFLAGS_ANSI = -ansi
|
||||
GCC_CONFORM_CFLAGS_STRICT = -ansi -pedantic
|
||||
GCC_CONFORM_CFLAGS_TRAD = -traditional
|
||||
GCC_WARN_YES = -Wall
|
||||
GCC_WARN_NO = -w
|
||||
GCC_OPT_YES = -g -O3
|
||||
GCC_OPT_NO = -g
|
||||
GCC_STATIC_CFLAGS_YES = -static
|
||||
GCC_STATIC_CFLAGS_NO =
|
||||
GCC_BUILD_CFLAGS_CROSS = -B$(GNU_LIB)/gcc-lib/ -nostdinc
|
||||
GCC_BUILD_CPPFLAGS_CROSS = -nostdinc
|
||||
GCC_SHRLIB_LDFLAGS_YES = -shared
|
||||
GCC_CODE_CPPFLAGS = -D_REENTRANT
|
||||
GCC_POSIX_CPPFLAGS = -D_POSIX_C_SOURCE=199506L -D_POSIX_THREADS
|
||||
|
||||
G++ = $(GNU_BIN)/$(CMPLR_PREFIX)cc$(CMPLR_SUFFIX)
|
||||
|
||||
G++_CONFORM_CFLAGS_NORMAL = -ansi -pedantic
|
||||
G++_CONFORM_CFLAGS_STRICT = -ansi -pedantic
|
||||
#G++_WARN_YES = -Wall -Weffc++
|
||||
G++_WARN_YES = -Wall
|
||||
G++_WARN_NO = -w
|
||||
G++_OPT_YES = -g -O3
|
||||
G++_OPT_NO = -g
|
||||
G++_STATIC_CFLAGS_YES = -static
|
||||
G++_STATIC_CFLAGS_NO =
|
||||
G++_SHRLIB_LDFLAGS_YES = -shared
|
||||
G++_CODE_CPPFLAGS = -D_REENTRANT
|
||||
G++_POSIX_CPPFLAGS = -D_POSIX_C_SOURCE=199506L -D_POSIX_THREADS
|
||||
|
||||
G++_TEMPL_INST_FLAG = -DEXPL_TEMPL
|
||||
G++_DEPENDS_FLAG = -MM
|
||||
|
||||
#--------------------------------------------------
|
||||
# Target filename definitions
|
||||
OBJSNAME = $(addsuffix $(OBJ),$(OBJS))
|
||||
PRODNAME = $(addsuffix $(EXE),$(PROD))
|
||||
TESTPRODNAME = $(addsuffix $(EXE),$(TESTPROD))
|
||||
|
||||
#---------------------------------------------------------------
|
||||
# Directory targets
|
||||
|
||||
DIRECTORY_TARGETS += $(INSTALL_DBD) $(INSTALL_INCLUDE)
|
||||
OBJSNAME = $(addsuffix $(OBJ),$(basename $(OBJS)))
|
||||
PRODNAME = $(addsuffix $(EXE),$(basename $(PROD)))
|
||||
TESTPRODNAME = $(addsuffix $(EXE),$(basename $(TESTPROD)))
|
||||
|
||||
#--------------------------------------------------
|
||||
# obj files
|
||||
|
||||
TARGET_OBJS = $(addsuffix $(OBJ),$(basename $($*_OBJS)))
|
||||
|
||||
PROD_OBJS = $(addsuffix $(OBJ),$(basename $(SRCS) $(PROD_SRCS)))
|
||||
PROD_LD_OBJS = $(TARGET_OBJS) $(PROD_OBJS)
|
||||
PRODUCT_OBJS = $(addsuffix $(OBJ),$(basename $(SRCS) $(PROD_SRCS) $(PROD_OBJS)))
|
||||
PROD_LD_OBJS = $(TARGET_OBJS) $(PRODUCT_OBJS)
|
||||
|
||||
LIBRARY_OBJS = $(addsuffix $(OBJ),$(basename $(SRCS) $(LIBSRCS)))
|
||||
LIBRARY_OBJS = $(addsuffix $(OBJ),$(basename $(SRCS) $(LIB_SRCS) $(LIBSRCS) $(LIB_OBJS)))
|
||||
LIBRARY_LD_OBJS = $(TARGET_OBJS) $(LIBRARY_OBJS)
|
||||
|
||||
#--------------------------------------------------
|
||||
# resource(WIN32) files
|
||||
# WIN95/NT resource files
|
||||
|
||||
TARGET_RESS = $(addsuffix $(RES),$(basename $($*_RCS)))
|
||||
|
||||
@@ -162,28 +121,11 @@ LIBRARY_LD_RESS = $(TARGET_RESS) $(LIBRARY_RESS)
|
||||
#--------------------------------------------------
|
||||
# WIN95/NT source browser
|
||||
PROD_BAF = $(addsuffix $(BAF), $(basename $(PROD)))
|
||||
LIB_BAF_IOC=$(addsuffix $(BAF),$(basename $(LIBRARY_IOC)))
|
||||
LIB_BAF_HOST=$(addsuffix $(BAF),$(basename $(LIBRARY_HOST)))
|
||||
|
||||
#--------------------------------------------------
|
||||
# dbExpand flags
|
||||
|
||||
INSTALL_DBDFLAGS = -I $(INSTALL_LOCATION)/dbd
|
||||
LIB_BAF=$(addsuffix $(BAF),$(basename $(LIBRARY)))
|
||||
|
||||
#--------------------------------------------------
|
||||
# C preprocessor, compiler, and linker flag defaults
|
||||
|
||||
# Build class (CROSS,HOST) flags
|
||||
BUILD_CLASS_CFLAGS = $($(ANSI)_BUILD_CFLAGS_$(BUILD_CLASS))
|
||||
BUILD_CLASS_CPPFLAGS = $($(ANSI)_BUILD_CPPFLAGS_$(BUILD_CLASS))
|
||||
|
||||
# C++ template flag
|
||||
TEMPL_INST_CXXFLAG = $($(CPLUSPLUS)_TEMPL_INST_FLAG)
|
||||
|
||||
# Code (position independant and reentrant) flags
|
||||
CODE_CFLAGS = $($(ANSI)_CODE_CFLAGS)
|
||||
CODE_CXXFLAGS = $($(CPLUSPLUS)_CODE_CFLAGS)
|
||||
|
||||
# Target architecture specific (solaris,sun4,mv167,...) flags
|
||||
ARCH_DEP_CPPFLAGS =
|
||||
ARCH_DEP_CFLAGS =
|
||||
@@ -194,6 +136,7 @@ ARCH_DEP_LDLIBS =
|
||||
# Target operating system specific (Unix,Vx,WIN32...) flags
|
||||
OP_SYS_CPPFLAGS =
|
||||
OP_SYS_CFLAGS =
|
||||
OP_SYS_CXXFLAGS = $(OP_SYS_CFLAGS)
|
||||
OP_SYS_LDFLAGS =
|
||||
OP_SYS_INCLUDES =
|
||||
OP_SYS_LDLIBS =
|
||||
@@ -219,91 +162,86 @@ TARGET_CXXFLAGS = $($(basename $@)_CXXFLAGS) $($(basename $@)_CXXFLAGS_$(OS_CLAS
|
||||
TARGET_LDFLAGS = $($(basename $@)_LDFLAGS) $($(basename $@)_LDFLAGS_$(OS_CLASS))
|
||||
TARGET_LDLIBS = $($(basename $@)_LDLIBS) $($(basename $@)_LDLIBS_$(OS_CLASS))
|
||||
TARGET_CPPFLAGS = $($(basename $@)_CPPFLAGS) $($(basename $@)_CPPFLAGS_$(OS_CLASS))
|
||||
TARGET_SNCFLAGS = $($(basename $@)_SNCFLAGS) $($(basename $@)_SNCFLAGS_$(OS_CLASS))
|
||||
|
||||
# POSIX specific flags
|
||||
POSIX_CPPFLAGS = $($(ANSI)_POSIX_CPPFLAGS)
|
||||
|
||||
# CMPLR level of ansi conformance flags
|
||||
CONFORM_CFLAGS = $($(ANSI)_CONFORM_CFLAGS_$(CMPLR))
|
||||
CONFORM_CXXFLAGS = $($(CPLUSPLUS)_CONFORM_CFLAGS_$(CMPLR))
|
||||
# Level of ansi conformance flags
|
||||
CONFORM_CFLAGS = $(CONFORM_CFLAGS_$(CMPLR))
|
||||
CONFORM_CXXFLAGS = $(CONFORM_CXXFLAGS_$(CMPLR))
|
||||
|
||||
# Warnings flags
|
||||
WARN_CFLAGS = $($(ANSI)_WARN_$($(BUILD_CLASS)_WARN))
|
||||
WARN_CXXFLAGS = $($(CPLUSPLUS)_WARN_$($(BUILD_CLASS)_WARN))
|
||||
WARN_CFLAGS = $(WARN_CFLAGS_$($(BUILD_CLASS)_WARN))
|
||||
WARN_CXXFLAGS = $(WARN_CXXFLAGS_$($(BUILD_CLASS)_WARN))
|
||||
|
||||
# Optimization flags
|
||||
OPT_CFLAGS = $($(ANSI)_OPT_$($(BUILD_CLASS)_OPT))
|
||||
OPT_CXXFLAGS = $($(CPLUSPLUS)_OPT_$($(BUILD_CLASS)_OPT))
|
||||
OPT_LDFLAGS =
|
||||
OPT_CFLAGS = $(OPT_CFLAGS_$($(BUILD_CLASS)_OPT))
|
||||
OPT_CXXFLAGS = $(OPT_CXXFLAGS_$($(BUILD_CLASS)_OPT))
|
||||
|
||||
# Posix flags
|
||||
POSIX=YES
|
||||
POSIX_CPPFLAGS=$(POSIX_CPPFLAGS_$(POSIX))
|
||||
POSIX_LDLIBS=$(POSIX_LDLIBS_$(POSIX))
|
||||
|
||||
# Static build flags
|
||||
STATIC_CFLAGS = $($(ANSI)_STATIC_CFLAGS_$(STATIC_BUILD))
|
||||
STATIC_CXXCFLAGS = $($(CPLUSPLUS)_STATIC_CFLAGS_$(STATIC_BUILD))
|
||||
STATIC_LDFLAGS = $($(ANSI)_STATIC_LDFLAGS_$(STATIC_BUILD))
|
||||
STATIC_LDLIBS = $($(ANSI)_STATIC_LDLIBS_$(STATIC_BUILD))
|
||||
|
||||
# Depends flag
|
||||
DEPENDS_FLAG = $($(CPLUSPLUS)_DEPENDS_FLAG)
|
||||
STATIC_CFLAGS = $(STATIC_CFLAGS_$(STATIC_BUILD))
|
||||
STATIC_CXXCFLAGS = $(STATIC_CXXFLAGS_$(STATIC_BUILD))
|
||||
STATIC_LDFLAGS = $(STATIC_LDFLAGS_$(STATIC_BUILD))
|
||||
STATIC_LDLIBS = $(STATIC_LDLIBS_$(STATIC_BUILD))
|
||||
|
||||
#--------------------------------------------------
|
||||
# Flags
|
||||
|
||||
INCLUDES = -I. $(USR_INCLUDES) $(INSTALL_INCLUDES) \
|
||||
$(TARGET_INCLUDES) $(GENERIC_SRC_INCLUDES) $(OP_SYS_INCLUDES)
|
||||
INCLUDES = -I. $(GENERIC_SRC_INCLUDES) $(INSTALL_INCLUDES) $(TARGET_INCLUDES)\
|
||||
$(USR_INCLUDES) $(OP_SYS_INCLUDES) $(CROSS_INCLUDES)
|
||||
|
||||
CFLAGS = $(CONFORM_CFLAGS) $(OPT_CFLAGS) $(DEBUG_CFLAGS) $(WARN_CFLAGS)\
|
||||
$(TARGET_CFLAGS) $(USR_CFLAGS) $(ARCH_DEP_CFLAGS) $(CODE_CFLAGS)\
|
||||
$(STATIC_CFLAGS) $(OP_SYS_CFLAGS)
|
||||
CFLAGS = $(CONFORM_CFLAGS) $(CROSS_CFLAGS) $(OPT_CFLAGS) $(DEBUG_CFLAGS)\
|
||||
$(WARN_CFLAGS) $(TARGET_CFLAGS) $(USR_CFLAGS) $(ARCH_DEP_CFLAGS)\
|
||||
$(CODE_CFLAGS) $(STATIC_CFLAGS) $(OP_SYS_CFLAGS)
|
||||
|
||||
CXXFLAGS = $(CONFORM_CXXFLAGS) $(OPT_CXXFLAGS) $(DEBUG_CXXFLAGS) $(WARN_CXXFLAGS)\
|
||||
$(TARGET_CXXFLAGS) $(USR_CXXFLAGS) $(ARCH_DEP_CXXFLAGS) $(CODE_CXXFLAGS)\
|
||||
$(STATIC_CXXCFLAGS) $(OP_SYS_CFLAGS) $(TEMPL_INST_CXXFLAG)
|
||||
CXXFLAGS = $(CONFORM_CXXFLAGS) $(CROSS_CXXFLAGS) $(OPT_CXXFLAGS)\
|
||||
$(DEBUG_CXXFLAGS) $(WARN_CXXFLAGS) $(TARGET_CXXFLAGS) $(USR_CXXFLAGS)\
|
||||
$(ARCH_DEP_CXXFLAGS) $(CODE_CXXFLAGS) $(STATIC_CXXCFLAGS) $(OP_SYS_CXXFLAGS)\
|
||||
$(TEMPL_INST_CXXFLAG) $(CROSS_CXXFLAGS)
|
||||
|
||||
LDFLAGS = $(OPT_LDFLAGS) $(TARGET_LDFLAGS) $(USR_LDFLAGS) $(DEPLIB_LDFLAGS)\
|
||||
$(ARCH_DEP_LDFLAGS) $(STATIC_LDFLAGS) $(OP_SYS_LDFLAGS)
|
||||
$(ARCH_DEP_LDFLAGS) $(STATIC_LDFLAGS) $(OP_SYS_LDFLAGS) $(CROSS_LDFLAGS)
|
||||
|
||||
LDLIBS = $(TARGET_LDLIBS) $(USR_LDLIBS) $(DEPLIB_LDLIBS) $(ARCH_DEP_LDLIBS)\
|
||||
$(STATIC_LDLIBS) $(OP_SYS_LDLIBS)
|
||||
LDLIBS = $(TARGET_LDLIBS) $(USR_LDLIBS) $(DEPLIB_LDLIBS) $(STATIC_LDLIBS)\
|
||||
$(POSIX_LDLIBS) $(ARCH_DEP_LDLIBS) $(OP_SYS_LDLIBS)
|
||||
|
||||
CPPFLAGS += $(POSIX_CPPFLAGS) $(EPICS_BASE_CPPFLAGS)\
|
||||
$(TARGET_CPPFLAGS) $(USR_CPPFLAGS) $(ARCH_DEP_CPPFLAGS) $(OP_SYS_CPPFLAGS)
|
||||
|
||||
CPPSNCFLAGS = $(CPPFLAGS) $(INCLUDES)
|
||||
|
||||
DBDFLAGS = $(USR_DBDFLAGS) -I . -I .. $(INSTALL_DBDFLAGS)
|
||||
CPPFLAGS += $(CROSS_CPPFLAGS) $(POSIX_CPPFLAGS) $(EPICS_BASE_CPPFLAGS)\
|
||||
$(TARGET_CPPFLAGS) $(USR_CPPFLAGS) $(ARCH_DEP_CPPFLAGS)\
|
||||
$(OP_SYS_CPPFLAGS) $(OP_SYS_INCLUDE_CPPFLAGS) $(CODE_CPPFLAGS)
|
||||
|
||||
#--------------------------------------------------
|
||||
# ar definition default
|
||||
AR = $($(ANSI)_AR)
|
||||
ARFLAGS =
|
||||
ARCMD = $(AR) $(ARFLAGS) $(USR_ARFLAGS) $@ $(LIBRARY_LD_OBJS)
|
||||
|
||||
#--------------------------------------------------
|
||||
# C compiler
|
||||
CC = $($(ANSI)) $(BUILD_CLASS_CFLAGS)
|
||||
CPP = $($(ANSI)_CPP) $(BUILD_CLASS_CPPFLAGS)
|
||||
RANLIB = $($(ANSI)_RANLIB)
|
||||
|
||||
#--------------------------------------------------
|
||||
# C++ compiler
|
||||
CXX = $($(CPLUSPLUS)) $(BUILD_CLASS_CFLAGS)
|
||||
# ld default
|
||||
LDCMD = $(LD) -o $@ $^
|
||||
|
||||
#--------------------------------------------------
|
||||
# Build compile line here
|
||||
|
||||
COMPILE.c = $(CC) $(CFLAGS) $(CPPFLAGS) $(INCLUDES) -c $(SOURCE_FLAG)
|
||||
COMPILE.cpp = $(CXX) $(CXXFLAGS) $(CPPFLAGS) $(INCLUDES) -c $(SOURCE_CXXFLAG)
|
||||
COMPILE.c = $(CC) -c $(CPPFLAGS) $(CFLAGS) $(INCLUDES) $(SOURCE_FLAG)
|
||||
COMPILE.cpp = $(CCC) -c $(CPPFLAGS) $(CXXFLAGS) $(INCLUDES) $(SOURCE_CXXFLAG)
|
||||
|
||||
#--------------------------------------------------
|
||||
# depends definition
|
||||
TARGET_SRCS = $(foreach name, $(TESTPROD) $(PROD) $(LIBRARY_HOST) $(LIBRARY_IOC), $($(name)_SRCS))
|
||||
SRC_FILES = $(foreach src, $(LIBSRCS) $(SRCS) $(PROD_SRCS) $(TARGET_SRCS) , \
|
||||
# Build depends command here
|
||||
|
||||
DEPENDS.cpp = $(CCC)
|
||||
DEPENDSFLAGS += $(CPPFLAGS) $(INCLUDES) $(DEPENDS_FLAG)
|
||||
DEPENDS_CMD.cpp = -$(DEPENDS.cpp) $(DEPENDSFLAGS) $(DEPENDS_SRC_FILES) > DEPENDS
|
||||
|
||||
#--------------------------------------------------
|
||||
# depends definition
|
||||
TARGET_SRCS = $(foreach name, $(TESTPROD) $(PROD) $(LIBRARY), $($(name)_SRCS))
|
||||
SRC_FILES = $(foreach src, $(LIB_SRCS) $(LIBSRCS) $(SRCS) $(PROD_SRCS) $(TARGET_SRCS) , \
|
||||
$(firstword $(wildcard $(addsuffix /$(src),$(ALL_SRC_DIRS))) $(src)))
|
||||
DEPENDS_RULE = -$(COMPILE.cpp) $(DEPENDS_FLAG) $(SRC_FILES) > DEPENDS
|
||||
DEPENDS_SRC_FILES = $(SRC_FILES)
|
||||
|
||||
#---------------------------------------------------------------
|
||||
# Names of installed items
|
||||
# Names of installed items
|
||||
#
|
||||
# each list starts with the destination directory name(s)
|
||||
# to make sure it's there
|
||||
@@ -318,8 +256,6 @@ INSTALL_TCLINDEX=$(TCLINDEX:%=$(INSTALL_TCLLIB)/%)
|
||||
INSTALL_SCRIPTS = $(SCRIPTS:%= $(INSTALL_BIN)/%)
|
||||
INSTALL_OBJS = $(OBJSNAME:%= $(INSTALL_BIN)/%)
|
||||
|
||||
INCREC +=$(RECTYPES) $(MENUS)
|
||||
INSTALL_INCREC = $(INCREC:%= $(INSTALL_INCLUDE)/%)
|
||||
INSTALL_DOCS = $(DOCS:%= $(INSTALL_DOC)/%)
|
||||
INSTALL_HTMLS = $(HTMLS:%= $(INSTALL_HTML)/$(HTMLS_DIR)/%)
|
||||
|
||||
@@ -327,22 +263,15 @@ INSTALL_TEMPLATE = $(addprefix $(INSTALL_TEMPLATES_SUBDIR)/, \
|
||||
$(subst $(CONFIG),top/configure,$(TEMPLATES)))
|
||||
INSTALL_CONFIGS = $(CONFIGS:%= $(INSTALL_CONFIG)/%)
|
||||
|
||||
INSTALL_BPTS = $(BPTS:%= $(INSTALL_DBD)/%)
|
||||
INSTALL_DBS = $(DBDINSTALL:%= $(INSTALL_DBD)/%)\
|
||||
$(RECTYPES:%.h= $(INSTALL_DBD)/%.dbd)\
|
||||
$(MENUS:%.h= $(INSTALL_DBD)/%.dbd)
|
||||
|
||||
INSTALL_DBDNAME = $(DBDNAME:%= $(INSTALL_DBD)/%)
|
||||
|
||||
#---------------------------------------------------------------
|
||||
#
|
||||
# auto determine the directory paths that things are installed to
|
||||
# RULES:
|
||||
# 1) found in any one of several os specific area
|
||||
# 1) found in any one of several os specific area
|
||||
# => install to $(INSTALL_INCLUDE)/os/$(OS_CLASS)
|
||||
# 2) not foundin (1) and found in generic area
|
||||
# 2) not foundin (1) and found in generic area
|
||||
# => install to $(INSTALL_INCLUDE)
|
||||
# 3) not found in (1) or (2) then may be (not yet) computer generated
|
||||
# 3) not found in (1) or (2) then may be (not yet) computer generated
|
||||
# => install into $(INSTALL_INCLUDE)/os/$(OS_CLASS) and let
|
||||
# build rules work on vpath
|
||||
#
|
||||
@@ -374,6 +303,12 @@ INSTALL_INC_aaa = $(wildcard $(addsuffix /$(inc), $(dir)) )
|
||||
#
|
||||
# Rule 3
|
||||
#
|
||||
GENERATED_INSTALL_INC = $(INSTALL_INCLUDE)/os/$(OS_CLASS)/$(inc)
|
||||
GENERATED_INSTALL_INC = $(INSTALL_INCLUDE)/$(inc)
|
||||
|
||||
COMMON_INC += $(filter $(COMMON_DIR)/%, $(foreach file, $(INC), \
|
||||
$(firstword $(SOURCE_INC) $(COMMON_DIR)/$(file) ) ) )
|
||||
SOURCE_INC = $(wildcard $(file) $(SOURCE_INC_bbb) )
|
||||
SOURCE_INC_bbb = $(foreach dir, $(ALL_SRC_DIRS), $(SOURCE_INC_aaa) )
|
||||
SOURCE_INC_aaa = $(addsuffix /$(file), $(dir) )
|
||||
|
||||
endif
|
||||
|
||||
@@ -11,16 +11,20 @@
|
||||
|
||||
# The host architecture performing the build,
|
||||
# i.e.: the arch running DCT/getrel/etc.
|
||||
# <operating system>-<architecture>[-<alternate compiler>]
|
||||
#
|
||||
# Currently Supporting:
|
||||
# sun4
|
||||
# hp700
|
||||
# alpha
|
||||
# solaris
|
||||
# sgi
|
||||
# Linux
|
||||
# WIN32
|
||||
# LynxOS
|
||||
# hpux-parisc
|
||||
# osf-alpha
|
||||
# solaris-sparc (sun compiler used for host builds)
|
||||
# solaris-sparc-gnu (GNU compiler used for host builds)
|
||||
# solaris-x86 (sun compiler used for host builds)
|
||||
# solaris-x86-gnu (GNU compiler used for host builds)
|
||||
# sun4-x86 (sun compiler used for host builds)
|
||||
# linux-x86 (GNU compiler used for host builds)
|
||||
# win32-x86 (MS Visual C++ compiler used for host builds)
|
||||
# win32-x86-borland (Borland C++ compiler used for host builds)
|
||||
# lynxos-x86
|
||||
#
|
||||
# EPICS_HOST_ARCH is an environment variable
|
||||
# EPICS_HOST_ARCH=$(shell /usr/local/epics/startup/EpicsHostArch)
|
||||
@@ -34,10 +38,17 @@
|
||||
# vxWorks-68040lc
|
||||
# vxWorks-68060
|
||||
# vxWorks-pentium
|
||||
# vxWorks-ppc603
|
||||
# vxWorks-ppc604
|
||||
# RTEMS-gen68360
|
||||
# RTEMS-mvme167
|
||||
# RTEMS-pc386
|
||||
#
|
||||
# Definitions of CROSS_COMPILER_TARGET_ARCHS in
|
||||
# configure/os/CONFIG_SITE.<host>.Common files will
|
||||
# override
|
||||
#
|
||||
#CROSS_COMPILER_TARGET_ARCHS=
|
||||
CROSS_COMPILER_TARGET_ARCHS=vxWorks-68040
|
||||
|
||||
|
||||
@@ -47,16 +58,6 @@ CROSS_COMPILER_TARGET_ARCHS=vxWorks-68040
|
||||
#
|
||||
CROSS_COMPILER_HOST_ARCHS=
|
||||
|
||||
# Client ANSI C Compiler (for Host builds)
|
||||
# GCC GNU (gcc -ansi)
|
||||
# ACC OS VENDOR (sun4/solaris: acc ; hp700: cc -Aa)
|
||||
ANSI=ACC
|
||||
|
||||
# C++ Compiler (for Host builds)
|
||||
# G++ GNU C++ (g++)
|
||||
# CCC OS VENDOR C++ (sun4/solaris: CC ; hp700: aCC)
|
||||
CPLUSPLUS=CCC
|
||||
|
||||
# Default ANSI level, individual Makefiles will override
|
||||
# if they cannot support ANSI compilation.
|
||||
# STRICT - ANSI C - force warning flags
|
||||
@@ -78,8 +79,8 @@ CXXCMPLR=STRICT
|
||||
# NOTE WIN32: YES results in a DLL. CONFIG_SITE.Host.WIN32
|
||||
# distribution file contains YES override
|
||||
#
|
||||
# NOTE solaris and sun4: If YES then LD_LIBRARY_PATH must
|
||||
# include fullpathname $(INSTALL_LOCATION)/lib/$(EPICS_HOST_ARCH)
|
||||
# NOTE solaris,Linux, and sun4: If YES then LD_LIBRARY_PATH must
|
||||
# include fullpathname to $(INSTALL_LOCATION)/lib/$(EPICS_HOST_ARCH)
|
||||
# for both the base build and when invoking base executables
|
||||
SHARED_LIBRARIES=NO
|
||||
|
||||
@@ -102,3 +103,6 @@ HOST_WARN=YES
|
||||
# Generate Verbose Compiler Warnings for cross compile builds
|
||||
# must be either YES or NO
|
||||
CROSS_WARN=YES
|
||||
|
||||
# Installation directory
|
||||
INSTALL_LOCATION=$(TOP)
|
||||
|
||||
@@ -1,177 +1,256 @@
|
||||
#RULES.Db
|
||||
|
||||
##################################################### vpath
|
||||
|
||||
vpath %.dbd $(USR_VPATH) $(GENERIC_SRC_DIRS) $(dir $(DBD)) $(COMMON_DIR)
|
||||
vpath %.db $(USR_VPATH) $(GENERIC_SRC_DIRS) $(dir $(DB)) $(COMMON_DIR)
|
||||
vpath %.substitutions $(USR_VPATH) $(GENERIC_SRC_DIRS) $(COMMON_DIR)
|
||||
vpath %.template $(USR_VPATH) $(GENERIC_SRC_DIRS) $(COMMON_DIR)
|
||||
|
||||
##################################################### dbdflags
|
||||
|
||||
# dbExpand
|
||||
INSTALL_DBDFLAGS += -I $(INSTALL_LOCATION)/dbd
|
||||
DBDFLAGS = $(USR_DBDFLAGS) -I . -I .. $(INSTALL_DBDFLAGS)
|
||||
|
||||
##################################################### Targets
|
||||
|
||||
# Following line added for backward compatibilty
|
||||
DBD += $(DBDNAME)
|
||||
|
||||
DBD += $(addsuffix .dbd,$(patsubst %.h,%,$(patsubst %.db,%,$(DBDINC))))
|
||||
INC += $(addsuffix .h,$(patsubst %.h,%,$(patsubst %.db,%,$(DBDINC))))
|
||||
|
||||
INSTALL_DBDS += $(DBD:%= $(INSTALL_DBD)/%)
|
||||
|
||||
COMMON_DBDS += $(filter $(COMMON_DIR)/%, $(foreach file, $(DBD), \
|
||||
$(firstword $(SOURCE_DBD) $(COMMON_DIR)/$(file) ) ) )
|
||||
SOURCE_DBD = $(wildcard $(file) $(SOURCE_DBD_bbb) )
|
||||
SOURCE_DBD_bbb = $(foreach dir, $(GENERIC_SRC_DIRS), $(SOURCE_DBD_aaa) )
|
||||
SOURCE_DBD_aaa = $(addsuffix /$(file), $(dir) )
|
||||
|
||||
INSTALL_DBS += $(addprefix $(INSTALL_DB)/,$(notdir $(DB)))
|
||||
|
||||
COMMON_DBS += $(filter $(COMMON_DIR)/%, $(foreach file, $(DB), \
|
||||
$(firstword $(SOURCE_DB) $(COMMON_DIR)/$(file) ) ) )
|
||||
SOURCE_DB = $(wildcard $(file) $(SOURCE_DB_bbb) )
|
||||
SOURCE_DB_bbb = $(foreach dir, $(GENERIC_SRC_DIRS), $(SOURCE_DB_aaa) )
|
||||
SOURCE_DB_aaa = $(addsuffix /$(file), $(dir) )
|
||||
|
||||
COMMONS = $(COMMON_DIR)/*.dbd $(COMMON_DIR)/*.db $(COMMON_DIR)/*.h $(COMMON_DIR)/*.substitutions $(COMMON_DIR)/*.template
|
||||
|
||||
|
||||
#####################################################
|
||||
|
||||
ifndef T_A
|
||||
|
||||
include $(CONFIG)/RULES_ARCHS
|
||||
COMMON_DIR = .
|
||||
INSTALL_DBDS =
|
||||
INSTALL_DBS =
|
||||
COMMON_DBDS = $(DBD)
|
||||
COMMON_DBS = $(DB)
|
||||
COMMONS = $(DBD) $(DB)
|
||||
|
||||
else #T_A
|
||||
-include $(TOP)/configure/O.$(EPICS_HOST_ARCH)/CONFIG_APP_INCLUDE
|
||||
|
||||
MAKEBPT = $(EPICS_BASE_HOST_BIN)/makeBpt$(HOSTEXE)
|
||||
DBEXPAND = $(EPICS_BASE_HOST_BIN)/dbExpand$(HOSTEXE)
|
||||
DBST = dbst
|
||||
MAKEDBDEPENDS = $(PERL) $(TOOLS)/makeDbDepends.pl
|
||||
REPLACEVAR = $(PERL) $(TOOLS)/replaceVAR.pl
|
||||
all: install
|
||||
|
||||
INSTALL_BPTS = $(BPTS:%= $(INSTALL_DBD)/%)
|
||||
INSTALL_DBS = $(DBDINSTALL:%= $(INSTALL_DBD)/%)
|
||||
INSTALL_DBDNAME = $(DBDNAME:%= $(INSTALL_DBD)/%)
|
||||
INSTALL_DATA=$(INSTALLDB:%=$(INSTALL_DB)/%)
|
||||
buildInstall : build
|
||||
|
||||
all: install
|
||||
|
||||
inc: $(INSTALL_DBS)
|
||||
install: buildInstall
|
||||
|
||||
rebuild: clean install
|
||||
|
||||
install: inc buildInstall
|
||||
.PHONY: all inc depends build install clean rebuild buildInstall
|
||||
|
||||
buildInstall: build $(INSTALL_BPTS) $(INSTALL_DATA)
|
||||
endif # T_A defined
|
||||
|
||||
clean::
|
||||
@echo "Cleaning"
|
||||
@$(RM) $(DB) *.template *.substitutions *.db.raw \
|
||||
*.db-stamp *.edf esiread.cnf
|
||||
##################################################### build dependancies, clean rule
|
||||
|
||||
depends:
|
||||
inc : $(COMMON_INC) $(INSTALL_INC)
|
||||
|
||||
build : $(COMMON_DBDS) $(COMMON_DBS) \
|
||||
$(INSTALL_DBDS) $(INSTALL_DBS)
|
||||
|
||||
clean::
|
||||
@$(RM) $(COMMONS)
|
||||
@$(RM) *_registerRecordDeviceDriver.cpp
|
||||
|
||||
##################################################### "Foreign" templates
|
||||
|
||||
TEMPLATE_LINKS = $(filter-out $(notdir $(USES_TEMPLATE)), $(USES_TEMPLATE))
|
||||
TEMPLATE_FILES = $(filter $(notdir $(USES_TEMPLATE)), $(USES_TEMPLATE))
|
||||
DB_STAMP = $(patsubst %.db, %.db-stamp, $(DB))
|
||||
DB_REALTARGET = $(patsubst %.db-stamp, %.db, $@)
|
||||
COMMON_TEMPLATES=$(addsuffix $(COMMON_DIR)/,$(notdir $(TEMPLATE_LINKS)))
|
||||
|
||||
ifneq '$(TEMPLATE_LINKS)' ''
|
||||
build: $(notdir $(TEMPLATE_LINKS))
|
||||
endif
|
||||
build: $(INSTALL_DBDNAME) $(TEMPLATE_FILES) $(DB_STAMP)
|
||||
build: $(TEMPLATE_FILES)
|
||||
|
||||
$(notdir $(TEMPLATE_LINKS)): %.template:
|
||||
$(COMMON_TEMPLATES): $(COMMON_DIR)/%.template:
|
||||
ifndef WIN32
|
||||
@$(RM) $(notdir $(TEMPLATE_LINKS))
|
||||
ln -s $(TEMPLATE_LINKS) .
|
||||
ln -s $(TEMPLATE_LINKS)
|
||||
else
|
||||
@$(RM) $(notdir $(TEMPLATE_LINKS))
|
||||
$(CP) $(TEMPLATE_LINKS) .
|
||||
$(CP) $(TEMPLATE_LINKS)
|
||||
endif
|
||||
|
||||
##################################################### Inflated or plain databases
|
||||
|
||||
$(INSTALL_DB)/%.db: %.db-stamp
|
||||
@echo "Installing database $@"
|
||||
@$(INSTALL) -d -m 644 $(patsubst %.db-stamp, %.db, $<) $(@D)
|
||||
|
||||
# Must have DBDNAME defined to use dbst optimization
|
||||
ifndef DBDNAME
|
||||
DB_OPT = NO
|
||||
endif
|
||||
|
||||
# dbst based database optimization
|
||||
ifeq '$(DB_OPT)' 'YES'
|
||||
.PRECIOUS: %.db.raw
|
||||
%.db-stamp: %.db.raw $(INSTALL_DBDNAME)
|
||||
@echo "Optimizing database $@"
|
||||
$(DBST) $(INSTALL_DBDNAME) $< -d > $(DB_REALTARGET)
|
||||
@$(TOUCH) $@
|
||||
%.db-stamp: %.t.db.raw $(INSTALL_DBDNAME)
|
||||
@echo "Optimizing database $@"
|
||||
$(DBST) $(INSTALL_DBDNAME) $< -d > $(DB_REALTARGET)
|
||||
@$(TOUCH) $@
|
||||
else
|
||||
# NO optimization => move it and keep a stamp
|
||||
%.db-stamp: %.db.raw
|
||||
@$(MV) $< $(DB_REALTARGET)
|
||||
@$(TOUCH) $@
|
||||
@$(TOUCH) $<
|
||||
%.db-stamp: %.t.db.raw
|
||||
@$(MV) $< $(DB_REALTARGET)
|
||||
@$(TOUCH) $@
|
||||
@$(TOUCH) $<
|
||||
endif
|
||||
|
||||
%.t.db.raw: %.substitutions
|
||||
@echo "Inflating database from $<"
|
||||
@$(RM) $@
|
||||
$(MSI) -S $< $*.template > $@
|
||||
|
||||
##################################################### CapFast filter
|
||||
|
||||
%.edf: ../%.sch $(DEPSCHS)
|
||||
$(COMMON_DIR)/%.edf: ../%.sch $(DEPSCHS)
|
||||
@if [ ! -f cad.rc -a -r ../cad.rc ] ; then ln -s ../cad.rc ; fi
|
||||
$(SCH2EDIF) $(SCH2EDIF_SYSFLAGS) $(SCH2EDIF_FLAGS) $<
|
||||
|
||||
##################################################### Substitution files
|
||||
|
||||
$(INSTALL_DB)/%.substitutions: %.substitutions
|
||||
@echo "Installing $@"
|
||||
@$(INSTALL) -d -m 644 $(@F) $(@D)
|
||||
#$(COMMON_DIR)/%.substitutions: ../%.substitutions $(COMMON_DIR)/%.template
|
||||
# @$(CP) $< $@
|
||||
|
||||
%.substitutions: ../%.substitutions %.template
|
||||
@$(CP) $< $@
|
||||
# WARNING: CREATESUBSTITUTIONS script need output dir on command line
|
||||
|
||||
ifdef CREATESUBSTITUTIONS
|
||||
%.substitutions:
|
||||
@$(CREATESUBSTITUTIONS) $*
|
||||
$(COMMON_DIR)/%.substitutions:
|
||||
@$(CREATESUBSTITUTIONS) $(COMMON_DIR)/$*
|
||||
endif
|
||||
|
||||
# Better make it PRECIOUS (to get around make bug)
|
||||
.PRECIOUS: %.substitutions %.template
|
||||
.PRECIOUS: $(DB:%.db=$(COMMON_DIR)/%.substitutions)
|
||||
|
||||
##################################################### Template databases
|
||||
##################################################### Template files
|
||||
|
||||
# Installed template files (dbLoadTemplate() on IOC side)
|
||||
$(INSTALL_DB)/%.template: %.template
|
||||
@echo "Installing $@"
|
||||
@$(INSTALL) -d -m 644 $(@F) $(@D)
|
||||
#$(COMMON_DIR)/%.template: ../%.template
|
||||
# @$(CP) $< $@
|
||||
|
||||
%.template: ../%.template
|
||||
@$(CP) $< $@
|
||||
|
||||
%.template:
|
||||
$(COMMON_DIR)/%.template:
|
||||
@$(TOUCH) $@
|
||||
|
||||
%.template: %.edf
|
||||
$(COMMON_DIR)/%.template: $(COMMON_DIR)/%.edf
|
||||
$(E2DB) $(E2DB_SYSFLAGS) $(E2DB_FLAGS) -n $@.VAR $<
|
||||
@$(REPLACEVAR) < $@.VAR > $@
|
||||
@$(RM) $@.VAR
|
||||
|
||||
##################################################### Flat databases
|
||||
|
||||
%.db.raw: ../%.db
|
||||
$(CP) $< $@
|
||||
|
||||
%.db.raw: %.edf
|
||||
$(COMMON_DIR)/%.template: ../%.edf
|
||||
$(E2DB) $(E2DB_SYSFLAGS) $(E2DB_FLAGS) -n $@.VAR $<
|
||||
@$(REPLACEVAR) < $@.VAR > $@
|
||||
@$(RM) $@.VAR
|
||||
|
||||
##################################################### DBD stuff
|
||||
.PRECIOUS: $(DB:%.db=$(COMMON_DIR)/%.template)
|
||||
|
||||
$(INSTALL_DBD)/%: %
|
||||
@echo "Installing $@"
|
||||
@$(INSTALL) -d -m 644 $< $(@D)
|
||||
##################################################### INC files
|
||||
|
||||
$(INSTALL_DBD)/%: ../%
|
||||
@echo "Installing $@"
|
||||
@$(INSTALL) -d -m 644 $< $(@D)
|
||||
$(COMMON_DIR)/%Record.h: ../%Record.dbd
|
||||
@$(RM) $@
|
||||
$(DBTORECORDTYPEH) $(DBDFLAGS) $< $@
|
||||
|
||||
$(COMMON_DIR)/menu%.h: ../menu%.dbd
|
||||
@$(RM) $@
|
||||
$(DBTOMENUH) $< $@
|
||||
|
||||
##################################################### DBD files
|
||||
|
||||
$(INSTALL_DBD)/bpt%.dbd: ../bpt%.data
|
||||
$(COMMON_DIR)/bpt%.dbd: ../bpt%.data
|
||||
$(RM) $@
|
||||
$(MAKEBPT) $< $@
|
||||
|
||||
ifdef DBDEXPAND
|
||||
$(INSTALL_DBD)/$(DBDNAME): $(addprefix ../,$(DBDEXPAND))
|
||||
$(COMMON_DIR)/bpt%.dbd: bpt%.data
|
||||
$(RM) $@
|
||||
$(MAKEBPT) $< $@
|
||||
|
||||
$(COMMON_DIR)/%.dbd: ../%Include.dbd
|
||||
@echo "Expanding dbd"
|
||||
$(RM) $@
|
||||
$(DBEXPAND) $(DBDFLAGS) $< > $@
|
||||
|
||||
$(COMMON_DIR)/%.dbd: %Include.dbd
|
||||
@echo "Expanding dbd"
|
||||
$(RM) $@
|
||||
$(DBEXPAND) $(DBDFLAGS) $< > $@
|
||||
|
||||
$(INSTALL_DBD)/%: $(COMMON_DIR)/%
|
||||
@echo "Installing dbd file $@"
|
||||
@$(INSTALL) -d -m 644 $< $(@D)
|
||||
|
||||
$(INSTALL_DBD)/%: ../%
|
||||
@echo "Installing dbd file $@"
|
||||
@$(INSTALL) -d -m 644 $< $(@D)
|
||||
|
||||
.PRECIOUS: $(COMMON_DBDS)
|
||||
|
||||
##################################################### DB files
|
||||
|
||||
$(COMMON_DIR)/%.db$(RAW): ../%.db
|
||||
$(CP) $< $@
|
||||
|
||||
$(COMMON_DIR)/%.db$(RAW): $(COMMON_DIR)/%.edf
|
||||
$(E2DB) $(E2DB_SYSFLAGS) $(E2DB_FLAGS) -n $@.VAR $<
|
||||
@$(REPLACEVAR) < $@.VAR > $@
|
||||
@$(RM) $@.VAR
|
||||
|
||||
$(COMMON_DIR)/%.db$(RAW): ../%.edf
|
||||
$(E2DB) $(E2DB_SYSFLAGS) $(E2DB_FLAGS) -n $@.VAR $<
|
||||
@$(REPLACEVAR) < $@.VAR > $@
|
||||
@$(RM) $@.VAR
|
||||
|
||||
$(COMMON_DIR)/%.db$(RAW): %.substitutions %.template
|
||||
@echo "Inflating database from $<"
|
||||
@$(RM) $@
|
||||
$(DBEXPAND) $(USR_DBDFLAGS) $^ > $@
|
||||
$(MSI) -S $^ > $@
|
||||
|
||||
# dbst based database optimization
|
||||
ifeq '$(DB_OPT)' 'YES'
|
||||
|
||||
$(COMMON_DIR)/%.db: $(COMMON_DIR)/%.db$(RAW)
|
||||
@echo "Optimizing database $@"
|
||||
$(DBST) . $< -d > $@
|
||||
|
||||
RAW=.raw
|
||||
|
||||
.PRECIOUS: $(DB:%=$(COMMON_DIR)/%$(RAW))
|
||||
else
|
||||
|
||||
$(INSTALL_DB)/%: %
|
||||
@echo "Installing db file $@"
|
||||
@$(INSTALL) -d -m 644 $< $(@D)
|
||||
|
||||
endif
|
||||
|
||||
##################################################### Dependencies
|
||||
$(INSTALL_DB)/%: $(COMMON_DIR)/%
|
||||
@echo "Installing db file $@"
|
||||
@$(INSTALL) -d -m 644 $< $(@D)
|
||||
|
||||
DEPENDS: $(filter $(patsubst %.db, ../%.substitutions, $(DB)), $(wildcard ../*.substitutions))
|
||||
.PRECIOUS: $(COMMON_DBS)
|
||||
|
||||
##################################################### register record,device,driver support
|
||||
|
||||
%_registerRecordDeviceDriver.cpp: $(COMMON_DIR)/%.dbd
|
||||
$(RM) $@
|
||||
$(REGISTERRECORDDEVICEDRIVER) $< > $@
|
||||
|
||||
%_registerRecordDeviceDriver.cpp: ../%.dbd
|
||||
$(RM) $@
|
||||
$(REGISTERRECORDDEVICEDRIVER) $< > $@
|
||||
|
||||
##################################################### DB dependancies
|
||||
|
||||
ifneq (,$(COMMON_DBS))
|
||||
DBDEPENDS: $(COMMON_DBS:$(COMMON_DIR)/%.db=%.substitutions) $(COMMON_DBS:$(COMMON_DIR)/%.db=%.template)
|
||||
@echo 'Creating DB dependancy file $@'
|
||||
@echo "Making template database dependencies"
|
||||
@$(MAKEDBDEPENDS) $^
|
||||
|
||||
-include DEPENDS
|
||||
|
||||
-include DBDEPENDS
|
||||
endif
|
||||
|
||||
##################################################### DBD dependancies
|
||||
|
||||
ifneq (,$(wildcard $(patsubst %.dbd,../%Include.dbd,$(notdir $(COMMON_DBDS)))))
|
||||
DBDDEPENDS_%: ../%Include.dbd
|
||||
@echo 'Creating DBD dependancy file $@'
|
||||
@$(RM) $@
|
||||
$(MAKEDBDDEPENDS) $(DBDFLAGS) $(COMMON_DIR)/$*.dbd $< > $@
|
||||
|
||||
-include $(patsubst ../%Include.dbd,DBDDEPENDS_%,$(wildcard $(patsubst %.dbd,../%Include.dbd,$(notdir $(COMMON_DBDS)))))
|
||||
endif
|
||||
|
||||
##################################################### END OF FILE
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@ actionArchTargets = $(foreach x, $(ACTIONS),\
|
||||
|
||||
buildDirs = $(addprefix O.,$(BUILD_ARCHS))
|
||||
|
||||
$(actionArchTargets) : $(buildDirs)
|
||||
$(actionArchTargets) : $(buildDirs) O.Common
|
||||
$(MAKE) -C O.$(archPart) -f ../Makefile TOP=$(TOP)/.. T_A=$(archPart) $(actionPart)
|
||||
|
||||
$(BUILD_ARCHS) : % : O.%
|
||||
@@ -29,14 +29,17 @@ $(BUILD_ARCHS) : % : O.%
|
||||
|
||||
$(ACTIONS):%: $(foreach arch, $(BUILD_ARCHS), %$(DIVIDER)$(arch))
|
||||
|
||||
$(buildDirs) :
|
||||
$(buildDirs):
|
||||
$(PERL) $(TOOLS)/makeMakefile.pl $@ $(TOP)/..
|
||||
|
||||
O.Common:
|
||||
$(MKDIR) O.Common
|
||||
|
||||
#
|
||||
# special clean rule
|
||||
#
|
||||
clean ::
|
||||
$(RMDIR) $(addprefix O.,$(BUILD_ARCHS))
|
||||
$(RMDIR) $(addprefix O.,$(BUILD_ARCHS)) O.Common
|
||||
|
||||
clean$(DIVIDER)% ::
|
||||
$(RMDIR) O.$*
|
||||
|
||||
@@ -28,8 +28,6 @@
|
||||
# vpath, of course, has the disadvantage that we need explicit rules
|
||||
# for scripts or similar os-specific filed which have _no_ suffix...
|
||||
|
||||
ifdef T_A
|
||||
|
||||
vpath %.c $(USR_VPATH) $(ALL_SRC_DIRS)
|
||||
vpath %.cc $(USR_VPATH) $(ALL_SRC_DIRS)
|
||||
vpath %.cpp $(USR_VPATH) $(ALL_SRC_DIRS)
|
||||
@@ -43,25 +41,25 @@ vpath %.skel.static $(USR_VPATH) $(GENERIC_SRC_DIRS)
|
||||
include $(CONFIG)/CONFIG_ADDONS
|
||||
|
||||
#---------------------------------------------------------------
|
||||
# Set PROD, OBJS, LIBRARY_HOST, and LIBRARY_IOC
|
||||
# Set PROD, TESTPROD, OBJS, and LIBRARY
|
||||
|
||||
ifeq ($(findstring Host,$(VALID_BUILDS)),Host)
|
||||
LIBRARY_HOST += $(LIBRARY)
|
||||
LIBRARY += $(LIBRARY_HOST)
|
||||
OBJS += $(OBJS_HOST)
|
||||
else
|
||||
# PROD and TESTPROD not built for ioc only builds
|
||||
PROD = $(PROD_$(OS_CLASS))
|
||||
TESTPROD = $(TESTPROD_$(OS_CLASS))
|
||||
LIBRARY_HOST =
|
||||
LIBRARY_IOC += $(LIBRARY)
|
||||
ifneq ($(findstring Ioc,$(VALID_BUILDS)),Ioc)
|
||||
LIBRARY = $(LIBRARY_$(OS_CLASS))
|
||||
OBJS = $(OBJS_$(OS_CLASS))
|
||||
endif
|
||||
endif
|
||||
|
||||
|
||||
ifeq ($(findstring Ioc,$(VALID_BUILDS)),Ioc)
|
||||
LIBRARY += $(LIBRARY_IOC)
|
||||
OBJS += $(OBJS_IOC)
|
||||
else
|
||||
LIBRARY_IOC =
|
||||
endif
|
||||
|
||||
#---------------------------------------------------------------
|
||||
|
||||
ifdef TEMPLATES_DIR
|
||||
@@ -78,21 +76,22 @@ all: install
|
||||
#---------------------------------------------------------------
|
||||
# Create included Makefile for prod,testprod, and library targets
|
||||
|
||||
ifneq (,$(strip $(PROD) $(TESTPROD) $(LIBRARY_IOC) $(LIBRARY_HOST)))
|
||||
ifneq (,$(strip $(PROD) $(TESTPROD) $(LIBRARY)))
|
||||
|
||||
MakefileInclude: ../Makefile
|
||||
@$(RM) $@
|
||||
@$(PERL) $(TOOLS)/makeMakefileInclude.pl $(PROD) $(TESTPROD) $(LIBRARY_IOC) $(LIBRARY_HOST) $@
|
||||
@$(PERL) $(TOOLS)/makeMakefileInclude.pl $(PROD) $(TESTPROD) $(LIBRARY) $@
|
||||
|
||||
-include MakefileInclude
|
||||
|
||||
endif # PROD, TESTPROD, LIBRARY_IOC or LIBRARY_HOST defined
|
||||
endif # PROD, TESTPROD, or LIBRARY defined
|
||||
|
||||
#---------------------------------------------------------------
|
||||
# Libraries
|
||||
#
|
||||
|
||||
LIBTARGETS += $(LIBNAME) $(MUNCHNAME)
|
||||
LIBTARGETS += $(LIBNAME)
|
||||
LIBTARGETS += $(MUNCHNAME) $(LIBRARY_CTDT_SRCS) $(LIBRARY_CTDT_OBJS) $(LIBRARY_NM)
|
||||
ifneq (,$(strip $(LIBTARGETS)))
|
||||
LIBTARGETS += $(INSTALL_LIBS) $(INSTALL_MUNCHS)
|
||||
ifeq ($(strip $(SHARED_LIBRARIES)),YES)
|
||||
@@ -101,17 +100,23 @@ endif # SHARED_LIBRARIES=YES
|
||||
endif # LIBTARGETS
|
||||
|
||||
#---------------------------------------------------------------
|
||||
ifneq ($(CONFIG),$(TOP)/configure)
|
||||
-include $(TOP)/configure/RULES_BUILD
|
||||
endif
|
||||
-include $(TOP)/configure/O.$(T_A)/RULES_INCLUDE
|
||||
#---------------------------------------------------------------
|
||||
|
||||
# Main targets
|
||||
|
||||
install: buildInstall
|
||||
|
||||
buildInstall : build
|
||||
inc : $(COMMON_INC) $(INSTALL_INC)
|
||||
|
||||
build : inc
|
||||
|
||||
rebuild: clean install
|
||||
buildInstall : build
|
||||
|
||||
inc: $(DIRECTORY_TARGETS) $(INSTALL_INC) $(INSTALL_INCREC)
|
||||
install: buildInstall
|
||||
|
||||
rebuild: clean install
|
||||
|
||||
build: $(OBJSNAME) $(LIBTARGETS) $(PRODNAME) $(TESTPRODNAME) \
|
||||
$(TARGETS)
|
||||
@@ -123,9 +128,7 @@ buildInstall : \
|
||||
$(INSTALL_DOCS) \
|
||||
$(INSTALL_HTMLS) \
|
||||
$(INSTALL_TEMPLATE) \
|
||||
$(INSTALL_CONFIGS) \
|
||||
$(INSTALL_DBS) $(INSTALL_BPTS) \
|
||||
$(INSTALL_DBDNAME)
|
||||
$(INSTALL_CONFIGS)
|
||||
|
||||
ifdef BIN_INSTALLS
|
||||
buildInstall : binInstalls
|
||||
@@ -134,19 +137,19 @@ endif
|
||||
clean::
|
||||
@echo "Cleaning"
|
||||
@$(RM) *.i *$(OBJ) *.a $(PRODNAME) $(TESTPRODNAME) $(LIBNAME) $(SHRLIBNAME)\
|
||||
$(INC) *$(RES) $(TARGETS) $(DBDINSTALL) \
|
||||
*.out MakefileInclude
|
||||
|
||||
$(INC) *$(RES) $(TARGETS) \
|
||||
*.out MakefileInclude \
|
||||
$(COMMON_INC)
|
||||
ifdef MUNCHNAME
|
||||
@$(RM) $(MUNCHNAME) ctdt.c ctdt.o nm.out
|
||||
@$(RM) $(MUNCHNAME) $(LIBRARY_CTDT_SRCS) $(LIBRARY_CTDT_OBJS) $(LIBRARY_NM)
|
||||
endif
|
||||
ifdef BAF
|
||||
@$(RM) $(PROD_BAF) $(LIB_BAF_IOC) $(LIB_BAF_HOST) *$(BOF)
|
||||
@$(RM) $(PROD_BAF) $(LIB_BAF) *$(BOF)
|
||||
endif
|
||||
|
||||
# WIN95/NT source browser
|
||||
#ifdef BAF
|
||||
browse: $(LIB_BAF_IOC) $(LIB_BAF_HOST) $(PROD_BAF)
|
||||
browse: $(LIB_BAF) $(PROD_BAF)
|
||||
#endif
|
||||
|
||||
$(DIRECTORY_TARGETS) :
|
||||
@@ -168,17 +171,21 @@ $(DIRECTORY_TARGETS) :
|
||||
# The order of the following rules is
|
||||
# VERY IMPORTANT !!!!
|
||||
|
||||
depends: buildInstall $(SRC_FILES)
|
||||
depends: inc $(DEPENDS_SRC_FILES)
|
||||
@$(RM) DEPENDS
|
||||
@touch DEPENDS
|
||||
ifneq (,$(strip $(SRC_FILES)))
|
||||
$(DEPENDS_RULE)
|
||||
ifneq (,$(strip $(DEPENDS_SRC_FILES)))
|
||||
$(DEPENDS_CMD.cpp)
|
||||
endif
|
||||
|
||||
$(TESTPRODNAME) $(PRODNAME):%$(EXE): $(PROD_OBJS) $(PROD_RESS) $(PROD_DEPLIBS)
|
||||
$(TESTPRODNAME) $(PRODNAME):%$(EXE): $(PRODUCT_OBJS) $(PROD_RESS) $(PROD_DEPLIBS)
|
||||
@$(RM) $@
|
||||
$(LINK.cpp)
|
||||
|
||||
%_ctdt$(OBJ) : %_ctdt.c
|
||||
@$(RM) $@
|
||||
$(COMPILE.c) -traditional $<
|
||||
|
||||
%$(OBJ): %.c
|
||||
@$(RM) $@
|
||||
$(COMPILE.c) $<
|
||||
@@ -210,15 +217,18 @@ $(TESTPRODNAME) $(PRODNAME):%$(EXE): $(PROD_OBJS) $(PROD_RESS) $(PROD_DEPLIBS)
|
||||
# rename the y.tab.h file only if we
|
||||
# are creating it
|
||||
#
|
||||
ifeq ($(findstring -d, $(YACCOPT)),-d)
|
||||
%.h %.c: ../%.y
|
||||
$(RM) $*.c y.tab.c
|
||||
ifeq ($(findstring -d, $(YACCOPT)),-d)
|
||||
$(RM) $*.h y.tab.h
|
||||
endif
|
||||
$(YACC) $(YACCOPT) $<
|
||||
$(MV) y.tab.c $*.c
|
||||
ifeq ($(findstring -d, $(YACCOPT)),-d)
|
||||
$(MV) y.tab.h $*.h
|
||||
else
|
||||
%.c: ../%.y
|
||||
$(RM) $*.c y.tab.c
|
||||
$(YACC) $(YACCOPT) $<
|
||||
$(MV) y.tab.c $*.c
|
||||
endif
|
||||
|
||||
%.c: ../%.l
|
||||
@@ -227,46 +237,6 @@ endif
|
||||
@$(RM) $@
|
||||
$(MV) lex.yy.c $@
|
||||
|
||||
#state notation language rule
|
||||
%.c: ../%.st
|
||||
@echo "preprocessing $*.st"
|
||||
@$(RM) $*.i
|
||||
$(CPP) $(CPPSNCFLAGS) $< > $*.i
|
||||
@echo "converting $*.i"
|
||||
@$(RM) $@
|
||||
$(SNC) $(TARGET_SNCFLAGS) $(SNCFLAGS) $*.i -o $@
|
||||
|
||||
%.c: %.stt
|
||||
@echo "converting $<
|
||||
ln -s $< $*.st
|
||||
$(SNC) $(TARGET_SNCFLAGS) $(SNCFLAGS) $*.st -o $@
|
||||
@$(RM) $*.st
|
||||
|
||||
%.cpp: ../%.st
|
||||
@echo "preprocessing $*.st"
|
||||
@$(RM) $*.i
|
||||
$(CPP) $(CPPSNCFLAGS) $< > $*.i
|
||||
@echo "converting $*.i"
|
||||
@$(RM) $@
|
||||
$(SNC) $(TARGET_SNCFLAGS) $(SNCFLAGS) $*.i -o $@
|
||||
|
||||
%.cpp: %.stt
|
||||
@echo "converting $<
|
||||
ln -s $< $*.st
|
||||
$(SNC) $(TARGET_SNCFLAGS) $(SNCFLAGS) $*.st -o $@
|
||||
@$(RM) $*.st
|
||||
|
||||
# Capfast Rules:
|
||||
%.db: %.edf
|
||||
$(E2DB) $(E2DB_SYSFLAGS) $(E2DB_FLAGS) $<
|
||||
|
||||
%.db: ../%.edf
|
||||
$(E2DB) $(E2DB_SYSFLAGS) $(E2DB_FLAGS) $<
|
||||
|
||||
%.edf: ../%.sch
|
||||
@if [ ! -f cad.rc -a -r ../cad.rc ] ; then ln -s ../cad.rc ; fi
|
||||
$(SCH2EDIF) $(SCH2EDIF_SYSFLAGS) $(SCH2EDIF_FLAGS) $<
|
||||
|
||||
# Adl2dl rule
|
||||
%.dl : ../%.adl
|
||||
-$(ADL2DL) $< $@
|
||||
@@ -281,57 +251,10 @@ endif
|
||||
$(MANGEN) -s $<
|
||||
$(MV) $(<F).nr $(<F).1
|
||||
|
||||
$(INSTALL_DBD)/%: %
|
||||
@echo "Installing $@"
|
||||
@$(INSTALL) -d -m 644 $< $(INSTALL_DBD)
|
||||
|
||||
$(INSTALL_DBD)/%: ../%
|
||||
@echo "Installing $@"
|
||||
@$(INSTALL) -d -m 644 $< $(INSTALL_DBD)
|
||||
|
||||
$(INSTALL_INCLUDE)/%Record.h: %Record.dbd
|
||||
@$(RM) $@
|
||||
$(EPICS_BASE_HOST_BIN)/dbToRecordtypeH$(HOSTEXE) \
|
||||
$(DBDFLAGS) $< $@
|
||||
|
||||
$(INSTALL_INCLUDE)/%Record.h: ../%Record.dbd
|
||||
@$(RM) $@
|
||||
$(EPICS_BASE_HOST_BIN)/dbToRecordtypeH$(HOSTEXE) \
|
||||
$(DBDFLAGS) $< $@
|
||||
|
||||
$(INSTALL_INCLUDE)/menu%.h: menu%.dbd
|
||||
@$(RM) $@
|
||||
$(EPICS_BASE_HOST_BIN)/dbToMenuH$(HOSTEXE) $< $@
|
||||
|
||||
$(INSTALL_INCLUDE)/menu%.h: ../menu%.dbd
|
||||
@$(RM) $@
|
||||
$(EPICS_BASE_HOST_BIN)/dbToMenuH$(HOSTEXE) $< $@
|
||||
|
||||
$(INSTALL_DBD)/bpt%.dbd: bpt%.data
|
||||
@$(RM) $@
|
||||
$(EPICS_BASE_HOST_BIN)/makeBpt$(HOSTEXE) $< $@
|
||||
|
||||
$(INSTALL_DBD)/bpt%.dbd: ../bpt%.data
|
||||
@$(RM) $@
|
||||
$(EPICS_BASE_HOST_BIN)/makeBpt$(HOSTEXE) $< $@
|
||||
|
||||
ifdef DBDEXPAND
|
||||
$(INSTALL_DBD)/$(DBDNAME): $(addprefix ../,$(DBDEXPAND))
|
||||
@echo Expanding dbd
|
||||
@echo $^
|
||||
@$(RM) $@
|
||||
$(EPICS_BASE_HOST_BIN)/dbExpand$(HOSTEXE) $(DBDFLAGS) $(addprefix ../,$(DBDEXPAND)) > $@
|
||||
endif
|
||||
|
||||
# WIN95/NT source browser
|
||||
ifdef BAF
|
||||
|
||||
$(LIB_BAF_HOST): $(addsuffix $(BOF),$(basename $(LIBRARY_LD_OBJS)))
|
||||
@echo "Building source browser archive $@"
|
||||
@$(RM) $@
|
||||
$(BAFCMD) $^
|
||||
|
||||
$(LIB_BAF_IOC): $(addsuffix $(BOF),$(basename $(LIBRARY_LD_OBJS)))
|
||||
$(LIB_BAF): $(addsuffix $(BOF),$(basename $(LIBRARY_LD_OBJS)))
|
||||
@echo "Building source browser archive $@"
|
||||
@$(RM) $@
|
||||
$(BAFCMD) $^
|
||||
@@ -357,13 +280,28 @@ $(SHRLIBNAME):$(LIB_PREFIX)%$(SHRLIB_SUFFIX): $(LIBRARY_OBJS) $(LIBRARY_RESS)
|
||||
$(LINK.shrlib)
|
||||
|
||||
# C++ munching for VxWorks
|
||||
%.nm : %$(OBJ)
|
||||
@$(RM) $@
|
||||
$(NM) $< > $@
|
||||
|
||||
%_ctdt.c : %.nm
|
||||
@$(RM) $@
|
||||
$(PERL) $(TOOLS)/munch.pl < $< > $@
|
||||
|
||||
$(MUNCHNAME):%.munch : %_ctdt$(OBJ) %.o
|
||||
@$(RM) $@
|
||||
$(LDCMD)
|
||||
|
||||
|
||||
# Ext, app and module rules
|
||||
CONFIG_APP_INCLUDE: $(wildcard $(TOP)/configure/RELEASE*)
|
||||
@$(RM) $@
|
||||
@$(PERL) $(TOOLS)/makeConfigAppInclude.pl $(EPICS_HOST_ARCH) $(T_A) $@ $(TOP)
|
||||
|
||||
RULES_INCLUDE: $(wildcard $(TOP)/configure/RELEASE*)
|
||||
@$(RM) $@
|
||||
@$(PERL) $(TOOLS)/makeRulesInclude.pl $(EPICS_HOST_ARCH) $(T_A) $@ $(TOP)
|
||||
|
||||
$(MUNCHNAME):%.munch : %.o
|
||||
@ $(RM) ctct.o ctdt.c nm.out
|
||||
$(NM) $< > nm.out
|
||||
perl $(TOOLS)/munch.pl < nm.out > ctdt.c
|
||||
$(COMPILE.c) -traditional ctdt.c
|
||||
$(GCC_LD) -o $@ $(LDFLAGS) $< ctdt.o
|
||||
|
||||
binInstalls: $(BIN_INSTALLS)
|
||||
@echo "Installing $(^F)"
|
||||
@@ -418,14 +356,18 @@ $(INSTALL_CONFIG)/%: ../%
|
||||
@echo "Installing config file $@"
|
||||
@$(INSTALL) -d -m 644 $< $(@D)
|
||||
|
||||
$(INSTALL_INCLUDE)/os/$(OS_CLASS)/% : %
|
||||
@echo "Installing os dependent include file $@"
|
||||
$(INSTALL_INCLUDE)/% : $(COMMON_DIR)/%
|
||||
@echo "Installing generated generic include file $@"
|
||||
@$(INSTALL) -d -m 644 $< $(@D)
|
||||
|
||||
$(INSTALL_INCLUDE)/% : %
|
||||
@echo "Installing generic include file $@"
|
||||
@$(INSTALL) -d -m 644 $< $(@D)
|
||||
|
||||
$(INSTALL_INCLUDE)/os/$(OS_CLASS)/% : %
|
||||
@echo "Installing os dependent include file $@"
|
||||
@$(INSTALL) -d -m 644 $< $(@D)
|
||||
|
||||
$(INSTALL_DOC)/%: %
|
||||
@echo "Installing doc $@"
|
||||
@$(INSTALL) -d -m 644 $< $(INSTALL_DOC)
|
||||
@@ -442,28 +384,22 @@ $(INSTALL_HTML)/$(HTMLS_DIR)/%: ../%
|
||||
@echo "Installing html $@"
|
||||
@$(INSTALL) -d -m 644 $< $(@D)
|
||||
|
||||
$(INSTALL_TEMPLATES)/$(TEMPLATES_DIR)/%: ../%
|
||||
$(INSTALL_TEMPLATES_SUBDIR)/%: ../%
|
||||
@echo "Installing $@"
|
||||
@$(INSTALL) -d -m 644 $< $(@D)
|
||||
|
||||
$(INSTALL_TEMPLATES)/$(TEMPLATES_DIR)/%: %
|
||||
$(INSTALL_TEMPLATES_SUBDIR)/%: %
|
||||
@echo "Installing $@"
|
||||
@$(INSTALL) -d -m 644 $< $(@D)
|
||||
|
||||
.PRECIOUS: %.o %.c
|
||||
.PRECIOUS: %.i %.o %.c %.nm %.cpp
|
||||
.PRECIOUS: $(COMMON_INC)
|
||||
|
||||
-include $(CONFIG)/RULES.Db
|
||||
|
||||
-include DEPENDS
|
||||
|
||||
.PHONY: all inc depends build install clean rebuild buildInstall binInstalls \
|
||||
iocBinInstalls
|
||||
|
||||
ifneq (,$(wildcard ../base.dbd))
|
||||
$(INSTALL_DBDNAME): ../base.dbd $(RECTYPES:%.h=../%.dbd)
|
||||
else
|
||||
$(INSTALL_DBDNAME): $(RECTYPES:%.h=../%.dbd)
|
||||
endif
|
||||
|
||||
endif # T_A defined
|
||||
.PHONY: all inc depends build install clean rebuild buildInstall binInstalls
|
||||
|
||||
# EOF RULES_BUILD
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@ actionArchTargets = $(foreach action, $(ACTIONS),\
|
||||
$(foreach arch, $(ARCHS), \
|
||||
$(action)$(DIVIDER)$(arch)))
|
||||
|
||||
all install : buildInstall
|
||||
all : buildInstall
|
||||
|
||||
rebuild : clean all
|
||||
|
||||
|
||||
@@ -23,7 +23,8 @@ uninstall: $(addprefix uninstall$(DIVIDER),$(BUILD_ARCHS))
|
||||
|
||||
uninstallDirs:
|
||||
@$(RMDIR) $(INSTALL_DBD) $(INSTALL_INCLUDE) $(INSTALL_DOC)\
|
||||
$(INSTALL_HTML) $(INSTALL_JAVA) $(INSTALL_TEMPLATES)
|
||||
$(INSTALL_HTML) $(INSTALL_JAVA) $(INSTALL_TEMPLATES) \
|
||||
$(INSTALL_DB)
|
||||
|
||||
tar:
|
||||
@DIRNAME=$(notdir $(shell pwd)); \
|
||||
|
||||
@@ -18,18 +18,16 @@ include $(TOP)/configure/CONFIG
|
||||
#
|
||||
# This is used on all systems:
|
||||
USR_CFLAGS = -DVAR=value -Ddefine_for_all_systems
|
||||
# This is added to the above, but only for OS_CLASS=BSD:
|
||||
USR_CFLAGS_BSD = -DVERSION='Berkeley enhanced'
|
||||
# ..only for WIN32:
|
||||
USR_CFLAGS_WIN32 = -DVERSION='WIN32 port'
|
||||
#
|
||||
# -nil- is special:
|
||||
# if USR_CFLAGS_SYSV was undefined or empty, .._DEFAULT would have
|
||||
# if USR_CFLAGS_WIN32 was undefined or empty, .._DEFAULT would have
|
||||
# been used.
|
||||
# To indicate
|
||||
# "yes, there is a special USR_CFLAGS for SYSV, but it's empty"
|
||||
# "yes, there is a special USR_CFLAGS for WIN32, but it's empty"
|
||||
# you have to set it to -nil-:
|
||||
USR_CFLAGS_SYSV = -nil-
|
||||
USR_CFLAGS_WIN32 = -nil-
|
||||
# .. for all other arch classes:
|
||||
USR_CFLAGS_DEFAULT = -DVERSION='generic Unix'
|
||||
|
||||
@@ -58,7 +56,7 @@ a_file_CFLAGS_WIN32 = -DVERSION='WIN32 port'
|
||||
#
|
||||
INC_DEFAULT = for_all_but_WIN32_or_hp700.h
|
||||
INC_WIN32 = only_for_WIN32.h
|
||||
INC_hp700 = -nil- # hp700 uses no special include
|
||||
INC_hpux = -nil- # hpux uses no special include
|
||||
INC = file.h
|
||||
|
||||
# --------------------------------------------------------------------
|
||||
@@ -85,17 +83,17 @@ INC = file.h
|
||||
SRCS = file_for_lib.c another_file.cpp
|
||||
SRCS_DEFAULT = posix.c
|
||||
SRCS_WIN32 = win32_special.c
|
||||
SRCS_BSD = -nil-
|
||||
SRCS_Linux = -nil-
|
||||
#
|
||||
<libname>_SRCS = file_for_lib.c another_file.cpp
|
||||
<libname>_SRCS_DEFAULT = posix.c
|
||||
<libname>_SRCS_WIN32 = win32_special.c
|
||||
<libname>_SRCS_BSD = -nil-
|
||||
libname_SRCS = file_for_lib.c another_file.cpp
|
||||
libname_SRCS_DEFAULT = posix.c
|
||||
libname_SRCS_WIN32 = win32_special.c
|
||||
libname_SRCS_Linux = -nil-
|
||||
#
|
||||
LIBSRCS = file_for_lib.c another_file.cpp
|
||||
LIBSRCS_DEFAULT = posix.c
|
||||
LIBSRCS_WIN32 = win32_special.c
|
||||
LIBSRCS_BSD = -nil-
|
||||
LIBSRCS_Linux = -nil-
|
||||
|
||||
# Library to build:
|
||||
# lib$(LIBRARY).a or ..dll/..exp/..lib
|
||||
@@ -167,8 +165,8 @@ foolib_DIR = $(FOO_LIB)
|
||||
PROD = prod
|
||||
PROD_DEFAULT = product_for_rest
|
||||
PROD_WIN32 = product_only_for_WIN32
|
||||
PROD_BSD = product_only_for_BSD
|
||||
PROD_SYSV = product_only_for_SYSV
|
||||
PROD_Linux = product_only_for_Linux
|
||||
PROD_solaris = product_only_for_solaris
|
||||
|
||||
# Product version
|
||||
PROD_VERSION =
|
||||
@@ -182,7 +180,7 @@ PROD_VERSION =
|
||||
#
|
||||
SCRIPTS_DEFAULT = script_for_rest
|
||||
SCRIPTS_WIN32 = script_only_for_WIN32
|
||||
SCRIPTS_BSD = script_only_for_BSD
|
||||
SCRIPTS_Linux = script_only_for_Linux
|
||||
SCRIPTS = script
|
||||
|
||||
# if you want to build products locally without installing:
|
||||
|
||||
@@ -3,58 +3,70 @@
|
||||
#
|
||||
# $Id$
|
||||
# Author: W. Eric Norum
|
||||
# Canadian Light Source
|
||||
# eric@cls.usask.ca
|
||||
# University of Saskatchewan
|
||||
# eric.norum@usask.ca
|
||||
#
|
||||
# Contains definitions common to all RTEMS targets
|
||||
#
|
||||
# This file is maintained by the build community.
|
||||
# Sites may override definitions in os/CONFIG_SITE.Common.RTEMS
|
||||
#-------------------------------------------------------
|
||||
#
|
||||
|
||||
#
|
||||
#-------------------------------------------------------
|
||||
# Where to find RTEMS
|
||||
RTEMS_BASE=/opt/rtems
|
||||
|
||||
#-------------------------------------------------------
|
||||
# RTEMS tools are similar to UNIX tools
|
||||
#
|
||||
-include $(CONFIG)/os/CONFIG.Common.UnixCommon
|
||||
-include $(CONFIG)/os/CONFIG.Common.UnixCommon
|
||||
|
||||
###############################################################################
|
||||
# #
|
||||
# RTEMS-specific overrides of common UNIX definitions #
|
||||
# #
|
||||
###############################################################################
|
||||
#-------------------------------------------------------
|
||||
# Pick up the RTEMS tool/path definitions from the RTEMS BSP directory.
|
||||
include $(RTEMS_BASE)/$(RTEMS_TARGET_CPU)-rtems/$(subst RTEMS-,,$(T_A))/Makefile.inc
|
||||
include $(RTEMS_CUSTOM)
|
||||
include $(CONFIG.CC)
|
||||
|
||||
#
|
||||
#-------------------------------------------------------
|
||||
# RTEMS cross-development tools
|
||||
CC = $(CC_FOR_TARGET) $(GCCSPECS) -fasm
|
||||
CCC = $(CC)
|
||||
CPP = $(CC_FOR_TARGET) -x c -E
|
||||
AR = $(AR_FOR_TARGET)
|
||||
LD = $(LD_FOR_TARGET) -r
|
||||
RTEMS_LDFLAGS := $(LDFLAGS)
|
||||
LINK.cpp = $(CCC) -o $@ $(RTEMS_LDFLAGS) $(LDFLAGS) $(LINK_OBJS) $(PROD_LD_OBJS) $(PROD_LD_RESS) $(LDLIBS)
|
||||
|
||||
#-------------------------------------------------------
|
||||
# Build types
|
||||
#
|
||||
VALID_BUILDS = Ioc
|
||||
|
||||
#
|
||||
# Pick up the RTEMS tool/path definitions from the RTEMS BSP directory.
|
||||
#
|
||||
ifneq "$(T_A)" ""
|
||||
RTEMS_MAKEFILE_PATH := $(dir $(RTEMS_MAKEFILE_PATH))/$(subst RTEMS-,,$(T_A))
|
||||
-include $(RTEMS_MAKEFILE_PATH)/Makefile.inc
|
||||
-include $(RTEMS_CUSTOM)
|
||||
-include $(CONFIG.CC)
|
||||
endif
|
||||
|
||||
#
|
||||
# Override RTEMS optimization flags
|
||||
#
|
||||
CFLAGS_OPTIMIZE =
|
||||
|
||||
#
|
||||
#--------------------------------------------------
|
||||
# The RTEMS Makefiles redefine several macros, so we have to go
|
||||
# through the following contortions to get the EPICS flags back.
|
||||
#
|
||||
CFLAGS += $(CONFORM_CFLAGS) $(OPT_CFLAGS) $(DEBUG_CFLAGS) $(WARN_CFLAGS)\
|
||||
$(TARGET_CFLAGS) $(USR_CFLAGS) $(ARCH_DEP_CFLAGS) $(CODE_CFLAGS)\
|
||||
$(STATIC_CFLAGS) $(OP_SYS_CFLAGS)
|
||||
CFLAGS = $(CONFORM_CFLAGS) $(CROSS_CFLAGS) $(OPT_CFLAGS) $(DEBUG_CFLAGS)\
|
||||
$(WARN_CFLAGS) $(TARGET_CFLAGS) $(USR_CFLAGS) $(ARCH_DEP_CFLAGS)\
|
||||
$(CODE_CFLAGS) $(STATIC_CFLAGS) $(OP_SYS_CFLAGS)
|
||||
|
||||
CXXFLAGS +=$(CONFORM_CXXFLAGS) $(OPT_CXXFLAGS) $(DEBUG_CXXFLAGS) $(WARN_CXXFLAGS)\
|
||||
$(TARGET_CXXFLAGS) $(USR_CXXFLAGS) $(ARCH_DEP_CXXFLAGS) $(CODE_CXXFLAGS)\
|
||||
$(STATIC_CXXCFLAGS) $(OP_SYS_CFLAGS) $(TEMPL_INST_CXXFLAG)
|
||||
CXXFLAGS = $(CONFORM_CXXFLAGS) $(CROSS_CXXFLAGS) $(OPT_CXXFLAGS)\
|
||||
$(DEBUG_CXXFLAGS) $(WARN_CXXFLAGS) $(TARGET_CXXFLAGS) $(USR_CXXFLAGS)\
|
||||
$(ARCH_DEP_CXXFLAGS) $(CODE_CXXFLAGS) $(STATIC_CXXCFLAGS) $(OP_SYS_CXXFLAGS)\
|
||||
$(TEMPL_INST_CXXFLAG) $(CROSS_CXXFLAGS)
|
||||
|
||||
LDFLAGS += $(OPT_LDFLAGS) $(TARGET_LDFLAGS) $(USR_LDFLAGS) $(DEPLIB_LDFLAGS)\
|
||||
$(ARCH_DEP_LDFLAGS) $(STATIC_LDFLAGS) $(OP_SYS_LDFLAGS)
|
||||
LDFLAGS = $(OPT_LDFLAGS) $(TARGET_LDFLAGS) $(USR_LDFLAGS) $(DEPLIB_LDFLAGS)\
|
||||
$(ARCH_DEP_LDFLAGS) $(STATIC_LDFLAGS) $(OP_SYS_LDFLAGS) $(CROSS_LDFLAGS)
|
||||
|
||||
CPPFLAGS += $(CONFORM_CFLAGS) $(POSIX_CPPFLAGS) $(EPICS_BASE_CPPFLAGS)\
|
||||
$(TARGET_CPPFLAGS) $(USR_CPPFLAGS) $(ARCH_DEP_CPPFLAGS) $(OP_SYS_CPPFLAGS)
|
||||
LDLIBS = $(TARGET_LDLIBS) $(USR_LDLIBS) $(DEPLIB_LDLIBS) $(STATIC_LDLIBS)\
|
||||
$(POSIX_LDLIBS) $(ARCH_DEP_LDLIBS) $(OP_SYS_LDLIBS)
|
||||
|
||||
CPPFLAGS += $(CROSS_CPPFLAGS) $(POSIX_CPPFLAGS) $(EPICS_BASE_CPPFLAGS)\
|
||||
$(TARGET_CPPFLAGS) $(USR_CPPFLAGS) $(ARCH_DEP_CPPFLAGS)\
|
||||
$(OP_SYS_CPPFLAGS) $(CODE_CPPFLAGS)
|
||||
|
||||
#--------------------------------------------------
|
||||
# Although RTEMS uses gcc, it wants to use gcc its own way
|
||||
CROSS_CPPFLAGS =
|
||||
CROSS_LDFLAGS =
|
||||
|
||||
#--------------------------------------------------
|
||||
# operating system class (include/os/<os_class>)
|
||||
@@ -62,49 +74,31 @@ OS_CLASS = RTEMS
|
||||
|
||||
#--------------------------------------------------
|
||||
# Operating system flags
|
||||
OP_SYS_CPPFLAGS = -Dfopen=rtems_fopen -Dmain=rtems_main -DIOCSH_USE_READLINE
|
||||
OP_SYS_LDLIBS = -lreadline -lcurses
|
||||
OP_SYS_CPPFLAGS = -Dfopen=rtems_fopen -Dmain=rtems_main
|
||||
OP_SYS_LDLIBS = -lreadline -lcurses -lm
|
||||
OP_SYS_LDFLAGS = $(CPU_CFLAGS) -u Init -lCom \
|
||||
$(PROJECT_RELEASE)/lib/no-dpmem.rel \
|
||||
$(PROJECT_RELEASE)/lib/no-mp.rel \
|
||||
$(PROJECT_RELEASE)/lib/no-part.rel \
|
||||
$(PROJECT_RELEASE)/lib/no-signal.rel \
|
||||
$(PROJECT_RELEASE)/lib/no-rtmon.rel
|
||||
CPPSNCFLAGS += -x c
|
||||
|
||||
#--------------------------------------------------
|
||||
# c++ exceptions, YES or NO
|
||||
CXX_EXCEPTIONS = NO
|
||||
|
||||
#--------------------------------------------------
|
||||
# osithead use default stack, YES or NO
|
||||
OSITHREAD_USE_DEFAULT_STACK = NO
|
||||
CXX_EXCEPTIONS = YES
|
||||
|
||||
#--------------------------------------------------
|
||||
# RTEMS has neither shared libraries nor dynamic loading
|
||||
STATIC_BUILD=YES
|
||||
SHARED_LIBRARIES=NO
|
||||
GCC_CODE_CFLAGS =
|
||||
G++_CODE_CFLAGS =
|
||||
CODE_CFLAGS =
|
||||
CODE_CXXFLAGS =
|
||||
|
||||
#--------------------------------------------------
|
||||
# RTEMS wants nothing to do with POSIX
|
||||
GCC_POSIX_CPPFLAGS =
|
||||
G++_POSIX_CPPFLAGS =
|
||||
# RTEMS uses the inline keyword, so get rid of pedantic warnings
|
||||
CONFORM_CFLAGS_STRICT = -ansi
|
||||
CONFORM_CXXFLAGS_STRICT = -ansi
|
||||
|
||||
#--------------------------------------------------
|
||||
# RTEMS is not that strict
|
||||
GCC_CONFORM_CFLAGS_STRICT =
|
||||
G++_CONFORM_CFLAGS_STRICT =
|
||||
|
||||
#--------------------------------------------------
|
||||
# RTEMS uses C++ constructors to register commands/programs (snc +i option)
|
||||
%.o: ../%.st
|
||||
@echo "preprocessing $*.st"
|
||||
@$(RM) $*.i
|
||||
$(CPP) $(CPPSNCFLAGS) $< > $*.i
|
||||
@echo "converting $*.i"
|
||||
@$(RM) $*.c
|
||||
$(SNC) +i $(TARGET_SNCFLAGS) $(SNCFLAGS) $*.i
|
||||
@$(RM) $@
|
||||
$(COMPILE.cpp) -x c++ -Wno-deprecated $*.c
|
||||
# Allow site overrides
|
||||
-include $(CONFIG)/os/CONFIG_SITE.Common.RTEMS
|
||||
|
||||
@@ -6,4 +6,5 @@
|
||||
#
|
||||
# All RTEMS targets use the same Makefile fragment
|
||||
#
|
||||
RTEMS_TARGET_CPU=m68k
|
||||
include $(CONFIG)/os/CONFIG.Common.RTEMS
|
||||
|
||||
@@ -6,4 +6,5 @@
|
||||
#
|
||||
# All RTEMS targets use the same Makefile fragment
|
||||
#
|
||||
RTEMS_TARGET_CPU=m68k
|
||||
include $(CONFIG)/os/CONFIG.Common.RTEMS
|
||||
|
||||
11
configure/os/CONFIG.Common.RTEMS-pc386
Normal file
11
configure/os/CONFIG.Common.RTEMS-pc386
Normal file
@@ -0,0 +1,11 @@
|
||||
#
|
||||
# $Id$
|
||||
# Author: W. Eric Norum
|
||||
# Canadian Light Source
|
||||
# eric@cls.usask.ca
|
||||
#
|
||||
# All RTEMS targets use the same Makefile fragment
|
||||
#
|
||||
RTEMS_TARGET_CPU=i386
|
||||
include $(CONFIG)/os/CONFIG.Common.RTEMS
|
||||
OP_SYS_LDFLAGS = -Wl,-Ttext,0x100000
|
||||
@@ -33,10 +33,17 @@ LIBNAME = $(BUILD_LIBRARY:%=$(LIB_PREFIX)%$(LIB_SUFFIX))
|
||||
SHRLIBNAME = $(BUILD_LIBRARY:%=$(LIB_PREFIX)%$(SHRLIB_SUFFIX))
|
||||
|
||||
#-------------------------------------------------------
|
||||
# shrlib: dependancy definitions
|
||||
SHRLIB_DEPLIBS = $(foreach lib,$(SHRLIB_LIBS),$(firstword $(wildcard \
|
||||
$($(lib)_DIR)/$(LIB_PREFIX)$(lib).*)))
|
||||
|
||||
# Shared library definitions
|
||||
SHRLIB_LDFLAGS = $($(ANSI)_SHRLIB_LDFLAGS_$(strip $(SHARED_LIBRARIES)))
|
||||
SHRLIB_LDFLAGS = $(SHRLIB_LDFLAGS_$(strip $(SHARED_LIBRARIES)))
|
||||
SHRLIB_LDLIBS = $($*_LIBS:%=-l%)
|
||||
|
||||
SHRLIB_DEPLIB_DIRS = $(dir $($*_DEPLIBS)) $(dir $(SHRLIB_DEPLIBS))
|
||||
SHRLIB_LDFLAGS += $(sort $(SHRLIB_DEPLIB_DIRS:%=-L%))
|
||||
|
||||
#--------------------------------------------------
|
||||
# Prod: dependancy definitions
|
||||
PROD_DEPLIBS = $(foreach lib,$(PROD_LIBS) $(USR_LIBS),$(firstword $(wildcard \
|
||||
@@ -50,22 +57,15 @@ DEPLIB_LDFLAGS += $(sort $(DEPLIB_DIRS:%=-L%))
|
||||
DEPLIB_LDLIBS = $($*_LIBS:%=-l%) $(PROD_LIBS:%=-l%) $(USR_LIBS:%=-l%)\
|
||||
$($*_SYS_LIBS:%=-l%) $(SYS_PROD_LIBS:%=-l%)
|
||||
|
||||
#--------------------------------------------------
|
||||
# Allow code to be used in a shared library
|
||||
GCC_CODE_CFLAGS += -fPIC
|
||||
G++_CODE_CFLAGS += -fPIC
|
||||
|
||||
#--------------------------------------------------
|
||||
# Operating system definitions
|
||||
OP_SYS_INCLUDES =
|
||||
OP_SYS_CPPFLAGS = -DUNIX
|
||||
OP_SYS_LDFLAGS =
|
||||
OP_SYS_LDLIBS = -lm
|
||||
OP_SYS_CPPFLAGS += -DUNIX
|
||||
OP_SYS_LDLIBS += -lm
|
||||
|
||||
#--------------------------------------------------
|
||||
# Link definitions
|
||||
LINK.cpp = $(CXX) -o $@ $(LDFLAGS) $(PROD_LD_OBJS) $(PROD_LD_RESS) $(LDLIBS)
|
||||
LINK.shrlib = $(CXX) -o $@ $(SHRLIB_LDFLAGS) $(LDFLAGS) $(LIBRARY_LD_OBJS) $(LIBRARY_LD_RESS) $(SHRLIB_LDLIBS)
|
||||
LINK.cpp = $(CCC) -o $@ $(LDFLAGS) $(PROD_LD_OBJS) $(PROD_LD_RESS) $(LDLIBS)
|
||||
LINK.shrlib = $(CCC) -o $@ $(SHRLIB_LDFLAGS) $(LDFLAGS) $(LIBRARY_LD_OBJS) $(LIBRARY_LD_RESS) $(SHRLIB_LDLIBS)
|
||||
|
||||
#--------------------------------------------------
|
||||
# Allow site overrides
|
||||
|
||||
@@ -7,5 +7,30 @@
|
||||
# Sites may override these definitions in CONFIG_SITE.Common.hpux-68k
|
||||
#-------------------------------------------------------
|
||||
|
||||
#Include definitions common to unix hosts
|
||||
#Include definitions common to unix targets
|
||||
include $(CONFIG)/os/CONFIG.Common.UnixCommon
|
||||
|
||||
OS_CLASS = hpux
|
||||
ARCH_CLASS = parisc
|
||||
|
||||
POSIX_CPPFLAGS_YES =
|
||||
POSIX_CPPFLAGS_NO =
|
||||
POSIX_LDLIBS_YES +=
|
||||
POSIX_LDLIBS_NO +=
|
||||
|
||||
######################################################
|
||||
# +DAportable causes portable object code to be created for execution
|
||||
# on different PA-Risc machines
|
||||
OP_SYS_CPPFLAGS = -D_HPUX_SOURCE -DHP_UX
|
||||
OP_SYS_CFLAGS = +DAportable +z
|
||||
OP_SYS_CXXFLAGS = +DAportable +z
|
||||
OP_SYS_LDLIBS +=
|
||||
|
||||
SHRLIB_SUFFIX = .sl
|
||||
|
||||
ifdef CROSS
|
||||
GNU_TARGET=parisc-hp-unix
|
||||
CMPLR_SUFFIX=
|
||||
CMPLR_PREFIX=$(addsuffix -,$(GNU_TARGET))
|
||||
endif
|
||||
|
||||
|
||||
36
configure/os/CONFIG.Common.linux-x86
Normal file
36
configure/os/CONFIG.Common.linux-x86
Normal file
@@ -0,0 +1,36 @@
|
||||
# CONFIG.Common.linux-x86
|
||||
#
|
||||
# $Id$
|
||||
# This file is maintained by the build community.
|
||||
#
|
||||
# Definitions for linux-x86 target builds
|
||||
# Sites may override these definitions in CONFIG_SITE.Common.linux-x86
|
||||
#-------------------------------------------------------
|
||||
|
||||
# Include definitions common to all Unix targets
|
||||
include $(CONFIG)/os/CONFIG.Common.UnixCommon
|
||||
|
||||
OS_CLASS = Linux
|
||||
ARCH_CLASS = x86
|
||||
|
||||
CODE_CPPFLAGS = -D_REENTRANT
|
||||
|
||||
POSIX_CPPFLAGS_YES = -D_POSIX_C_SOURCE=199506L -D_POSIX_THREADS
|
||||
POSIX_CPPFLAGS_NO =
|
||||
POSIX_LDLIBS_YES = -lpthread
|
||||
POSIX_LDLIBS_NO =
|
||||
|
||||
# -D_BSD_SOURCE for gethostname() in unistd.h as needed by cacChannelIO.cpp.
|
||||
OP_SYS_CPPFLAGS += -D_BSD_SOURCE
|
||||
OP_SYS_CPPFLAGS += -Dlinux
|
||||
OP_SYS_LDFLAGS =
|
||||
OP_SYS_LDLIBS = -lreadline -lcurses -lrt
|
||||
|
||||
ARCH_DEP_CPPFLAGS += -D_X86_
|
||||
|
||||
ifdef CROSS
|
||||
GNU_TARGET=i586-pc-linux-gnu
|
||||
CMPLR_SUFFIX=
|
||||
CMPLR_PREFIX=$(addsuffix -,$(GNU_TARGET))
|
||||
endif
|
||||
|
||||
31
configure/os/CONFIG.Common.lynxos-x86
Normal file
31
configure/os/CONFIG.Common.lynxos-x86
Normal file
@@ -0,0 +1,31 @@
|
||||
# CONFIG.Common.lynxos-x86
|
||||
#
|
||||
# $Id$
|
||||
#
|
||||
# This file is maintained by the build community.
|
||||
# Sites may override these definitions in CONFIG_SITE.Common.lynxos-x86
|
||||
#-------------------------------------------------------
|
||||
|
||||
#Include definitions common to unix targets
|
||||
include $(CONFIG)/os/CONFIG.Common.UnixCommon
|
||||
|
||||
OS_CLASS = lynxos
|
||||
ARCH_CLASS = x86
|
||||
|
||||
CODE_CPPFLAGS =
|
||||
|
||||
POSIX_CPPFLAGS_YES =
|
||||
POSIX_CPPFLAGS_NO =
|
||||
POSIX_LDLIBS_YES += -lposix4d9 -lpthread
|
||||
POSIX_LDLIBS_NO +=
|
||||
|
||||
ARCH_DEP_CPPFLAGS += -D_X86_
|
||||
ARCH_DEP_LDFLAGS =
|
||||
ARCH_DEP_LDLIBS =
|
||||
|
||||
ifdef CROSS
|
||||
GNU_TARGET=x86-lynxos
|
||||
CMPLR_SUFFIX=
|
||||
CMPLR_PREFIX=$(addsuffix -,$(GNU_TARGET))
|
||||
endif
|
||||
|
||||
31
configure/os/CONFIG.Common.osf-alpha
Normal file
31
configure/os/CONFIG.Common.osf-alpha
Normal file
@@ -0,0 +1,31 @@
|
||||
# CONFIG.Common.osf-alpha
|
||||
#
|
||||
# $Id$
|
||||
# This file is maintained by the build community.
|
||||
#
|
||||
# Definitions for osf-alpha target archs
|
||||
# Sites may override these definitions in CONFIG_SITE.Common.osf-alpha
|
||||
#-------------------------------------------------------
|
||||
|
||||
# Include definitions common to all Unix targets
|
||||
include $(CONFIG)/os/CONFIG.Common.UnixCommon
|
||||
|
||||
OS_CLASS = osf
|
||||
ARCH_CLASS = alpha
|
||||
|
||||
CODE_CPPFLAGS =
|
||||
|
||||
POSIX_CPPFLAGS_YES =
|
||||
POSIX_LDLIBS_YES +=
|
||||
POSIX_CPPFLAGS_NO =
|
||||
POSIX_LDLIBS_NO +=
|
||||
|
||||
OP_SYS_CPPFLAGS = -D_OSF_SOURCE
|
||||
OP_SYS_LDLIBS +=
|
||||
|
||||
ifdef CROSS
|
||||
GNU_TARGET=alpha-osf
|
||||
CMPLR_SUFFIX=
|
||||
CMPLR_PREFIX=$(addsuffix -,$(GNU_TARGET))
|
||||
endif
|
||||
|
||||
42
configure/os/CONFIG.Common.solaris-sparc
Normal file
42
configure/os/CONFIG.Common.solaris-sparc
Normal file
@@ -0,0 +1,42 @@
|
||||
# CONFIG.Common.solaris-sparc
|
||||
#
|
||||
# $Id$
|
||||
# This file is maintained by the build community.
|
||||
#
|
||||
# Definitions for solaris-sparc target archs
|
||||
# Sites may override these definitions in CONFIG_SITE.Common.solaris-sparc
|
||||
#-------------------------------------------------------
|
||||
|
||||
# Include definitions common to all Unix target archs
|
||||
include $(CONFIG)/os/CONFIG.Common.UnixCommon
|
||||
|
||||
OS_CLASS = solaris
|
||||
ARCH_CLASS = sparc
|
||||
|
||||
CODE_CPPFLAGS = -D__EXTENSIONS__
|
||||
|
||||
# This is the only combination of posix threads flags that works with solaris 6
|
||||
POSIX_CPPFLAGS_YES = -D_REENTRANT -D_POSIX_C_SOURCE=199506L
|
||||
POSIX_LDLIBS_YES += -lposix4 -lpthread -lthread
|
||||
|
||||
# This set of flags is recommended by sun for posix threads and works with solaris 8
|
||||
####POSIX_CPPFLAGS_YES = -D_POSIX_C_SOURCE=199506L
|
||||
####POSIX_LDLIBS_YES += -lposix4 -lpthread
|
||||
|
||||
POSIX_CPPFLAGS_NO =
|
||||
POSIX_LDLIBS_NO +=
|
||||
|
||||
OP_SYS_CPPFLAGS = -DSOLARIS
|
||||
# socket and nsl needed by libca.a
|
||||
OP_SYS_LDLIBS += -lsocket -lnsl
|
||||
|
||||
# -R does not work unless full path names are specified
|
||||
# use loader's -R option
|
||||
DEPLIB_LDFLAGS += $(sort $(DEPLIB_DIRS:%=-R%))
|
||||
|
||||
ifdef CROSS
|
||||
GNU_TARGET=sparc-sun-solaris2
|
||||
CMPLR_SUFFIX=
|
||||
CMPLR_PREFIX=$(addsuffix -,$(GNU_TARGET))
|
||||
endif
|
||||
|
||||
12
configure/os/CONFIG.Common.solaris-sparc-gnu
Normal file
12
configure/os/CONFIG.Common.solaris-sparc-gnu
Normal file
@@ -0,0 +1,12 @@
|
||||
# CONFIG.Common.solaris-sparc-gnu
|
||||
#
|
||||
# $Id$
|
||||
# This file is maintained by the build community.
|
||||
#
|
||||
# Definitions for solaris-sparc gnu compiler target archs
|
||||
# Sites may override these definitions in CONFIG_SITE.Common.solaris-sparc-gnu
|
||||
#-------------------------------------------------------
|
||||
|
||||
# Include definitions common to all solaris-sparc target archs
|
||||
include $(CONFIG)/os/CONFIG.Common.solaris-sparc
|
||||
|
||||
39
configure/os/CONFIG.Common.solaris-x86
Normal file
39
configure/os/CONFIG.Common.solaris-x86
Normal file
@@ -0,0 +1,39 @@
|
||||
# CONFIG.Common.solaris-x86
|
||||
#
|
||||
# $Id$
|
||||
# This file is maintained by the build community.
|
||||
#
|
||||
# Definitions for solaris-x86 target archs
|
||||
# Sites may override these definitions in CONFIG_SITE.Common.solaris-x86
|
||||
#-------------------------------------------------------
|
||||
|
||||
# Include definitions common to all Unix target archs
|
||||
include $(CONFIG)/os/CONFIG.Common.UnixCommon
|
||||
|
||||
OS_CLASS = solaris
|
||||
ARCH_CLASS = x86
|
||||
|
||||
CODE_CPPFLAGS = -D__EXTENSIONS__
|
||||
|
||||
# This is the only combination of posix threads flags that works on solaris-sparc with solaris 6
|
||||
#POSIX_CPPFLAGS_YES = -D_REENTRANT -D_POSIX_C_SOURCE=199506L
|
||||
#POSIX_LDLIBS_YES += -lposix4 -lpthread -lthread
|
||||
|
||||
# This set of flags is recommended by sun for posix threads and works with solaris 8
|
||||
POSIX_CPPFLAGS_YES = -D_POSIX_C_SOURCE=199506L
|
||||
POSIX_LDLIBS_YES += -lposix4 -lpthread
|
||||
|
||||
POSIX_CPPFLAGS_NO =
|
||||
POSIX_LDLIBS_NO +=
|
||||
|
||||
OP_SYS_CPPFLAGS = -DSOLARIS
|
||||
ARCH_DEP_CPPFLAGS = -D_X86_
|
||||
# socket and nsl needed by libca.a
|
||||
OP_SYS_LDLIBS += -lsocket -lnsl
|
||||
|
||||
ifdef CROSS
|
||||
GNU_TARGET=x86-sun-solaris2
|
||||
CMPLR_SUFFIX=
|
||||
CMPLR_PREFIX=$(addsuffix -,$(GNU_TARGET))
|
||||
endif
|
||||
|
||||
12
configure/os/CONFIG.Common.solaris-x86-gnu
Normal file
12
configure/os/CONFIG.Common.solaris-x86-gnu
Normal file
@@ -0,0 +1,12 @@
|
||||
# CONFIG.Common.solaris-x86-gnu
|
||||
#
|
||||
# $Id$
|
||||
# This file is maintained by the build community.
|
||||
#
|
||||
# Definitions for solaris-x86 gnu compiler target archs
|
||||
# Sites may override these definitions in CONFIG_SITE.Common.solaris-x86-gnu
|
||||
#-------------------------------------------------------
|
||||
|
||||
# Include definitions common to all solaris-x86 target archs
|
||||
include $(CONFIG)/os/CONFIG.Common.solaris-x86
|
||||
|
||||
33
configure/os/CONFIG.Common.sun4-x86
Normal file
33
configure/os/CONFIG.Common.sun4-x86
Normal file
@@ -0,0 +1,33 @@
|
||||
# CONFIG.Common.sun4-x86
|
||||
#
|
||||
# $Id$
|
||||
# This file is maintained by the build community.
|
||||
#
|
||||
# Definitions for sun4-x86 target archs
|
||||
# Sites may override these definitions in CONFIG_SITE.Common.sun4-x86
|
||||
#-------------------------------------------------------
|
||||
|
||||
# Include definitions common to all Unix target archs
|
||||
include $(CONFIG)/os/CONFIG.Common.UnixCommon
|
||||
|
||||
OS_CLASS = sun4
|
||||
ARCH_CLASS = x86
|
||||
|
||||
CODE_CPPFLAGS = -D__EXTENSIONS__
|
||||
|
||||
POSIX_CPPFLAGS_YES = -D_POSIX_C_SOURCE=199506L
|
||||
POSIX_LDLIBS_YES += -lpthread -lthread
|
||||
POSIX_CPPFLAGS_NO =
|
||||
POSIX_LDLIBS_NO +=
|
||||
|
||||
OP_SYS_CPPFLAGS = -DSUNOS4
|
||||
OP_SYS_LDLIBS += -lsocket -lnsl
|
||||
|
||||
ARCH_DEP_CPPFLAGS += -D_X86_
|
||||
|
||||
ifdef CROSS
|
||||
GNU_TARGET=x86-sun-sunos4
|
||||
CMPLR_SUFFIX=
|
||||
CMPLR_PREFIX=$(addsuffix -,$(GNU_TARGET))
|
||||
endif
|
||||
|
||||
21
configure/os/CONFIG.Common.vxWorks-ppc603
Normal file
21
configure/os/CONFIG.Common.vxWorks-ppc603
Normal file
@@ -0,0 +1,21 @@
|
||||
# CONFIG.Common.vxWorks-ppc603
|
||||
#
|
||||
# $Id$
|
||||
# This file is maintained by the build community.
|
||||
#
|
||||
# Definitions for vxWorks-ppc604 target archs
|
||||
# Sites may override these definitions in CONFIG_SITE.Common.vxWorks-ppc604
|
||||
#-------------------------------------------------------
|
||||
|
||||
# Include definitions common to all vxWorks target archs
|
||||
include $(CONFIG)/os/CONFIG.Common.vxWorksCommon
|
||||
|
||||
# Vx GNU cross compiler suffix
|
||||
CMPLR_SUFFIX = ppc
|
||||
|
||||
ARCH_CLASS = ppc
|
||||
|
||||
# Architecture specific build flags
|
||||
ARCH_DEP_CPPFLAGS = -DCPU=PPC603
|
||||
ARCH_DEP_CFLAGS = -mcpu=603 -mstrict-align
|
||||
|
||||
@@ -1,14 +1,13 @@
|
||||
# CONFIG.Common.vxWorksCommon
|
||||
#
|
||||
# $Id$
|
||||
# This file is maintained by the build community.
|
||||
#
|
||||
# Definitions for vxWorks target archs
|
||||
#
|
||||
# This file is maintained by the build community.
|
||||
# Sites may override these definitions in CONFIG_SITE.Common.vxWorksCommon
|
||||
# or CONFIG_SITE.<host>.vxWorksCommon
|
||||
|
||||
#-------------------------------------------------------
|
||||
|
||||
# Vx valid build types
|
||||
VALID_BUILDS = Ioc
|
||||
|
||||
@@ -22,13 +21,16 @@ EXE =
|
||||
OBJ = .o
|
||||
LIB_PREFIX =
|
||||
LIB_SUFFIX = Library.o
|
||||
MUNCH_SUFFIX = Library.munch
|
||||
MUNCH_SUFFIX = .munch
|
||||
|
||||
#-------------------------------------------------------
|
||||
# Library definition
|
||||
# Build both *.o and *.munch libraries
|
||||
LIBNAME = $(BUILD_LIBRARY:%=$(LIB_PREFIX)%$(LIB_SUFFIX))
|
||||
MUNCHNAME = $(BUILD_LIBRARY:%=$(LIB_PREFIX)%$(MUNCH_SUFFIX))
|
||||
MUNCHNAME = $(LIBNAME:%$(OBJ)=%$(MUNCH_SUFFIX))
|
||||
LIBRARY_CTDT_SRCS = $(LIBNAME:%$(OBJ)=%_ctdt.c)
|
||||
LIBRARY_CTDT_OBJS = $(LIBNAME:%$(OBJ)=%_ctdt$(OBJ))
|
||||
LIBRARY_NM = $(LIBNAME:%$(OBJ)=%.nm)
|
||||
|
||||
#--------------------------------------------------
|
||||
# Library install location override
|
||||
@@ -37,17 +39,16 @@ INSTALL_LOCATION_LIB=$(INSTALL_LOCATION)/bin
|
||||
#--------------------------------------------------
|
||||
# vxWorks directory definitions
|
||||
# Tornado directory definitions
|
||||
VX_INCLUDE = $(VX_DIR)/target/h
|
||||
GNU_TARGET_INCLUDE_DIR = $(VX_DIR)/target/h
|
||||
GNU_DIR = $(VX_DIR)/host/$(WIND_HOST_TYPE)
|
||||
|
||||
#-------------------------------------------------------
|
||||
# Command definition overrides
|
||||
GCC_LD = $(GNU_BIN)/$(CMPLR_PREFIX)ld$(CMPLR_SUFFIX) -r
|
||||
|
||||
# use ld partial linking not ar to create libraries)
|
||||
GCC_AR = $(GCC_LD)
|
||||
AR = $(LD)
|
||||
ARFLAGS = -o
|
||||
GCC_RANLIB =
|
||||
RANLIB =
|
||||
|
||||
#--------------------------------------------------
|
||||
# C++ host processing
|
||||
@@ -59,14 +60,8 @@ NM = $(GNU_BIN)/$(CMPLR_PREFIX)nm$(CMPLR_SUFFIX)$(HOSTEXE)
|
||||
export WIND_BASE = $(VX_DIR)
|
||||
export WIND_HOST_TYPE
|
||||
|
||||
#--------------------------------------------------
|
||||
# Posix flags override
|
||||
GCC_POSIX_CPPFLAGS = -D_POSIX_SOURCE
|
||||
G++_POSIX_CPPFLAGS = -D_POSIX_SOURCE
|
||||
|
||||
#--------------------------------------------------
|
||||
# Operating system flags
|
||||
OP_SYS_INCLUDES = -I$(VX_INCLUDE)
|
||||
OP_SYS_CPPFLAGS = -DvxWorks
|
||||
OP_SYS_CFLAGS = -fno-builtin
|
||||
OP_SYS_LDFLAGS =
|
||||
@@ -74,14 +69,24 @@ OP_SYS_LDLIBS =
|
||||
|
||||
# Fix for vxWorks headers using macros defined in
|
||||
# vxWorks.h but not including vxWorks.h
|
||||
OP_SYS_CFLAGS += -include $(VX_INCLUDE)/vxWorks.h
|
||||
OP_SYS_INCLUDE_CPPFLAGS += -include $(GNU_TARGET_INCLUDE_DIR)/vxWorks.h
|
||||
|
||||
#--------------------------------------------------
|
||||
# code flags
|
||||
CODE_CFLAGS =
|
||||
CODE_CXXFLAGS =
|
||||
|
||||
#--------------------------------------------------
|
||||
# posix c preprocessor flags
|
||||
POSIX_CPPFLAGS_YES = -D_POSIX_SOURCE
|
||||
POSIX_CPPFLAGS_NO =
|
||||
|
||||
#--------------------------------------------------
|
||||
# Optimization flag overrides
|
||||
GCC_OPT_YES = -O2
|
||||
GCC_OPT_NO =
|
||||
G++_OPT_YES = -O2
|
||||
G++_OPT_NO =
|
||||
OPT_CFLAGS_YES = -O3
|
||||
OPT_CFLAGS_NO =
|
||||
OPT_CXXFLAGS_YES = -O3
|
||||
OPT_CXXFLAGS_NO =
|
||||
|
||||
#--------------------------------------------------
|
||||
# c++ exceptions, YES or NO override
|
||||
@@ -93,7 +98,7 @@ OSITHREAD_USE_DEFAULT_STACK = NO
|
||||
|
||||
#--------------------------------------------------
|
||||
# Link definitions
|
||||
LINK.cpp = $(GCC_LD) -o $@ $(LDFLAGS) $(PROD_LD_OBJS) $(PROD_LD_RES) $(LDLIBS)
|
||||
LINK.cpp = $(LD) -o $@ $(LDFLAGS) $(PROD_LD_OBJS) $(PROD_LD_RES) $(LDLIBS)
|
||||
|
||||
#--------------------------------------------------
|
||||
# Allow site overrides
|
||||
|
||||
30
configure/os/CONFIG.Common.win32-x86-cygwin
Normal file
30
configure/os/CONFIG.Common.win32-x86-cygwin
Normal file
@@ -0,0 +1,30 @@
|
||||
# CONFIG.Common.win32-x86-cygwin
|
||||
#
|
||||
# $Id$
|
||||
# This file is maintained by the build community.
|
||||
#
|
||||
# Definitions for win32-x86-cygwin target builds
|
||||
# Sites may override these definitions in CONFIG_SITE.Common.win32-x86-cygwin
|
||||
#-------------------------------------------------------
|
||||
|
||||
# Include definitions common to all Unix targets
|
||||
include $(CONFIG)/os/CONFIG.Common.UnixCommon
|
||||
|
||||
OS_CLASS = cygwin32
|
||||
ARCH_CLASS = x86
|
||||
|
||||
EXE=.exe
|
||||
|
||||
POSIX_CPPFLAGS_YES = -D_POSIX_SOURCE=199506L -D_POSIX_THREADS
|
||||
POSIX_CPPFLAGS_NO =
|
||||
#####POSIX_LDLIBS_YES = -lpthread
|
||||
#####POSIX_LDLIBS_YES = -lthread
|
||||
POSIX_LDLIBS_NO =
|
||||
|
||||
# -D_BSD_SOURCE for gethostname() in unistd.h as needed by cacChannelIO.cpp.
|
||||
OP_SYS_CPPFLAGS += -DCYGWIN32 -U_WIN32
|
||||
OP_SYS_LDFLAGS =
|
||||
####OP_SYS_LDLIBS = -lreadline -lcurses -lrt
|
||||
|
||||
ARCH_DEP_CPPFLAGS += -D_X86_
|
||||
|
||||
@@ -7,54 +7,45 @@
|
||||
# Sites may override these definitions in CONFIG_SITE.hpux-parisc.hpux-parisc
|
||||
#-------------------------------------------------------
|
||||
|
||||
OS_CLASS = hpux
|
||||
ARCH_CLASS = parisc
|
||||
CC = cc
|
||||
CCC = aCC
|
||||
CPP = $(CC) -E
|
||||
RANLIB =
|
||||
AR = ar -rc
|
||||
LD = ld -r
|
||||
|
||||
# Configure OS vendor C compiler
|
||||
ACC = cc
|
||||
ACC_CONFORM_CFLAGS_ANSI = -Aa
|
||||
ACC_CONFORM_CFLAGS_STRICT = -Aa
|
||||
ACC_CONFORM_CFLAGS_TRAD = -Ac
|
||||
ACC_WARN_YES =
|
||||
ACC_WARN_NO = -w
|
||||
ACC_OPT_YES = -O
|
||||
ACC_OPT_NO = -g
|
||||
ACC_STATIC_CFLAGS_YES= -Wl,-a,archive
|
||||
ACC_STATIC_CFLAGS_NO =
|
||||
ACC_STATIC_LDLIBS_YES =
|
||||
ACC_STATIC_LDLIBS_NO =
|
||||
ACC_SHRLIB_LDFLAGS_YES = -b
|
||||
|
||||
# Configure OS vendor C++ compiler
|
||||
CCC = aCC
|
||||
# avoid treating "future errors" as actual errors
|
||||
CCC_CONFORM_CFLAGS_NORMAL = +W302 +W829 +W818 +W392 +W469 +W495 +W749 +W667 +W392 +W684
|
||||
CCC_CONFORM_CFLAGS_STRICT = +p
|
||||
CCC_TEMPL_INST_FLAG =
|
||||
CCC_WARN_YES = +w
|
||||
CCC_WARN_NO =
|
||||
CCC_OPT_YES = -O
|
||||
CCC_OPT_NO = -g
|
||||
CCC_STATIC_CFLAGS_YES= +A
|
||||
CCC_STATIC_CFLAGS_NO =
|
||||
CCC_STATIC_LDLIBS_YES =
|
||||
CCC_STATIC_LDLIBS_NO =
|
||||
# shared libs will be found by searching environment variable SHLIB_PATH,
|
||||
# then by searching the specified path (see below)
|
||||
CCC_SHRLIB_LDFLAGS_YES = -b
|
||||
CCC_DEPENDS_FLAG = +m
|
||||
|
||||
# +DAportable causes portable object code to be created for execution
|
||||
# on different PA-Risc machines
|
||||
ARCH_DEP_CPPFLAGS = -D_HPUX_SOURCE -DHP_UX
|
||||
ARCH_DEP_CFLAGS = +DAportable +z
|
||||
ARCH_DEP_CXXFLAGS = +DAportable +z
|
||||
ARCH_DEP_LDLIBS =
|
||||
ARCH_DEP_LDFLAGS = -Wl,+b$(DEFAULT_SHRLIB_SEARCH_PATH),+s
|
||||
|
||||
AR = ar -rc
|
||||
|
||||
SHRLIB_SUFFIX = .sl
|
||||
CONFORM_CFLAGS_ANSI = -Aa
|
||||
CONFORM_CFLAGS_STRICT = -Aa
|
||||
CONFORM_CFLAGS_TRAD = -Ac
|
||||
CODE_CFLAGS =
|
||||
WARN_CFLAGS_YES =
|
||||
WARN_CFLAGS_NO = -w
|
||||
OPT_CFLAGS_YES = -O
|
||||
OPT_CFLAGS_NO = -g
|
||||
|
||||
# HP's aCC will not compile things if run in STRICT mode
|
||||
CXXCMPLR=NORMAL
|
||||
|
||||
# Configure OS vendor C++ compiler
|
||||
CONFORM_CXXFLAGS_NORMAL = +W302 +W829 +W818 +W392 +W469 +W495 +W749 +W667 +W392 +W684
|
||||
CONFORM_CXXFLAGS_STRICT = +p
|
||||
CODE_CXXFLAGS =
|
||||
TEMPL_INST_CXXFLAG =
|
||||
WARN_CXXFLAGS_YES = +w
|
||||
WARN_CXXFLAGS_NO =
|
||||
OPT_CXXFLAGS_YES = -O
|
||||
OPT_CXXFLAGS_NO = -g
|
||||
|
||||
STATIC_LDFLAGS_YES= -Wl,-a,archive +A
|
||||
# shared libs will be found by searching environment variable SHLIB_PATH,
|
||||
# then by searching the specified path (see below)
|
||||
STATIC_LDFLAGS_YES+= -b
|
||||
STATIC_LDFLAGS_NO = -Wl,+b$(DEFAULT_SHRLIB_SEARCH_PATH),+s
|
||||
STATIC_LDLIBS_YES=
|
||||
STATIC_LDLIBS_NO=
|
||||
|
||||
SHRLIB_LDFLAGS_YES = -G -h $@
|
||||
|
||||
DEPENDS_FLAG = +m
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
# $Id$
|
||||
# This file is maintained by the build community.
|
||||
#
|
||||
# Definitions for linux-x86 host archs
|
||||
# Definitions for linux-x86 host builds
|
||||
# Sites may override these definitions in CONFIG_SITE.linux-x86.Common
|
||||
#-------------------------------------------------------
|
||||
|
||||
@@ -11,4 +11,3 @@
|
||||
include $(CONFIG)/os/CONFIG.UnixCommon.Common
|
||||
|
||||
WIND_HOST_TYPE = i386-linux2
|
||||
|
||||
|
||||
@@ -2,38 +2,14 @@
|
||||
#
|
||||
# $Id$
|
||||
#
|
||||
# This file is maintained by the build community.
|
||||
# Sites may override these definitions in CONFIG_SITE.linux-x86.linux-x86
|
||||
# Definitions for linux-x86 host - linux-x86 target builds
|
||||
# Sites may override these definitions in CONFIG_SITE.linux-x86.linux-x86
|
||||
#-------------------------------------------------------
|
||||
|
||||
# Include definitions common to all Unix target archs
|
||||
include $(CONFIG)/os/CONFIG.Common.UnixCommon
|
||||
|
||||
|
||||
OS_CLASS = Linux
|
||||
ARCH_CLASS = x86
|
||||
# Include common gnu compiler definitions
|
||||
include $(CONFIG)/CONFIG.gnuCommon
|
||||
|
||||
GNU_DIR = /usr
|
||||
|
||||
# Configure OS vendor C compiler
|
||||
# These are overrides of ANSI and CPLUSPLUS values in CONFIG_SITE
|
||||
# since OS vendor compilers is gnu compiler
|
||||
ANSI=GCC
|
||||
CPLUSPLUS=G++
|
||||
|
||||
# Configure gnu C compiler
|
||||
GCC = gcc
|
||||
G++ = g++
|
||||
|
||||
AR = ar -rc
|
||||
ARFLAGS =
|
||||
RANLIB = ranlib -t
|
||||
|
||||
# -D_BSD_SOURCE for gethostname() in unistd.h as needed by cacChannelIO.cpp.
|
||||
ARCH_DEP_CPPFLAGS += -D_BSD_SOURCE
|
||||
# IOCSH_USE_READLINE needed by iocsh/ioccrf.c
|
||||
ARCH_DEP_CPPFLAGS += -DIOCSH_USE_READLINE
|
||||
ARCH_DEP_CPPFLAGS += -D_X86_ -Dlinux
|
||||
|
||||
ARCH_DEP_LDFLAGS =
|
||||
ARCH_DEP_LDLIBS = -lpthread -lreadline -lcurses -lrt
|
||||
CC = $(GNU_BIN)/gcc
|
||||
CCC = $(GNU_BIN)/g++
|
||||
|
||||
@@ -6,26 +6,8 @@
|
||||
# Sites may override these definitions in CONFIG_SITE.lynxos-x86.lynxos-x86
|
||||
#-------------------------------------------------------
|
||||
|
||||
OS_CLASS = lynxos
|
||||
ARCH_CLASS = x86
|
||||
# Include common gnu compiler definitions
|
||||
include $(CONFIG)/CONFIG.gnuCommon
|
||||
|
||||
GNU_DIR = /usr
|
||||
|
||||
# Configure OS vendor C compiler
|
||||
# These are overrides of ANSI and CPLUSPLUS values in CONFIG_SITE
|
||||
# since OS vendor compilers is gnu compiler
|
||||
ANSI=GCC
|
||||
CPLUSPLUS=G++
|
||||
|
||||
# Configure gnu C compiler
|
||||
GCC = gcc
|
||||
G++ = g++
|
||||
|
||||
AR = ar -rc
|
||||
ARFLAGS =
|
||||
RANLIB = ranlib -t
|
||||
|
||||
ARCH_DEP_CPPFLAGS += -D_X86_
|
||||
ARCH_DEP_LDFLAGS =
|
||||
ARCH_DEP_LDLIBS = -lposix4d9 -lpthread
|
||||
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
# CONFIG.solaris-sparc.Common
|
||||
# CONFIG.osf-alpha.Common
|
||||
#
|
||||
# $Id$
|
||||
# This file is maintained by the build community.
|
||||
#
|
||||
# Definitions for solaris-sparc host archs
|
||||
# Sites may override these definitions in CONFIG_SITE.solaris-sparc.Common
|
||||
# Definitions for osf-alpha host archs
|
||||
# Sites may override these definitions in CONFIG_SITE.osf-alpha.Common
|
||||
#-------------------------------------------------------
|
||||
|
||||
#Include definitions common to unix hosts
|
||||
include $(CONFIG)/os/CONFIG.UnixCommon.Common
|
||||
|
||||
WIND_HOST_TYPE = sun4-solaris2
|
||||
WIND_HOST_TYPE = osf-alpha
|
||||
|
||||
|
||||
@@ -1,72 +1,51 @@
|
||||
# CONFIG.solaris-sparc.solaris-sparc
|
||||
# CONFIG.osf-alpha.osf-alpha
|
||||
#
|
||||
# $Id$
|
||||
# This file is maintained by the build community.
|
||||
#
|
||||
# Definitions for linux-x86 host archs
|
||||
# Sites may override these definitions in CONFIG_SITE.solaris-sparc.solaris-sparc
|
||||
# Definitions for osf-alpha host archs
|
||||
# Sites may override these definitions in CONFIG_SITE.osf-alpha.osf-alpha
|
||||
#-------------------------------------------------------
|
||||
|
||||
# Include definitions common to all Unix target archs
|
||||
include $(CONFIG)/os/CONFIG.Common.UnixCommon
|
||||
|
||||
OS_CLASS = solaris
|
||||
ARCH_CLASS = sparc
|
||||
|
||||
SPARCWORKS = /opt/SUNWspro
|
||||
CC = cc
|
||||
CCC = cxx
|
||||
CPP = $(CC) -E
|
||||
RANLIB =
|
||||
AR = ar
|
||||
LD = -r
|
||||
|
||||
# Configure OS vendor C compiler
|
||||
ACC = $(SPARCWORKS)/bin/cc
|
||||
ACC_CONFORM_CFLAGS_ANSI = -Xa
|
||||
ACC_CONFORM_CFLAGS_STRICT = -Xc -v
|
||||
ACC_CONFORM_CFLAGS_TRAD = -Xs
|
||||
ACC_CODE_CFLAGS = -KPIC -D_REENTRANT
|
||||
ACC_WARN_YES =
|
||||
ACC_WARN_NO = -w
|
||||
ACC_OPT_YES = -xO4
|
||||
ACC_OPT_NO = -g
|
||||
ACC_STATIC_LDFLAGS_YES= -Bstatic
|
||||
ACC_STATIC_LDLIBS_YES= -lw -lintl -Bdynamic -ldl -lposix4 -lpthread -lthread -Bstatic -lXext -lX
|
||||
ACC_STATIC_LDLIBS_NO= -lposix4 -lpthread -lthread
|
||||
ACC_SHRLIB_LDFLAGS_YES = -G -h $@
|
||||
ACC_POSIX_CPPFLAGS = -D_POSIX_C_SOURCE=199506L -D__EXTENSIONS__
|
||||
CONFORM_CFLAGS_ANSI = -std
|
||||
CONFORM_CFLAGS_STRICT = -std1
|
||||
CONFORM_CFLAGS_TRAD = -std0
|
||||
CODE_CFLAGS =
|
||||
WARN_CFLAGS_YES =
|
||||
WARN_CFLAGS_NO = -w
|
||||
OPT_CFLAGS_YES = -O
|
||||
OPT_CFLAGS_NO = -g
|
||||
|
||||
# Configure OS vendor C++ compiler
|
||||
CCC = $(SPARCWORKS)/bin/CC
|
||||
CCC_CONFORM_CFLAGS_NORMAL = +p
|
||||
CCC_CONFORM_CFLAGS_STRICT = +p
|
||||
CCC_CODE_CFLAGS = -KPIC -D_REENTRANT
|
||||
CCC_TEMPL_INST_FLAG =
|
||||
CCC_WARN_YES = +w
|
||||
CCC_WARN_NO =
|
||||
CCC_OPT_YES = -xO4
|
||||
CCC_OPT_NO = -g
|
||||
CCC_STATIC_LDFLAGS_YES= -Bstatic
|
||||
CCC_STATIC_LDLIBS_YES= -lw -lintl -Bdynamic -ldl -lposix4 -lpthread -lthread -Bstatic -lXext -lX
|
||||
CCC_STATIC_LDLIBS_NO=
|
||||
CCC_SHRLIB_LDFLAGS_YES = -G -h $@
|
||||
CCC_DEPENDS_FLAG = -xM1
|
||||
CCC_POSIX_CPPFLAGS = -D_POSIX_C_SOURCE=199506L -D__EXTENSIONS__
|
||||
CONFORM_CXXFLAGS_NORMAL =
|
||||
CONFORM_CXXFLAGS_STRICT =
|
||||
PROF_CXXFLAGS_YES = +p
|
||||
PROF_CXXFLAGS_NO =
|
||||
CODE_CXXFLAGS =
|
||||
TEMPL_INST_CXXFLAG =
|
||||
WARN_CXXFLAGS_YES =
|
||||
WARN_CXXFLAGS_NO =
|
||||
OPT_CXXFLAGS_YES = -O
|
||||
OPT_CXXFLAGS_NO = -g
|
||||
|
||||
ACC_CPP = cpp
|
||||
STATIC_LDFLAGS_YES= -Bstatic
|
||||
STATIC_LDFLAGS_NO=
|
||||
STATIC_LDLIBS_YES= -Bdynamic
|
||||
STATIC_LDLIBS_NO=
|
||||
|
||||
#Configure gnu compiler
|
||||
GCC = gcc
|
||||
G++ = g++
|
||||
GCC_CPP = $(GCC) -x c -E
|
||||
SHRLIB_LDFLAGS_YES = -shared
|
||||
|
||||
GCC_POSIX_CPPFLAGS += -D__EXTENSIONS__
|
||||
G++_POSIX_CPPFLAGS += -D__EXTENSIONS__
|
||||
DEPENDS_FLAG =
|
||||
|
||||
RANLIB =
|
||||
# required by sun's C++ compiler
|
||||
AR = $(CCC) -xar -o
|
||||
|
||||
ARCH_DEP_CPPFLAGS =
|
||||
ARCH_DEP_LDLIBS = -lposix4 -lpthread -lthread
|
||||
# socket and nsl needed by libca.a
|
||||
ARCH_DEP_LDLIBS += -lsocket -lnsl
|
||||
|
||||
# use loader's -R option
|
||||
DEPLIB_LDFLAGS += $(sort $(DEPLIB_DIRS:%=-R%))
|
||||
############# ???????????
|
||||
#####ACC_SFLAGS_YES= -non_shared
|
||||
#####ACC_SFLAGS_NO= -call_shared
|
||||
|
||||
|
||||
12
configure/os/CONFIG.solaris-sparc-gnu.Common
Normal file
12
configure/os/CONFIG.solaris-sparc-gnu.Common
Normal file
@@ -0,0 +1,12 @@
|
||||
# CONFIG.solaris-sparc-gnu.Common
|
||||
#
|
||||
# $Id$
|
||||
# This file is maintained by the build community.
|
||||
#
|
||||
# Definitions for solaris-sparc gnu compiler host builds
|
||||
# Sites may override these definitions in CONFIG_SITE.solaris-sparc-gnu.Common
|
||||
#-------------------------------------------------------
|
||||
|
||||
#Include definitions common to solaris-sparc hosts
|
||||
include $(CONFIG)/os/CONFIG.solaris-sparc.Common
|
||||
|
||||
20
configure/os/CONFIG.solaris-sparc-gnu.solaris-sparc-gnu
Normal file
20
configure/os/CONFIG.solaris-sparc-gnu.solaris-sparc-gnu
Normal file
@@ -0,0 +1,20 @@
|
||||
# CONFIG.solaris-sparc-gnu.solaris-sparc-gnu
|
||||
#
|
||||
# $Id$
|
||||
# This file is maintained by the build community.
|
||||
#
|
||||
# Definitions for solaris-sparc gnu compiler host - solaris-sparc gnu compiler target builds
|
||||
# Sites may override these definitions in CONFIG_SITE.solaris-sparc-gnu.solaris-sparc-gnu
|
||||
#-------------------------------------------------------
|
||||
|
||||
# Include common gnu compiler definitions
|
||||
include $(CONFIG)/CONFIG.gnuCommon
|
||||
|
||||
GNU_DIR = /opt/gnu
|
||||
|
||||
CC = $(GNU_BIN)/gcc
|
||||
CCC = $(GNU_BIN)/g++
|
||||
AR = ar -rc
|
||||
RANLIB=
|
||||
LD = ld -r
|
||||
|
||||
@@ -3,81 +3,58 @@
|
||||
# $Id$
|
||||
# This file is maintained by the build community.
|
||||
#
|
||||
# Definitions for linux-x86 host archs
|
||||
# Definitions for solaris-sparc host - solaris-sparc target build
|
||||
# Sites may override these definitions in CONFIG_SITE.solaris-sparc.solaris-sparc
|
||||
#-------------------------------------------------------
|
||||
|
||||
# Include definitions common to all Unix target archs
|
||||
include $(CONFIG)/os/CONFIG.Common.UnixCommon
|
||||
|
||||
OS_CLASS = solaris
|
||||
ARCH_CLASS = sparc
|
||||
|
||||
SPARCWORKS = /opt/SUNWspro
|
||||
|
||||
CC = $(SPARCWORKS)/bin/cc
|
||||
CCC = $(SPARCWORKS)/bin/CC
|
||||
# required by sun's C++ compiler
|
||||
AR = $(CCC) -xar -o
|
||||
LD = ld -r
|
||||
CPP = gcc -x c -E
|
||||
RANLIB =
|
||||
|
||||
#Prepare the object code for profiling with prof. (YES or NO)
|
||||
PROFILE=YES
|
||||
|
||||
# Configure OS vendor C compiler
|
||||
ACC = $(SPARCWORKS)/bin/cc
|
||||
ACC_CONFORM_CFLAGS_ANSI = -Xa -v
|
||||
ACC_CONFORM_CFLAGS_STRICT = -Xc -v
|
||||
ACC_CONFORM_CFLAGS_TRAD = -Xs
|
||||
ACC_PROF_CFLAGS_YES = +p
|
||||
ACC_PROF_CFLAGS_NO =
|
||||
ACC_CODE_CFLAGS = -KPIC -D_REENTRANT $(CCC_PROF_CFLAGS_$(PROFILE))
|
||||
ACC_WARN_YES =
|
||||
ACC_WARN_NO = -w
|
||||
ACC_OPT_YES = -xO4
|
||||
ACC_OPT_NO = -g
|
||||
ACC_STATIC_LDFLAGS_YES= -Bstatic
|
||||
ACC_STATIC_LDLIBS_YES= -lw -lintl -Bdynamic -ldl -lposix4 -lpthread -lthread -Bstatic -lXext -lX
|
||||
ACC_STATIC_LDLIBS_NO= -lposix4 -lpthread -lthread
|
||||
ACC_SHRLIB_LDFLAGS_YES = -G -h $@
|
||||
ACC_POSIX_CPPFLAGS = -D_POSIX_C_SOURCE=199506L -D__EXTENSIONS__
|
||||
CONFORM_CFLAGS_ANSI = -Xa -v
|
||||
CONFORM_CFLAGS_STRICT = -Xc -v
|
||||
CONFORM_CFLAGS_TRAD = -Xs
|
||||
PROF_CFLAGS_YES = +p
|
||||
PROF_CFLAGS_NO =
|
||||
CODE_CFLAGS = -KPIC $(PROF_CFLAGS_$(PROFILE))
|
||||
WARN_CFLAGS_YES =
|
||||
WARN_CFLAGS_NO = -w
|
||||
OPT_CFLAGS_YES = -xO4
|
||||
OPT_CFLAGS_NO = -g
|
||||
|
||||
# Configure OS vendor C++ compiler
|
||||
CCC = $(SPARCWORKS)/bin/CC
|
||||
CCC_CONFORM_CFLAGS_NORMAL =
|
||||
CCC_CONFORM_CFLAGS_STRICT =
|
||||
CCC_PROF_CFLAGS_YES = +p
|
||||
CCC_PROF_CFLAGS_NO =
|
||||
CCC_CODE_CFLAGS = -KPIC -D_REENTRANT $(CCC_PROF_CFLAGS_$(PROFILE))
|
||||
CCC_TEMPL_INST_FLAG =
|
||||
CCC_WARN_YES = +w
|
||||
CCC_WARN_NO =
|
||||
CCC_OPT_YES = -O
|
||||
CCC_OPT_NO = -g
|
||||
CCC_STATIC_LDFLAGS_YES= -Bstatic
|
||||
CCC_STATIC_LDLIBS_YES= -lw -lintl -Bdynamic -ldl -lposix4 -lpthread -lthread -Bstatic -lXext -lX
|
||||
CCC_STATIC_LDLIBS_NO= -lposix4 -lpthread -lthread
|
||||
CCC_SHRLIB_LDFLAGS_YES = -G -h $@
|
||||
CCC_DEPENDS_FLAG = -xM1
|
||||
CCC_POSIX_CPPFLAGS = -D_POSIX_C_SOURCE=199506L -D__EXTENSIONS_
|
||||
CONFORM_CXXFLAGS_NORMAL =
|
||||
CONFORM_CXXFLAGS_STRICT =
|
||||
PROF_CXXFLAGS_YES = +p
|
||||
PROF_CXXFLAGS_NO =
|
||||
CODE_CXXFLAGS = -KPIC $(PROF_CXXFLAGS_$(PROFILE))
|
||||
TEMPL_INST_CXXFLAG =
|
||||
WARN_CXXFLAGS_YES = +w
|
||||
WARN_CXXFLAGS_NO =
|
||||
OPT_CXXFLAGS_YES = -O
|
||||
OPT_CXXFLAGS_NO = -g
|
||||
|
||||
ACC_CPP = cpp
|
||||
STATIC_LDFLAGS_YES= -Bstatic
|
||||
STATIC_LDFLAGS_NO=
|
||||
STATIC_LDLIBS_YES= -Bdynamic
|
||||
STATIC_LDLIBS_NO=
|
||||
|
||||
#Configure gnu compiler
|
||||
GCC = gcc
|
||||
G++ = g++
|
||||
GCC_CPP = $(GCC) -x c -E
|
||||
SHRLIB_LDFLAGS_YES = -G -h $@
|
||||
|
||||
GCC_POSIX_CPPFLAGS += -D__EXTENSIONS__
|
||||
G++_POSIX_CPPFLAGS += -D__EXTENSIONS__
|
||||
|
||||
GCC_STATIC_LDLIBS_YES= -lposix4
|
||||
GCC_STATIC_LDLIBS_NO= -lposix4
|
||||
G++_STATIC_LDLIBS_YES= -lposix4
|
||||
G++_STATIC_LDLIBS_NO= -lposix4
|
||||
|
||||
RANLIB =
|
||||
# required by sun's C++ compiler
|
||||
AR = $(CCC) -xar -o
|
||||
|
||||
ARCH_DEP_CPPFLAGS = -DSOLARIS
|
||||
# socket and nsl needed by libca.a
|
||||
ARCH_DEP_LDLIBS += -lsocket -lnsl
|
||||
|
||||
# use loader's -R option
|
||||
DEPLIB_LDFLAGS += $(sort $(DEPLIB_DIRS:%=-R%))
|
||||
# gnu compiler used because Sun compiler output
|
||||
# includes headers from /opt/SUNWspro and does
|
||||
# not work for c++ headers without .h suffix.
|
||||
DEPENDS_FLAG = -MM
|
||||
DEPENDS.cpp = g++
|
||||
|
||||
|
||||
12
configure/os/CONFIG.solaris-x86-gnu.Common
Normal file
12
configure/os/CONFIG.solaris-x86-gnu.Common
Normal file
@@ -0,0 +1,12 @@
|
||||
# CONFIG.solaris-x86-gnu.Common
|
||||
#
|
||||
# $Id$
|
||||
# This file is maintained by the build community.
|
||||
#
|
||||
# Definitions for solaris-x86 gnu compiler host builds
|
||||
# Sites may override these definitions in CONFIG_SITE.solaris-x86-gnu.Common
|
||||
#-------------------------------------------------------
|
||||
|
||||
#Include definitions common to solaris-x86 hosts
|
||||
include $(CONFIG)/os/CONFIG.solaris-x86.Common
|
||||
|
||||
19
configure/os/CONFIG.solaris-x86-gnu.solaris-x86-gnu
Normal file
19
configure/os/CONFIG.solaris-x86-gnu.solaris-x86-gnu
Normal file
@@ -0,0 +1,19 @@
|
||||
# CONFIG.solaris-x86-gnu.solaris-x86-gnu
|
||||
#
|
||||
# $Id$
|
||||
# This file is maintained by the build community.
|
||||
#
|
||||
# Definitions for solaris-x86 gnu compiler host - solaris-x86 gnu compiler target builds
|
||||
# Sites may override these definitions in CONFIG_SITE.solaris-x86-gnu.solaris-x86-gnu
|
||||
#-------------------------------------------------------
|
||||
|
||||
# Include common gnu compiler definitions
|
||||
include $(CONFIG)/CONFIG.gnuCommon
|
||||
|
||||
GNU_DIR = /opt/gnu
|
||||
|
||||
CC = $(GNU_BIN)/gcc
|
||||
CCC = $(GNU_BIN)/g++
|
||||
AR = ar -rc
|
||||
RANLIB=
|
||||
LD = ld -r
|
||||
@@ -3,7 +3,7 @@
|
||||
# $Id$
|
||||
# This file is maintained by the build community.
|
||||
#
|
||||
# Definitions for solaris-x86 host archs
|
||||
# Definitions for solaris-x86 host builds
|
||||
# Sites may override these definitions in CONFIG_SITE.solaris-x86.Common
|
||||
#-------------------------------------------------------
|
||||
|
||||
|
||||
@@ -3,76 +3,56 @@
|
||||
# $Id$
|
||||
# This file is maintained by the build community.
|
||||
#
|
||||
# Definitions for linux-x86 host archs
|
||||
# Definitions for solaris-x86 host - solaris-x86 target builds
|
||||
# Sites may override these definitions in CONFIG_SITE.solaris-x86.solaris-x86
|
||||
#-------------------------------------------------------
|
||||
|
||||
# Include definitions common to all Unix target archs
|
||||
include $(CONFIG)/os/CONFIG.Common.UnixCommon
|
||||
|
||||
OS_CLASS = solaris
|
||||
ARCH_CLASS = x86
|
||||
|
||||
SPARCWORKS = /opt/SUNWspro
|
||||
|
||||
CC = $(SPARCWORKS)/bin/cc
|
||||
CCC = $(SPARCWORKS)/bin/CC
|
||||
CPP = $(CC) -E
|
||||
RANLIB =
|
||||
# required by sun's C++ compiler
|
||||
AR = $(CCC) -xar -o
|
||||
LD = ld -r
|
||||
|
||||
#Prepare the object code for profiling with prof. (YES or NO)
|
||||
PROFILE=YES
|
||||
|
||||
# Configure OS vendor C compiler
|
||||
ACC = $(SPARCWORKS)/bin/cc
|
||||
ACC_CONFORM_CFLAGS_ANSI = -Xa
|
||||
ACC_CONFORM_CFLAGS_STRICT = -Xc -v
|
||||
ACC_CONFORM_CFLAGS_TRAD = -Xs
|
||||
ACC_PROF_CFLAGS_YES = +p
|
||||
ACC_PROF_CFLAGS_NO =
|
||||
ACC_CODE_CFLAGS = -KPIC -D_REENTRANT $(CCC_PROF_CFLAGS_$(PROFILE))
|
||||
ACC_WARN_YES =
|
||||
ACC_WARN_NO = -w
|
||||
ACC_OPT_YES = -xO4
|
||||
ACC_OPT_NO = -g
|
||||
ACC_STATIC_LDFLAGS_YES= -Bstatic
|
||||
ACC_STATIC_LDLIBS_YES= -lw -lintl -Bdynamic -ldl -lposix4 -lpthread -lthread -Bstatic -lXext -lX
|
||||
ACC_STATIC_LDLIBS_NO= -lposix4 -lpthread -lthread
|
||||
ACC_SHRLIB_LDFLAGS_YES = -G -h $@
|
||||
ACC_POSIX_CPPFLAGS = -D_POSIX_C_SOURCE=199506L -D__EXTENSIONS__
|
||||
CONFORM_CFLAGS_ANSI = -Xa -v
|
||||
CONFORM_CFLAGS_STRICT = -Xc -v
|
||||
CONFORM_CFLAGS_TRAD = -Xs
|
||||
PROF_CFLAGS_YES = +p
|
||||
PROF_CFLAGS_NO =
|
||||
CODE_CFLAGS = -KPIC $(PROF_CFLAGS_$(PROFILE))
|
||||
WARN_CFLAGS_YES =
|
||||
WARN_CFLAGS_NO = -w
|
||||
OPT_CFLAGS_YES = -xO4
|
||||
OPT_CFLAGS_NO = -g
|
||||
|
||||
# Configure OS vendor C++ compiler
|
||||
CCC = $(SPARCWORKS)/bin/CC
|
||||
CCC_CONFORM_CFLAGS_NORMAL =
|
||||
CCC_CONFORM_CFLAGS_STRICT =
|
||||
CCC_PROF_CFLAGS_YES = +p
|
||||
CCC_PROF_CFLAGS_NO =
|
||||
CCC_CODE_CFLAGS = -KPIC -D_REENTRANT $(CCC_PROF_CFLAGS_$(PROFILE))
|
||||
CCC_TEMPL_INST_FLAG =
|
||||
CCC_WARN_YES = +w
|
||||
CCC_WARN_NO =
|
||||
CCC_OPT_YES = -O
|
||||
CCC_OPT_NO = -g
|
||||
CCC_STATIC_LDFLAGS_YES= -Bstatic
|
||||
CCC_STATIC_LDLIBS_YES= -lw -lintl -Bdynamic -ldl -lposix4 -lpthread -lthread -Bstatic -lXext -lX
|
||||
CCC_STATIC_LDLIBS_NO= -lposix4 -lpthread -lthread
|
||||
CCC_SHRLIB_LDFLAGS_YES = -G -h $@
|
||||
CCC_DEPENDS_FLAG = -xM1
|
||||
CCC_POSIX_CPPFLAGS = -D_POSIX_C_SOURCE=199506L -D__EXTENSIONS_
|
||||
CONFORM_CXXFLAGS_NORMAL =
|
||||
CONFORM_CXXFLAGS_STRICT =
|
||||
PROF_CXXFLAGS_YES = +p
|
||||
PROF_CXXFLAGS_NO =
|
||||
CODE_CXXFLAGS = -KPIC $(PROF_CXXFLAGS_$(PROFILE))
|
||||
TEMPL_INST_CXXFLAG =
|
||||
WARN_CXXFLAGS_YES = +w
|
||||
WARN_CXXFLAGS_NO =
|
||||
OPT_CXXFLAGS_YES = -O
|
||||
OPT_CXXFLAGS_NO = -g
|
||||
|
||||
ACC_CPP = cpp
|
||||
STATIC_LDFLAGS_YES= -Bstatic
|
||||
STATIC_LDFLAGS_NO=
|
||||
STATIC_LDLIBS_YES= -Bdynamic
|
||||
STATIC_LDLIBS_NO=
|
||||
|
||||
#Configure gnu compiler
|
||||
GCC = gcc
|
||||
G++ = g++
|
||||
GCC_CPP = $(GCC) -x c -E
|
||||
SHRLIB_LDFLAGS_YES = -G -h $@
|
||||
|
||||
GCC_POSIX_CPPFLAGS += -D__EXTENSIONS__
|
||||
G++_POSIX_CPPFLAGS += -D__EXTENSIONS__
|
||||
|
||||
RANLIB =
|
||||
# required by sun's C++ compiler
|
||||
AR = $(CCC) -xar -o
|
||||
|
||||
ARCH_DEP_CPPFLAGS = -DSOLARIS -D_X86_
|
||||
# socket and nsl needed by libca.a
|
||||
ARCH_DEP_LDLIBS += -lsocket -lnsl
|
||||
|
||||
# use loader's -R option
|
||||
DEPLIB_LDFLAGS += $(sort $(DEPLIB_DIRS:%=-R%))
|
||||
DEPENDS_FLAG = -xM1
|
||||
|
||||
|
||||
@@ -13,80 +13,38 @@ include $(CONFIG)/os/CONFIG.common.UnixCommon
|
||||
OS_CLASS = sun4
|
||||
ARCH_CLASS = 68k
|
||||
|
||||
CC = cc
|
||||
CCC = CC
|
||||
CPP = $(CC) -E
|
||||
RANLIB = ranlib -t
|
||||
|
||||
# required by sun's C++ compiler
|
||||
AR = $(CCC) -xar -o
|
||||
LD = ld -r
|
||||
|
||||
# Configure OS vendor C compilers
|
||||
ACC = /usr/lang/acc
|
||||
ACC_CONFORM_CFLAGS_ANSI = -Xa
|
||||
ACC_CONFORM_CFLAGS_STRICT = -Xc
|
||||
ACC_CONFORM_CFLAGS_TRAD = -Xs
|
||||
ACC_CODE_CFLAGS = -pic
|
||||
ACC_WARN_YES = -vc
|
||||
ACC_WARN_NO = -w
|
||||
ACC_OPT_YES = -O
|
||||
ACC_OPT_NO = -g
|
||||
ACC_STATIC_CFLAGS_YES= -Bstatic
|
||||
ACC_STATIC_CFLAGS_NO=
|
||||
ACC_STATIC_LDLIBS_YES=
|
||||
ACC_STATIC_LDLIBS_NO=
|
||||
#ACC_OP_SYS_LDFLAGS = -L$(SPECIAL_LANG)
|
||||
ACC_SHRLIB_LDFLAGS_YES = -assert pure-text -h $@
|
||||
CONFORM_CFLAGS_ANSI = -Xa
|
||||
CONFORM_CFLAGS_STRICT = -Xc
|
||||
CONFORM_CFLAGS_TRAD = -Xs
|
||||
CODE_CFLAGS = -pic
|
||||
WARN_CFLAGS_YES = -vc
|
||||
WARN_CFLAGS_NO = -w
|
||||
OPT_CFLAGS_YES = -O
|
||||
OPT_CFLAGS_NO = -g
|
||||
|
||||
SUNCC = cc
|
||||
SUNCC_CONFORM_CFLAGS_NORMAL = echo SUNCC_ANSI not defined
|
||||
SUNCC_CONFORM_CFLAGS_STRICT = echo SUNCC_STRICT not defined
|
||||
SUNCC_CMPLR_TRAD = $(SUNCC)
|
||||
SUNCC_CODE_CFLAGS = -pic
|
||||
SUNCC_WARN_YES =
|
||||
SUNCC_WARN_NO = -w
|
||||
SUNCC_OPT_YES = -O
|
||||
SUNCC_OPT_NO = -g
|
||||
SUNCC_STATIC_CFLAGS_YES= -Bstatic
|
||||
SUNCC_STATIC_CFLAGS_NO=
|
||||
SUNCC_STATIC_LDLIBS_YES=
|
||||
SUNCC_STATIC_LDLIBS_NO=
|
||||
SUNCC_SHRLIB_LDFLAGS_YES = -assert pure-text -h $@
|
||||
CONFORM_CFLAGS_NORMAL =
|
||||
CONFORM_CFLAGS_STRICT =
|
||||
CONFORM_CFLAGS_TRAD =
|
||||
CODE_CFLAGS = -pic
|
||||
WARN_CFLAGS_YES =
|
||||
WARN_CFLAGS_NO = -w
|
||||
OPT_CFLAGS_YES = -O
|
||||
OPT_CFLAGS_NO = -g
|
||||
|
||||
# Configure OS vendor C++ compiler
|
||||
CCC = /usr/lang/CC
|
||||
CCC_CONFORM_CFLAGS_NORMAL =
|
||||
CCC_CONFORM_CFLAGS_STRICT =
|
||||
CCC_TEMPL_INST_FLAG =
|
||||
CCC_CODE_CFLAGS = -pic
|
||||
CCC_WARN_YES =
|
||||
CCC_WARN_NO =
|
||||
CCC_TEMPL_INST_FLAG =
|
||||
CCC_WARN_YES = +w
|
||||
CCC_WARN_NO =
|
||||
CCC_OPT_YES = -O
|
||||
CCC_OPT_NO = -g
|
||||
CCC_STATIC_CFLAGS_YES= -Bstatic
|
||||
CCC_STATIC_CFLAGS_NO=
|
||||
CCC_STATIC_LDLIBS_YES=
|
||||
CCC_STATIC_LDLIBS_NO=
|
||||
CCC_DEPENDS_FLAG = -xM1
|
||||
CCC_SHRLIB_LDFLAGS_YES = -assert pure-text -h $@
|
||||
STATIC_LDFLAGS_YES= -Bstatic
|
||||
STATIC_LDFLAGS_NO=
|
||||
STATIC_LDLIBS_YES= -Bdynamic
|
||||
STATIC_LDLIBS_NO=
|
||||
|
||||
ACC_CPP = cpp
|
||||
SHRLIB_LDFLAGS_YES = -assert pure-text -h $@
|
||||
|
||||
#Configure gnu compiler
|
||||
GCC = gcc
|
||||
G++ = g++
|
||||
GCC_CPP = $(GCC) -x c -E
|
||||
|
||||
GCC_ANSI += -D__USE_FIXED_PROTOTYPES__
|
||||
GCC_STRICT += -D__USE_FIXED_PROTOTYPES__
|
||||
|
||||
ACC_ARCH_DEP_LDLIBS =
|
||||
GCC_ARCH_DEP_LDLIBS = -liberty
|
||||
ARCH_DEP_LDLIBS = $($(ANSI)_ARCH_DEP_LDLIBS) -lposix4 -lpthread -lthread
|
||||
|
||||
ARCH_DEP_CPPFLAGS = -DSUNOS4
|
||||
ARCH_DEP_CFLAGS =
|
||||
|
||||
#SPECIAL_LANG = /usr/lang/SC3.0.1
|
||||
#SPECIAL_LANG = /usr/lang/lib
|
||||
DEPENDS_FLAG = -xM1
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
# $Id$
|
||||
# This file is maintained by the build community.
|
||||
#
|
||||
# Definitions for win32-x86 borland compiler host archs
|
||||
# Definitions for win32-x86-borland host archs
|
||||
# Sites may override these definitions in CONFIG_SITE.win32-x86-borland.Common
|
||||
#-------------------------------------------------------
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
# $Id$
|
||||
# This file is maintained by the build community.
|
||||
#
|
||||
# Definitions for win32-x86 target arch when host arch is win32-x86 with borland compiler
|
||||
# Definitions for win32-x86-borland target arch when host arch is win32-x86-borland
|
||||
# Sites may override these definitions in CONFIG_SITE.win32-x86-borland.win32-x86-borland
|
||||
#-------------------------------------------------------
|
||||
|
||||
@@ -20,13 +20,6 @@ BORLAND_BIN = $(BORLAND)\\bin
|
||||
# Use std path variables from ms
|
||||
HOME = $(HOMEDRIVE)$(HOMEPATH)
|
||||
|
||||
#
|
||||
# You currently get Visual C++ even if you ask for GNU.
|
||||
#
|
||||
# !! borlund support needed here !!
|
||||
#
|
||||
ANSI = ACC
|
||||
CPLUSPLUS = CCC
|
||||
|
||||
#
|
||||
# "\ " forces gnu make to keep this as one token
|
||||
@@ -50,7 +43,8 @@ ARCMD = $(BORLAND_BIN)/tlib $@ $(foreach lib,$(LIBRARY_LD_OBJS),+$(lib))
|
||||
# -D_WIN32 macro defined to be consistant with Microsoft Visual C++
|
||||
# -D_RTLDLL macro defined to use Borland C++ RTL library
|
||||
CCLINKOPT = -q -tWM -tWD -a8 -D_WIN32 -D_RTLDLL
|
||||
ACC = $(BORLAND_BIN)/bcc32 $(CCLINKOPT)
|
||||
CC = $(BORLAND_BIN)/bcc32 $(CCLINKOPT)
|
||||
LD = $(BORLAND_BIN)/bcc32 -r
|
||||
|
||||
#
|
||||
# __STDC__=0 works but not as cleanly as with
|
||||
@@ -60,13 +54,14 @@ ACC = $(BORLAND_BIN)/bcc32 $(CCLINKOPT)
|
||||
# by defining NO_BORLAND_STDC in the Makefile.
|
||||
#
|
||||
ifdef NO_BORLAND_STDC
|
||||
ACC_CONFORM_CFLAGS_ANSI =
|
||||
ACC_CONFORM_CFLAGS_STRICT =
|
||||
CONFORM_CFLAGS_ANSI =
|
||||
CONFORM_CFLAGS_STRICT =
|
||||
else
|
||||
ACC_CONFORM_CFLAGS_ANSI = -D__STDC__=0
|
||||
ACC_CONFORM_CFLAGS_STRICT = -D__STDC__=0
|
||||
CONFORM_CFLAGS_ANSI = -D__STDC__=0
|
||||
CONFORM_CFLAGS_STRICT = -D__STDC__=0
|
||||
endif
|
||||
ACC_CONFORM_CFLAGS_TRAD =
|
||||
CONFORM_CFLAGS_TRAD =
|
||||
TEMPL_INST_CXXFLAG =
|
||||
|
||||
# -w display warnings on
|
||||
# -g0 no limit to warning messages
|
||||
@@ -75,9 +70,9 @@ ACC_CONFORM_CFLAGS_TRAD =
|
||||
# -w-8012 Comparing signed and unsigned values
|
||||
# -w-8060 Possibly incorrect assignment
|
||||
# -w-8071 Conversion may lose significant digits
|
||||
ACC_WARN_YES = -w -g0 -w-8012 -w-8060 -w-8071
|
||||
WARN_CFLAGS_YES = -w -g0 -w-8012 -w-8060 -w-8071
|
||||
# -w- display warnings off
|
||||
ACC_WARN_NO = -w-
|
||||
WARN_CFLAGS_NO = -w-
|
||||
|
||||
#
|
||||
# -k- turn off standard stack frame
|
||||
@@ -86,19 +81,13 @@ ACC_WARN_NO = -w-
|
||||
# -O1 optimization for size
|
||||
# -v- turn off source debugging
|
||||
# -vi control expansion of inline functions
|
||||
ACC_OPT_YES = -k- -H- -R- -O1 -v- -vi
|
||||
OPT_CFLAGS_YES = -k- -H- -R- -O1 -v- -vi
|
||||
|
||||
#
|
||||
ACC_OPT_NO =
|
||||
|
||||
#
|
||||
# no special libs for static link
|
||||
#
|
||||
ACC_STATIC_LDLIBS_YES=
|
||||
ACC_STATIC_LDLIBS_NO=
|
||||
OPT_CFLAGS_NO =
|
||||
|
||||
# OS vendor c preprocessor
|
||||
##############ACC_CPP = $(BORLAND_BIN)/cl /E
|
||||
CPP = $(BORLAND_BIN)/cl /E
|
||||
|
||||
# Configure OS vendor C++ compiler
|
||||
#
|
||||
@@ -109,23 +98,19 @@ ACC_STATIC_LDLIBS_NO=
|
||||
# by defining NO_BORLAND_STDC in the Makefile.
|
||||
#
|
||||
CCC = $(BORLAND_BIN)/bcc32 $(CCLINKOPT)
|
||||
ifdef NO_BORLAND_STDC
|
||||
CCC_NORMAL = $(CCC)
|
||||
CCC_STRICT = $(CCC)
|
||||
else
|
||||
CCC_CONFORM_CFLAGS_NORMAL = -D__STDC__=0
|
||||
CCC_CONFORM_CFLAGS_STRICT = -D__STDC__=0
|
||||
ifndef NO_BORLAND_STDC
|
||||
CONFORM_CXXFLAGS_NORMAL = -D__STDC__=0
|
||||
CONFORM_CXXFLAGS_STRICT = -D__STDC__=0
|
||||
endif
|
||||
CCC_TEMPL_INST_FLAG =
|
||||
|
||||
# -w display warnings on
|
||||
# -g0 no limit to warning messages
|
||||
# -w-8012 Comparing signed and unsigned values
|
||||
# -w-8060 Possibly incorrect assignment
|
||||
# -w-8071 Conversion may lose significant digits
|
||||
CCC_WARN_YES = -w -g0 -w-8012 -w-8060 -w-8071
|
||||
WARN_CXXFLAGS_YES = -w -g0 -w-8012 -w-8060 -w-8071
|
||||
# -w- display warnings off
|
||||
CCC_WARN_NO = -w-
|
||||
WARN_CXXFLAGS_NO = -w-
|
||||
|
||||
#
|
||||
# -k- turn off standard stack frame
|
||||
@@ -134,16 +119,16 @@ CCC_WARN_NO = -w-
|
||||
# -O1 optimization for size
|
||||
# -v- turn off source debugging
|
||||
# -vi control expansion of inline functions
|
||||
CCC_OPT_YES = -k- -H- -R- -O1 -v- -vi
|
||||
OPT_CXXFLAGS_YES = -k- -H- -R- -O1 -v- -vi
|
||||
|
||||
#
|
||||
CCC_OPT_NO =
|
||||
OPT_CXXFLAGS_NO =
|
||||
|
||||
#
|
||||
# no special libs for static link
|
||||
#
|
||||
CCC_STATIC_LDLIBS_YES=
|
||||
CCC_STATIC_LDLIBS_NO=
|
||||
STATIC_LDLIBS_YES=
|
||||
STATIC_LDLIBS_NO=
|
||||
|
||||
PROD_VERSION=3.13
|
||||
# -c case sensitive linking
|
||||
@@ -158,7 +143,6 @@ LINK_OPT_FLAGS_NO = -c -C -Gi -Gn -Tpd -x -w-
|
||||
WIN32_DLLFLAGS = $(LINK_OPT_FLAGS_$(HOST_OPT))
|
||||
OPT_LDFLAGS =
|
||||
|
||||
|
||||
ARCH_DEP_CFLAGS=
|
||||
|
||||
# to identify the general architecture class:
|
||||
@@ -187,26 +171,26 @@ OP_SYS_CFLAGS =
|
||||
#
|
||||
# Borland specific include files
|
||||
#
|
||||
OP_SYS_INCLUDES = -I$(BORLAND_INC)
|
||||
#OP_SYS_INCLUDES = -I$(BORLAND_INC)
|
||||
#
|
||||
OP_SYS_LDLIBS =
|
||||
|
||||
#
|
||||
# specify dll .def file only if it exists
|
||||
#
|
||||
#DLL_DEF_FLAG = $(addprefix /def:,$(wildcard ../$(LIBRARY).def))
|
||||
DLL_DEF_FLAG = $(subst /,\\,$(wildcard ../$(LIBRARY).def))
|
||||
#DLL_DEF_FLAG = $(addprefix /def:,$(wildcard ../$(addsuffix .def,$(LIBRARY))))
|
||||
DLL_DEF_FLAG = $(subst /,\\,$(wildcard ../$(addsuffix .def,$(LIBRARY))))
|
||||
|
||||
# HOST_OPT_FLAGS is part of CFLAGS/CXXFLAGS,
|
||||
# which in turn are used in COMPILE.c[c]
|
||||
#
|
||||
# If we compile a .c, .cc into an $(OBJ),
|
||||
# we test if this object is part of the
|
||||
# library objects LIBRARY_LD_OBJS.
|
||||
# library objects LIBOBJS_HOST.
|
||||
# If so, we define _WINDLL so that
|
||||
# e.g. include/shareLib.h works correctly.
|
||||
#
|
||||
HOST_OPT_FLAGS += $(subst $@, /_WINDLL, $(findstring $@,$(LIBRARY_LD_OBJS)))
|
||||
OPT_CFLAGS_YES += $(subst $@, /_WINDLL, $(findstring $@,$(LIBOBJS_HOST)))
|
||||
|
||||
#
|
||||
# A WIN32 dll has three parts:
|
||||
@@ -215,7 +199,8 @@ HOST_OPT_FLAGS += $(subst $@, /_WINDLL, $(findstring $@,$(LIBRARY_LD_OBJS)))
|
||||
# x.exp: what you need to build the dll (in no variable)
|
||||
#
|
||||
LINK.shrlib = $(WINLINK) $(WIN32_DLLFLAGS) -L$(BORLAND_LIB) -L$(BORLAND_LIB)\\Psdk c0d32.obj
|
||||
LINK.shrlib+= $(LIBRARY_LD_OBJS) , $@ ,,$(LINKLIBS) $(subst /,\\,$(SHRLIB_LDLIBS))
|
||||
LINK.shrlib+= $(LIBRARY_LD_OBJS) , $@ ,,$(LINKLIBS) $(subst /,\\,$(SHRLIB_LDLIBS)),
|
||||
LINK.shrlib+= $(DLL_DEF_FLAG),$(LIBRARY_LD_RESS)
|
||||
|
||||
|
||||
# adjust names of libraries to build
|
||||
@@ -281,7 +266,7 @@ LDFLAGS += -c -C -Gn -Tpe -x -w -L$(BORLAND_LIB) -L$(BORLAND_LIB)\\Psdk
|
||||
LINKSTARTUP = c0x32.obj
|
||||
LINKLIBS=import32.lib cw32$(LIBSUF).lib
|
||||
|
||||
LINK.cpp = $(WINLINK) $(LDFLAGS) $(LINKSTARTUP) $(PROD_LD_OBJS)
|
||||
LINK.cpp = $(WINLINK) $(LDFLAGS) $(LINKSTARTUP) $(subst /,\\,$(PROD_LD_OBJS))
|
||||
LINK.cpp += , $@ ,,$(LINKLIBS) $(subst /,\\,$(LDLIBS))
|
||||
|
||||
#--------------------------------------------------
|
||||
|
||||
17
configure/os/CONFIG.win32-x86-cygwin.Common
Normal file
17
configure/os/CONFIG.win32-x86-cygwin.Common
Normal file
@@ -0,0 +1,17 @@
|
||||
# CONFIG.win32-x86-cygwin.Common
|
||||
#
|
||||
# $Id$
|
||||
# This file is maintained by the build community.
|
||||
#
|
||||
# Definitions for win32-x86-cygwin host archs
|
||||
# Sites may override these definitions in CONFIG_SITE.win32-x86-cygwin.Common
|
||||
#-------------------------------------------------------
|
||||
|
||||
#Include definitions common to unix hosts
|
||||
include $(CONFIG)/os/CONFIG.UnixCommon.Common
|
||||
|
||||
WIND_HOST_TYPE = x86-win32
|
||||
OSITHREAD_USE_DEFAULT_STACK = NO
|
||||
|
||||
HOSTEXE=.exe
|
||||
|
||||
16
configure/os/CONFIG.win32-x86-cygwin.win32-x86-cygwin
Normal file
16
configure/os/CONFIG.win32-x86-cygwin.win32-x86-cygwin
Normal file
@@ -0,0 +1,16 @@
|
||||
# CONFIG.win32-x86-cygwin.win32-x86-cygwin
|
||||
#
|
||||
# $Id$
|
||||
#
|
||||
# Definitions for win32-x86-cygwin host - win32-x86-cygwin target builds
|
||||
# Sites may override these definitions in CONFIG_SITE.win32-x86-cygwin.win32-x86-cygwin
|
||||
#-------------------------------------------------------
|
||||
|
||||
# Include common gnu compiler definitions
|
||||
include $(CONFIG)/CONFIG.gnuCommon
|
||||
|
||||
## Shared libraries for cygwin not implemented yet
|
||||
SHARED_LIBRARIES=NO
|
||||
|
||||
CC = $(GNU_BIN)/gcc
|
||||
CCC = $(GNU_BIN)/g++
|
||||
@@ -16,14 +16,6 @@ VALID_BUILDS = Host Ioc
|
||||
# Use std path variables from ms
|
||||
HOME = $(HOMEDRIVE)$(HOMEPATH)
|
||||
|
||||
#
|
||||
# You currently get Visual C++ even if you ask for GNU.
|
||||
#
|
||||
# !! borlund support needed here !!
|
||||
#
|
||||
ANSI = ACC
|
||||
CPLUSPLUS = CCC
|
||||
|
||||
#
|
||||
# "\ " forces gnu make to keep this as one token
|
||||
#
|
||||
@@ -37,11 +29,14 @@ ARCMD = lib /nologo /verbose /out:$@ $(LIBRARY_LD_OBJS)
|
||||
|
||||
BAFCMD = bscmake /nologo /o $@
|
||||
|
||||
DEPENDS_RULE = @echo depends target not supported
|
||||
#DEPENDS_RULE = @echo depends target not supported
|
||||
#GNU depends flag
|
||||
DEPENDS.cpp = g++
|
||||
DEPENDS_FLAG = -MM
|
||||
|
||||
#
|
||||
# Configure OS vendor C compiler
|
||||
ACC = cl
|
||||
CC = cl
|
||||
|
||||
#
|
||||
# __STDC__=0 is a real great idea of Jeff that gives us both:
|
||||
@@ -51,25 +46,25 @@ ACC = cl
|
||||
#
|
||||
# Use of /Za would dissable DLL import/export keywords which
|
||||
# include/excludes using architecture neutral macros
|
||||
ACC_CONFORM_CFLAGS_ANSI = /nologo /D__STDC__=0
|
||||
ACC_CONFORM_CFLAGS_STRICT = /nologo /D__STDC__=0
|
||||
ACC_CONFORM_CFLAGS_TRAD = /nologo
|
||||
CONFORM_CFLAGS_ANSI = /nologo /D__STDC__=0
|
||||
CONFORM_CFLAGS_STRICT = /nologo /D__STDC__=0
|
||||
CONFORM_CFLAGS_TRAD = /nologo
|
||||
|
||||
#
|
||||
# /W<N> use warning level N
|
||||
# (maximum (lint type) warnings at level 4)
|
||||
ACC_WARN_YES = /W3
|
||||
ACC_WARN_NO = /W1
|
||||
WARN_CFLAGS_YES = /W3
|
||||
WARN_CFLAGS_NO = /W1
|
||||
|
||||
#
|
||||
# /Ox maximum optimizations
|
||||
# /MD use MSVCRT (run-time as DLL, multi-thread support)
|
||||
ACC_OPT_YES = /Ox
|
||||
OPT_CFLAGS_YES = /Ox
|
||||
|
||||
#
|
||||
# /Zi include debugging info in object files
|
||||
# /Fr create source browser file
|
||||
ACC_OPT_NO = /Zi /Fr
|
||||
OPT_CFLAGS_NO = /Zi /Fr
|
||||
|
||||
#
|
||||
# the following options are required when
|
||||
@@ -86,17 +81,13 @@ VISC_DLL = $(VISC_DLL_$(SHARED_LIBRARIES))
|
||||
VISC_STATIC_CFLAGS_DEBUG_NO = d
|
||||
VISC_STATIC_CFLAGS_DEBUG_YES =
|
||||
VISC_STATIC_CFLAGS_DEBUG = $(VISC_STATIC_CFLAGS_DEBUG_$(HOST_OPT))
|
||||
ACC_STATIC_CFLAGS_YES= /MT$(VISC_STATIC_CFLAGS_DEBUG) $(VISC_DLL)
|
||||
ACC_STATIC_CFLAGS_NO= /MD$(VISC_STATIC_CFLAGS_DEBUG) $(VISC_DLL)
|
||||
|
||||
#
|
||||
# no special libs for static link
|
||||
#
|
||||
ACC_STATIC_LDLIBS_YES= ws2_32.lib advapi32.lib user32.lib kernel32.lib winmm.lib
|
||||
ACC_STATIC_LDLIBS_NO=
|
||||
STATIC_CFLAGS_YES= /MT$(VISC_STATIC_CFLAGS_DEBUG) $(VISC_DLL)
|
||||
STATIC_CFLAGS_NO= /MD$(VISC_STATIC_CFLAGS_DEBUG) $(VISC_DLL)
|
||||
|
||||
# OS vendor c preprocessor
|
||||
ACC_CPP = cl /E
|
||||
#CPP = cl /E
|
||||
#GNU c preprocessor
|
||||
CPP = gcc -x c -E
|
||||
|
||||
# Configure OS vendor C++ compiler
|
||||
#
|
||||
@@ -107,25 +98,29 @@ ACC_CPP = cl /E
|
||||
#
|
||||
# Use of /Za would dissable DLL import/export keywords which
|
||||
# include/excludes using architecture neutral macros
|
||||
#
|
||||
# /GX - generate code for exceptions
|
||||
# /GR - generate code for run time type identification
|
||||
#
|
||||
CCC = cl
|
||||
CCC_CONFORM_CFLAGS_NORMAL = /nologo /D__STDC__=0 /GX
|
||||
CCC_CONFORM_CFLAGS_STRICT = /nologo /D__STDC__=0 /GX
|
||||
CCC_TEMPL_INST_FLAG =
|
||||
CONFORM_CXXFLAGS_NORMAL = /nologo /D__STDC__=0 /GX /GR
|
||||
CONFORM_CXXFLAGS_STRICT = /nologo /D__STDC__=0 /GX /GR
|
||||
TEMPL_INST_CXXFLAG =
|
||||
|
||||
#
|
||||
# /W<N> use warning level N
|
||||
# (maximum lint level warnings at level 4)
|
||||
CCC_WARN_YES = /W3
|
||||
CCC_WARN_NO = /W1
|
||||
WARN_CXXFLAGS_YES = /W3
|
||||
WARN_CXXFLAGS_NO = /W1
|
||||
|
||||
#
|
||||
# /Ox maximum optimizations
|
||||
CCC_OPT_YES = /Ox
|
||||
OPT_CXXFLAGS_YES = /Ox
|
||||
|
||||
#
|
||||
# /Zi include debugging info in object files
|
||||
# /Fr create source browser file
|
||||
CCC_OPT_NO = /Zi /Fr
|
||||
OPT_CXXFLAGS_NO = /Zi /Fr
|
||||
|
||||
#
|
||||
# the following options are required when
|
||||
@@ -136,14 +131,14 @@ CCC_OPT_NO = /Zi /Fr
|
||||
# /MTd static multithreaded C RTL (debug version)
|
||||
# /MD multithreaded C RTL in DLL
|
||||
# /MDd multithreaded C RTL in DLL (debug version)
|
||||
CCC_STATIC_CFLAGS_YES= /MT$(VISC_STATIC_CFLAGS_DEBUG) $(VISC_DLL)
|
||||
CCC_STATIC_CFLAGS_NO= /MD$(VISC_STATIC_CFLAGS_DEBUG) $(VISC_DLL)
|
||||
STATIC_CXXFLAGS_YES= /MT$(VISC_STATIC_CFLAGS_DEBUG) $(VISC_DLL)
|
||||
STATIC_CXXFLAGS_NO= /MD$(VISC_STATIC_CFLAGS_DEBUG) $(VISC_DLL)
|
||||
|
||||
#
|
||||
# no special libs for static link
|
||||
#
|
||||
CCC_STATIC_LDLIBS_YES=ws2_32.lib advapi32.lib user32.lib kernel32.lib winmm.lib
|
||||
CCC_STATIC_LDLIBS_NO=
|
||||
STATIC_LDLIBS_YES=ws2_32.lib advapi32.lib user32.lib kernel32.lib winmm.lib
|
||||
STATIC_LDLIBS_NO=
|
||||
|
||||
LINK_OPT_FLAGS_YES = /WARN:3 /incremental:no /opt:ref\
|
||||
/release $(PROD_VERSION:%=/version:%)
|
||||
@@ -199,7 +194,7 @@ WIN32_DLLFLAGS = /subsystem:windows /dll $(OPT_LDFLAGS)
|
||||
#
|
||||
# specify dll .def file only if it exists
|
||||
#
|
||||
DLL_DEF_FLAG = $(addprefix /def:,$(wildcard ../$(BUILD_LIBS).def))
|
||||
DLL_DEF_FLAG = $(addprefix /def:,$(wildcard ../$(addsuffix .def,$(LIBRARY))))
|
||||
|
||||
# HOST_OPT_FLAGS is part of CFLAGS/CXXFLAGS,
|
||||
# which in turn are used in COMPILE.c[c]
|
||||
@@ -220,6 +215,7 @@ HOST_OPT_FLAGS += $(subst $@, /_WINDLL, $(findstring $@,$(LIBOBJS_HOST)))
|
||||
#
|
||||
LINK.shrlib = $(WINLINK) /nologo $(WIN32_DLLFLAGS) /implib:$*.lib /out:$*.dll $(DLL_DEF_FLAG)
|
||||
LINK.shrlib += $(LIBRARY_LD_OBJS) $(LIBRARY_LD_RESS) $(SHRLIB_LDLIBS)
|
||||
LDCMD = $(CCC) /Fo $@ $^
|
||||
|
||||
|
||||
# adjust names of libraries to build
|
||||
|
||||
@@ -15,6 +15,7 @@ ARCH_WIN32 = win32-x86
|
||||
ARCH_hp700 = hpux-parisc
|
||||
ARCH_alpha = osf-alpha
|
||||
ARCH_cygwin32 = cygwin-x86
|
||||
ARCH_Borland = win32-x86-borland
|
||||
|
||||
ifndef EPICS_HOST_ARCH
|
||||
ifdef HOST_ARCH
|
||||
|
||||
@@ -5,6 +5,4 @@
|
||||
# Site Specific definitions for vxWorks-ppc604 target
|
||||
# Only the local epics system manager should modify this file
|
||||
|
||||
# APS override
|
||||
#VX_DIR = /usr/local/vw/tornado101ppc
|
||||
|
||||
|
||||
19
configure/os/CONFIG_SITE.linux-x86.Common
Normal file
19
configure/os/CONFIG_SITE.linux-x86.Common
Normal file
@@ -0,0 +1,19 @@
|
||||
# CONFIG_SITE.linux-x86.Common
|
||||
#
|
||||
# $Id$
|
||||
# This file is maintained by the build community.
|
||||
#
|
||||
# Site override definitions for linux-x86 host builds
|
||||
#-------------------------------------------------------
|
||||
|
||||
# JBA test override values
|
||||
#CROSS_COMPILER_TARGET_ARCHS = vxWorks-68040 solaris-sparc
|
||||
#CROSS_COMPILER_TARGET_ARCHS = vxWorks-68040
|
||||
|
||||
# NOTE: If YES then LD_LIBRARY_PATH must include the full
|
||||
# pathname $(INSTALL_LOCATION)/lib/$(EPICS_HOST_ARCH) for
|
||||
# both the base # build and when invoking base executables.
|
||||
# Alternatively the full pathname can be added to /etc/ld.so.conf
|
||||
# and ldconfig run to inform the system of the shared libraries.
|
||||
SHARED_LIBRARIES=YES
|
||||
|
||||
9
configure/os/CONFIG_SITE.linux-x86.UnixCommon
Normal file
9
configure/os/CONFIG_SITE.linux-x86.UnixCommon
Normal file
@@ -0,0 +1,9 @@
|
||||
#
|
||||
# $Id$
|
||||
#
|
||||
# Site Specific Configuration Information
|
||||
# Only the local epics system manager should modify this file
|
||||
|
||||
CC = $(GNU_BIN)/$(CMPLR_PREFIX)gcc$(CMPLR_SUFFIX)
|
||||
CCC = $(GNU_BIN)/$(CMPLR_PREFIX)g++$(CMPLR_SUFFIX)
|
||||
|
||||
11
configure/os/CONFIG_SITE.linux-x86.solaris-sparc
Normal file
11
configure/os/CONFIG_SITE.linux-x86.solaris-sparc
Normal file
@@ -0,0 +1,11 @@
|
||||
# CONFIG_SITE.linux-x86.solaris-sparc
|
||||
#
|
||||
# $Id$
|
||||
# This file is maintained by the build community.
|
||||
#
|
||||
# Site specific definitions for linux-x86 host - solaris-sparc target builds
|
||||
#-------------------------------------------------------
|
||||
|
||||
GNU_DIR = /home/phoebus/JBA/gnu-solaris2
|
||||
GNU_TARGET_INCLUDE_DIR = $(GNU_DIR)/$(GNU_TARGET)/sys-include
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
#
|
||||
# $Id$
|
||||
#
|
||||
# Site specific definitions for vxWorks-68040 target when host is linux-x86
|
||||
# Site specific definitions for linux-x86 host - vxWorks-68040 target builds
|
||||
# Only the local epics system manager should modify this file
|
||||
#-------------------------------------------------------
|
||||
|
||||
@@ -10,3 +10,12 @@
|
||||
#CMPLR_SUFFIX=
|
||||
#GNU_TARGET=m68k-wrs-vxworks
|
||||
#CMPLR_PREFIX=$(addsuffix -,$(GNU_TARGET))
|
||||
|
||||
# ORNL SNS overrides for cross compilers
|
||||
#VX_DIR_YES = /opt/tornado20/
|
||||
#VX_CONFIG_DIR_YES = $(VX_DIR)/target/config
|
||||
#VX_INCLUDE_YES = /usr/local/crossgcc/m68k/m68k-wrs-vxworks/sys-include
|
||||
#VX_GNU_YES = /usr/local/crossgcc/m68k/
|
||||
#VX_GNU_BIN_YES = $(VX_GNU)/bin
|
||||
#VX_GNU_LIB_YES = /usr/local/crossgcc/m68k/lib/gcc-lib/m68k-wrs-vxworks/2.95.2
|
||||
|
||||
|
||||
16
configure/os/CONFIG_SITE.linux-x86.vxWorks-ppc603
Normal file
16
configure/os/CONFIG_SITE.linux-x86.vxWorks-ppc603
Normal file
@@ -0,0 +1,16 @@
|
||||
# CONFIG_SITE.linux-x86.vxWorks-ppc603
|
||||
#
|
||||
# $Id$
|
||||
# This file is maintained by the build community.
|
||||
#
|
||||
# Site override definitions for linux-x86 host - vxWorks-ppc603 target builds
|
||||
#-------------------------------------------------------
|
||||
|
||||
# ORNL SNS overrides for cross compilers
|
||||
#VX_DIR_YES = /opt/tornado20/
|
||||
#VX_CONFIG_DIR_YES = $(VX_DIR)/target/config
|
||||
#VX_INCLUDE_YES = /usr/local/crossgcc/ppc/powerpc-wrs-vxworks/sys-include
|
||||
#VX_GNU_YES = /usr/local/crossgcc/ppc/
|
||||
#VX_GNU_BIN_YES = $(VX_GNU)/bin
|
||||
#VX_GNU_LIB_YES = /usr/local/crossgcc/ppc/lib/gcc-lib/powerpc-wrs-vxworks/2.95.2
|
||||
|
||||
@@ -1,15 +1,15 @@
|
||||
# CONFIG_SITE.linux-x86.vxWorksCommon
|
||||
#
|
||||
# $Id$
|
||||
# This file is maintained by the build community.
|
||||
#
|
||||
# Site Specific Configuration Information
|
||||
# Only the local epics system manager should modify this file
|
||||
# Definitions for linux-x86 host - vxWorks target builds
|
||||
#-------------------------------------------------------
|
||||
|
||||
# JBA test override values
|
||||
|
||||
#GNU_DIR=/home/phoebus/JBA/gnu
|
||||
#VX_INCLUDE=$(GNU_DIR)/$(GNU_TARGET)/include
|
||||
#GCC = $(GNU_BIN)/$(CMPLR_PREFIX)gcc$(CMPLR_SUFFIX)
|
||||
#G++ = $(GNU_BIN)/$(CMPLR_PREFIX)gcc$(CMPLR_SUFFIX)
|
||||
#CROSS_COMPILER_TARGET_ARCHS = vxWorks-68040
|
||||
|
||||
#GNU_TARGET_INCLUDE_DIR=$(GNU_DIR)/$(GNU_TARGET)/include
|
||||
#CC = $(GNU_BIN)/$(CMPLR_PREFIX)gcc$(CMPLR_SUFFIX)
|
||||
#CCC = $(GNU_BIN)/$(CMPLR_PREFIX)gcc$(CMPLR_SUFFIX)
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
#
|
||||
# $Id$
|
||||
#
|
||||
# Site specific definitions for solaris-sparc host
|
||||
# Site specific override definitions for solaris-sparc host builds
|
||||
# Only the local epics system manager should modify this file
|
||||
|
||||
#INSTALL_LOCATION = /home/phoebus/JBA/testBaseNew
|
||||
|
||||
10
configure/os/CONFIG_SITE.win32-x86-cygwin.Common
Normal file
10
configure/os/CONFIG_SITE.win32-x86-cygwin.Common
Normal file
@@ -0,0 +1,10 @@
|
||||
# CONFIG_SITE.win32-x86-cygwin.Common
|
||||
#
|
||||
# $Id$
|
||||
# This file is maintained by the build community.
|
||||
#
|
||||
# Site override definitions for win32-x86-cygwin host builds
|
||||
#-------------------------------------------------------
|
||||
|
||||
CROSS_COMPILER_TARGET_ARCHS =
|
||||
|
||||
10
configure/os/CONFIG_SITE.win32-x86-cygwin.win32-x86-cygwin
Normal file
10
configure/os/CONFIG_SITE.win32-x86-cygwin.win32-x86-cygwin
Normal file
@@ -0,0 +1,10 @@
|
||||
# CONFIG_SITE.win32-x86-cygwin.win32-x86-cygwin
|
||||
#
|
||||
# $Id$
|
||||
# This file is maintained by the build community.
|
||||
#
|
||||
# Site override definitions for win32-x86-cygwin host - win32-x86-cygwin target builds
|
||||
#-------------------------------------------------------
|
||||
|
||||
GNU_DIR=C:/cygwin
|
||||
|
||||
@@ -9,4 +9,6 @@
|
||||
#CROSS_COMPILER_TARGET_ARCHS=vxWorks-486
|
||||
#VX_DIR = D:/tornado
|
||||
#INSTALL_LOCATION = G:/testInstall
|
||||
|
||||
#STATIC_BUILD=YES
|
||||
#SHARED_LIBRARIES=NO
|
||||
#CROSS_COMPILER_TARGET_ARCHS=
|
||||
|
||||
@@ -5,9 +5,11 @@ eval 'exec perl -S $0 ${1+"$@"}' # -*- Mode: perl -*-
|
||||
|
||||
use Cwd;
|
||||
|
||||
$arch = $ARGV[0];
|
||||
$outfile = $ARGV[1];
|
||||
$top = $ARGV[2];
|
||||
$hostarch = $ARGV[0];
|
||||
$arch = $ARGV[1];
|
||||
$outfile = $ARGV[2];
|
||||
$top = $ARGV[3];
|
||||
$applications{TOP} = $top;
|
||||
|
||||
unlink("${outfile}");
|
||||
open(OUT,">${outfile}") or die "$! opening ${outfile}";
|
||||
@@ -16,7 +18,7 @@ print OUT "#This file is created during the build.\n";
|
||||
|
||||
@files =();
|
||||
push(@files,"$top/configure/RELEASE");
|
||||
push(@files,"$top/configure/RELEASE.${arch}");
|
||||
push(@files,"$top/configure/RELEASE.${hostarch}");
|
||||
foreach $file (@files) {
|
||||
if (-r "$file") {
|
||||
open(IN, "$file") or die "Cannot open $file\n";
|
||||
@@ -24,6 +26,7 @@ foreach $file (@files) {
|
||||
next if ( $line =~ /\s*#/ );
|
||||
chomp($line);
|
||||
$line =~ s/[ ]//g; # remove blanks and tabs
|
||||
next if ( $line =~ /^$/ ); # skip empty lines
|
||||
$_ = $line;
|
||||
#the following looks for
|
||||
# prefix = $(macro)post
|
||||
@@ -32,11 +35,13 @@ foreach $file (@files) {
|
||||
# the following looks for
|
||||
# prefix = post
|
||||
($prefix,$post) = /(.*)\s*=\s*(.*)/;
|
||||
$app_post = $post;
|
||||
} else {
|
||||
$base = $applications{$macro};
|
||||
if ($base eq "") {
|
||||
#print "error: $macro was not previously defined\n";
|
||||
} else {
|
||||
$app_post = "\$($macro)" . $post;
|
||||
$post = $base . $post;
|
||||
}
|
||||
}
|
||||
@@ -44,21 +49,25 @@ foreach $file (@files) {
|
||||
if ( -d "$post") { #check that directory exists
|
||||
print OUT "\n";
|
||||
if ( -d "$post/bin/$arch") { #check that directory exists
|
||||
print OUT "${prefix}_BIN = $post/bin/${arch}\n";
|
||||
print OUT "${prefix}_BIN = $app_post/bin/${arch}\n";
|
||||
}
|
||||
if ( -d "$post/bin/$arch") { #check that directory exists
|
||||
print OUT "${prefix}_HOST_BIN = $app_post/bin/\$(EPICS_HOST_ARCH)\n";
|
||||
}
|
||||
if ( -d "$post/lib/$arch") { #check that directory exists
|
||||
print OUT "${prefix}_LIB = $post/lib/${arch}\n";
|
||||
print OUT "${prefix}_LIB = $app_post/lib/${arch}\n";
|
||||
}
|
||||
if ( -d "$post/include") { #check that directory exists
|
||||
print OUT "INSTALL_INCLUDES += -I$post/include\n";
|
||||
print OUT "INSTALL_INCLUDES += -I$app_post/include/os/\$(OS_CLASS)\n";
|
||||
}
|
||||
if ( -d "$post/include") { #check that directory exists
|
||||
print OUT "INSTALL_INCLUDES += -I$app_post/include\n";
|
||||
}
|
||||
if ( -d "$post/dbd") { #check that directory exists
|
||||
print OUT "INSTALL_DBDFLAGS += -I $post/dbd\n";
|
||||
print OUT "INSTALL_DBDFLAGS += -I $app_post/dbd\n";
|
||||
}
|
||||
}
|
||||
}
|
||||
close IN;
|
||||
}
|
||||
}
|
||||
close OUT;
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ eval 'exec perl -S $0 ${1+"$@"}' # -*- Mode: perl -*-
|
||||
# Searches the .substitutions files (from the command line) for
|
||||
# "file xxx {" entries to create a DEPENDS file
|
||||
|
||||
open(OUT, ">DEPENDS") or die "Cannot open DEPENDS: $!";
|
||||
open(OUT, ">DBDEPENDS") or die "Cannot open DBDEPENDS: $!";
|
||||
|
||||
foreach $file (@ARGV) {
|
||||
open(IN, "<$file") or die "Cannot open $file: $!";
|
||||
|
||||
@@ -29,6 +29,7 @@ print OUT "appbin = \"$appbin\"\n";
|
||||
|
||||
$top = $cwd;
|
||||
$top =~ s/\/iocBoot.*//;
|
||||
$applications{TOP} = $top;
|
||||
print OUT "top = \"$top\"\n";
|
||||
$topbin = "${top}/bin/${arch}";
|
||||
#skip check that top/bin/${arch} exists; src may not have been builT
|
||||
|
||||
@@ -71,7 +71,7 @@ foreach $name ( @nameList ) {
|
||||
print OUT "depends: \$(${name}_SRCS)\n";
|
||||
print OUT "\n";
|
||||
print OUT "ifeq (\$(filter ${name},\$(TESTPROD)),${name})\n";
|
||||
print OUT "ifeq (,\$(strip \$(${name}_OBJS) \$(PROD_OBJS)))\n";
|
||||
print OUT "ifeq (,\$(strip \$(${name}_OBJS) \$(PRODUCT_OBJS)))\n";
|
||||
print OUT "${name}_OBJS+=${name}\$(OBJ)\n";
|
||||
print OUT "endif\n";
|
||||
print OUT "${name}_RESS+=\$(addsuffix \$(RES),\$(basename \$(${name}_RCS)))\n";
|
||||
@@ -82,7 +82,7 @@ foreach $name ( @nameList ) {
|
||||
print OUT "endif\n";
|
||||
print OUT "\n";
|
||||
print OUT "ifeq (\$(filter ${name},\$(PROD)),${name})\n";
|
||||
print OUT "ifeq (,\$(strip \$(${name}_OBJS) \$(PROD_OBJS)))\n";
|
||||
print OUT "ifeq (,\$(strip \$(${name}_OBJS) \$(PRODUCT_OBJS)))\n";
|
||||
print OUT "${name}_OBJS+=${name}\$(OBJ)\n";
|
||||
print OUT "endif\n";
|
||||
print OUT "${name}_RESS+=\$(addsuffix \$(RES),\$(basename \$(${name}_RCS)))\n";
|
||||
@@ -92,14 +92,18 @@ foreach $name ( @nameList ) {
|
||||
print OUT "${name}\$(EXE): \$(${name}_OBJSNAME) \$(${name}_RESS) \$(${name}_DEPLIBS)\n";
|
||||
print OUT "endif\n";
|
||||
print OUT "\n";
|
||||
print OUT "ifeq (\$(filter ${name},\$(LIBRARY_HOST) \$(LIBRARY_IOC)),${name})\n";
|
||||
print OUT "ifeq (\$(filter ${name},\$(LIBRARY)),${name})\n";
|
||||
print OUT "ifneq (,\$(strip \$(${name}_OBJS) \$(LIBRARY_OBJS)))\n";
|
||||
print OUT "BUILD_LIBRARY += ${name}\n";
|
||||
print OUT "endif\n";
|
||||
print OUT "${name}_RESS+=\$(addsuffix \$(RES),\$(basename \$(${name}_RCS)))\n";
|
||||
print OUT "${name}_OBJSNAME+=\$(addsuffix \$(OBJ),\$(basename \$(${name}_OBJS)))\n";
|
||||
print OUT "${name}_DEPLIBS=\$(foreach lib, \$(${name}_LIBS),\$(firstword \$(wildcard \\\n";
|
||||
print OUT " \$(\$(lib)_DIR)/\$(LIB_PREFIX)\$(lib)\*)))\n";
|
||||
print OUT "\$(LIB_PREFIX)${name}\$(LIB_SUFFIX):\$(${name}_OBJSNAME) \$(${name}_RESS)\n";
|
||||
print OUT "\$(LIB_PREFIX)${name}\$(LIB_SUFFIX):\$(${name}_DEPLIBS)\n";
|
||||
print OUT "\$(LIB_PREFIX)${name}\$(SHRLIB_SUFFIX):\$(${name}_OBJSNAME) \$(${name}_RESS)\n";
|
||||
print OUT "\$(LIB_PREFIX)${name}\$(SHRLIB_SUFFIX):\$(${name}_DEPLIBS)\n";
|
||||
print OUT "endif\n";
|
||||
print OUT "ifneq (\$(strip \$(DBDEXPAND_\$(OS_CLASS))),)\n";
|
||||
print OUT "DBDEXPAND+=\$(subst -nil-,,\$(DBDEXPAND_\$(OS_CLASS)))\n";
|
||||
|
||||
59
configure/tools/makeRulesInclude.pl
Normal file
59
configure/tools/makeRulesInclude.pl
Normal file
@@ -0,0 +1,59 @@
|
||||
# $Id$
|
||||
|
||||
eval 'exec perl -S $0 ${1+"$@"}' # -*- Mode: perl -*-
|
||||
if $running_under_some_shell; # makeConfigAppInclude.pl
|
||||
|
||||
use Cwd;
|
||||
|
||||
$hostarch = $ARGV[0];
|
||||
$arch = $ARGV[1];
|
||||
$outfile = $ARGV[2];
|
||||
$top = $ARGV[3];
|
||||
$applications{TOP} = $top;
|
||||
|
||||
unlink("${outfile}");
|
||||
open(OUT,">${outfile}") or die "$! opening ${outfile}";
|
||||
print OUT "#Do not modify this file.\n";
|
||||
print OUT "#This file is created during the build.\n";
|
||||
|
||||
@files =();
|
||||
push(@files,"$top/configure/RELEASE");
|
||||
push(@files,"$top/configure/RELEASE.${hostarch}");
|
||||
foreach $file (@files) {
|
||||
if (-r "$file") {
|
||||
open(IN, "$file") or die "Cannot open $file\n";
|
||||
while ($line = <IN>) {
|
||||
next if ( $line =~ /\s*#/ );
|
||||
chomp($line);
|
||||
$line =~ s/[ ]//g; # remove blanks and tabs
|
||||
next if ( $line =~ /^$/ ); # skip empty lines
|
||||
$_ = $line;
|
||||
#the following looks for
|
||||
# prefix = $(macro)post
|
||||
($prefix,$macro,$post) = /(.*)\s*=\s*\$\((.*)\)(.*)/;
|
||||
if ($macro eq "") { # true if no macro is present
|
||||
# the following looks for
|
||||
# prefix = post
|
||||
($prefix,$post) = /(.*)\s*=\s*(.*)/;
|
||||
$app_post = $post;
|
||||
} else {
|
||||
$base = $applications{$macro};
|
||||
if ($base eq "") {
|
||||
#print "error: $macro was not previously defined\n";
|
||||
} else {
|
||||
$app_post = "\$($macro)" . $post;
|
||||
$post = $base . $post;
|
||||
}
|
||||
}
|
||||
$applications{$prefix} = $post;
|
||||
next if ( $prefix eq "EPICS_BASE" );
|
||||
next if ( $prefix eq "TEMPLATE_TOP" );
|
||||
if ( -d "$post") { #check that directory exists
|
||||
if ( -d "$post/configure") { #check that directory exists
|
||||
print OUT "-include $app_post/configure/RULES_BUILD\n";
|
||||
}
|
||||
}
|
||||
}
|
||||
close IN;
|
||||
}
|
||||
}
|
||||
@@ -9,16 +9,22 @@ eval 'exec perl -S $0 ${1+"$@"}' # -*- Mode: perl -*-
|
||||
|
||||
while ($line = <STDIN>)
|
||||
{
|
||||
next if ($line =~ /__?GLOBAL_.F.+/);
|
||||
next if ($line =~ /__?GLOBAL_.I._GLOBAL_.D.+/);
|
||||
if ($line =~ /__?GLOBAL_.D.+/) {
|
||||
($adr,$type,$name) = split ' ',$line,3;
|
||||
chop $name;
|
||||
$name =~ s/^__/_/;
|
||||
next if ( $name =~ /^__?GLOBAL_.D.*\.cpp/ );
|
||||
next if ( $name =~ /^__?GLOBAL_.D.\.\./ );
|
||||
@dtorlist = (@dtorlist,$name);
|
||||
};
|
||||
if ($line =~ /__?GLOBAL_.I.+/) {
|
||||
($adr,$type,$name) = split ' ',$line,3;
|
||||
chop $name;
|
||||
$name =~ s/^__/_/;
|
||||
next if ( $name =~ /^__?GLOBAL_.I.*\.cpp/ );
|
||||
next if ( $name =~ /^__?GLOBAL_.I.\.\./ );
|
||||
@ctorlist = (@ctorlist,$name);
|
||||
};
|
||||
}
|
||||
|
||||
29
copyright/COPYRIGHT_BESSY
Normal file
29
copyright/COPYRIGHT_BESSY
Normal file
@@ -0,0 +1,29 @@
|
||||
/***************************************************************************
|
||||
*
|
||||
* This software is copyrighted by the BERLINER SPEICHERRING
|
||||
* GESELLSCHAFT FUER SYNCHROTRONSTRAHLUNG M.B.H., BERLIN, GERMANY.
|
||||
* The following terms apply to all files associated with the
|
||||
* software.
|
||||
*
|
||||
* BESSY hereby grants permission to use, copy, and modify this
|
||||
* software and its documentation for non-commercial educational or
|
||||
* research purposes, provided that existing copyright notices are
|
||||
* retained in all copies.
|
||||
*
|
||||
* The receiver of the software provides BESSY with all enhancements,
|
||||
* including complete translations, made by the receiver.
|
||||
*
|
||||
* IN NO EVENT SHALL BESSY BE LIABLE TO ANY PARTY FOR DIRECT,
|
||||
* INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING
|
||||
* OUT OF THE USE OF THIS SOFTWARE, ITS DOCUMENTATION, OR ANY
|
||||
* DERIVATIVES THEREOF, EVEN IF BESSY HAS BEEN ADVISED OF THE
|
||||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
* BESSY SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING, BUT NOT
|
||||
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR
|
||||
* A PARTICULAR PURPOSE, AND NON-INFRINGEMENT. THIS SOFTWARE IS
|
||||
* PROVIDED ON AN "AS IS" BASIS, AND BESSY HAS NO OBLIGATION TO
|
||||
* PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR
|
||||
* MODIFICATIONS.
|
||||
*
|
||||
******************************************************************************/
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user