A first check of FT2's Make system. Many smaller and larger bugs have been fixed: . Removing unused variables. . detect.mk files now must provide $(CONFIG_FILE) and not $(CONFIG_RULE). . ansi.mk will now be really used as a fallback if the detect mechanism fails. . ANSIFLAGS will now be really used (fixing a typo). . `make clean' now works (again two typos). . Detection of gcc on Unix has been fixed (using the `-v' option instead of `--version'). . `make devel' now works (on Unix). . Fixing *again* a bug in demos/graph/x11/rules.mk to allow multiple use of `-L' compiler options. . $(BASE_H) now contains a few more header files. As usual, a lot of formatting (not finished yet).
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 2989 2990 2991 2992 2993 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 3093 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150 3151 3152 3153 3154 3155 3156 3157 3158 3159 3160 3161 3162 3163 3164 3165 3166 3167 3168 3169 3170 3171 3172 3173 3174 3175 3176 3177 3178 3179 3180 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213 3214 3215 3216 3217 3218 3219 3220 3221 3222 3223 3224 3225 3226 3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 3280 3281 3282 3283 3284 3285 3286 3287 3288 3289 3290 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 3306 3307 3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 3321 3322 3323 3324 3325 3326 3327 3328 3329 3330 3331 3332 3333 3334 3335 3336 3337 3338 3339 3340 3341 3342 3343 3344 3345 3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 3375 3376 3377 3378 3379 3380 3381 3382 3383 3384 3385 3386 3387 3388 3389 3390 3391 3392 3393 3394 3395 3396 3397 3398 3399 3400 3401 3402 3403 3404 3405 3406 3407 3408 3409 3410 3411 3412 3413 3414 3415 3416 3417 3418 3419 3420 3421 3422 3423 3424 3425 3426 3427 3428 3429 3430 3431 3432 3433 3434 3435 3436 3437 3438 3439 3440 3441 3442 3443 3444 3445 3446 3447 3448 3449 3450 3451 3452 3453 3454 3455 3456 3457 3458 3459 3460 3461 3462 3463 3464 3465 3466 3467 3468 3469 3470 3471 3472 3473 3474 3475 3476 3477 3478 3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 3510 3511 3512 3513 3514 3515 3516 3517 3518 3519 3520 3521 3522 3523 3524 3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 3573 3574 3575 3576 3577 3578 3579 3580 3581 3582 3583 3584 3585 3586 3587 3588 3589 3590 3591 3592
diff --git a/Makefile b/Makefile
index 12ffc97..f5aa8a6 100644
--- a/Makefile
+++ b/Makefile
@@ -1,108 +1,103 @@
-#******************************************************************************
-#*
-#* FreeType build system - top-level Makefile
-#*
-#* This file is designed for GNU Make, do not use it with another Make tool.
-#* It works as follows :
-#*
-#* - when invoked for the first time, this Makefile will include
-#* the rules found in `freetype/config/detect.mk'. They are in charge
-#* of detecting the current platform.
-#*
-#* A summary of the detection will be displayed, and the file `config.mk'
-#* will be created in the current directory
-#*
-#*
-#* - when invoked later, this Makefile will include the rules found in
-#* `config.mk'. This sub-Makefile will define some system-specific
-#* variables (like compiler, compilation flags, object suffix, etc..),
-#* then include the rules found in `freetype/config/freetype.mk',
-#* used to build the library.
-#*
-#* See the comments in `config/detect.mk' and `config/freetype.mk' for
-#* more details on host platform detection and library builds..
-#*
-#******************************************************************************
+#
+# FreeType 2 build system -- top-level Makefile
+#
+
+
+# Copyright 1996-2000 by
+# David Turner, Robert Wilhelm, and Werner Lemberg.
+#
+# This file is part of the FreeType project, and may only be used modified
+# and distributed under the terms of the FreeType project license,
+# LICENSE.TXT. By continuing to use, modify, or distribute this file you
+# indicate that you have read the license and understand and accept it
+# fully.
-.PHONY: setup
+# This file is designed for GNU Make, do not use it with another Make tool!
+#
+# It works as follows:
+#
+# - When invoked for the first time, this Makefile will include the rules
+# found in `freetype/config/detect.mk'. They are in charge of detecting
+# the current platform.
#
+# A summary of the detection will be displayed, and the file `config.mk'
+# will be created in the current directory.
+#
+# - When invoked later, this Makefile will include the rules found in
+# `config.mk'. This sub-Makefile will define some system-specific
+# variables (like compiler, compilation flags, object suffix, etc.), then
+# include the rules found in `freetype/config/freetype.mk', used to build
+# the library.
+#
+# See the comments in `config/detect.mk' and `config/freetype.mk' for more
+# details on host platform detection and library builds.
+
+
+.PHONY: setup
+
# The variable TOP holds the path to the topmost directory in the FreeType
-# engine source hierarchy. If it is not defined, default it to '.'
+# engine source hierarchy. If it is not defined, default it to `.'.
#
ifndef TOP
-TOP := .
+ TOP := .
endif
CONFIG_MK := config.mk
-#############################################################################
-#
-# If no configuration sub-makefile is present, or if "setup" is the target
-# to be built, run the auto-detection rules to figure out which configuration
-# rules file to use..
+# If no configuration sub-makefile is present, or if `setup' is the target
+# to be built, run the auto-detection rules to figure out which
+# configuration rules file to use.
#
# Note that the configuration file is put in the current directory, which is
-# not necessarily TOP.
-#
+# not necessarily $(TOP).
-# if `config.mk' is not present, set "check_platform" and "first_time"
+# If `config.mk' is not present, set `check_platform'.
#
ifeq ($(wildcard $(CONFIG_MK)),)
-check_platform := 1
-first_time := 1
+ check_platform := 1
endif
-# if `setup' is one of the targets requested, set "check_platform"
+# If `setup' is one of the targets requested, set `check_platform'.
#
ifneq ($(findstring setup,$(MAKECMDGOALS)),)
-check_platform := 1
+ check_platform := 1
endif
-
-#########################################################################
-#
-# include the automatic host platform detection rules when we need to
+# Include the automatic host platform detection rules when we need to
# check the platform.
#
-#
ifdef check_platform
-all: setup
-
-
-# if the module list $(FT_MODULE_LIST) file is not present,
-# generate it
-#
-modules: make_module_list setup
-
-include $(TOP)/config/detect.mk
-include $(TOP)/config/modules.mk
-
-ifeq ($(wildcard $(FT_MODULE_LIST)),)
-setup: make_module_list
-endif
+ all: setup
+ # If the module list $(FT_MODULE_LIST) file is not present, generate it.
+ #
+ modules: make_module_list setup
-# "setup" must be defined by the host platform detection rules
-# to create the 'config.mk' file in the current directory.
-#
+ include $(TOP)/config/detect.mk
+ include $(TOP)/config/modules.mk
+ ifeq ($(wildcard $(FT_MODULE_LIST)),)
+ setup: make_module_list
+ endif
+ # IMPORTANT:
+ #
+ # `setup' must be defined by the host platform detection rules to create
+ # the `config.mk' file in the current directory.
else
-########################################################################
-#
-# A configuration sub-Makefile is present, simply run it..
-#
-#
-all: build_freetype
+ # A configuration sub-Makefile is present -- simply run it.
+ #
+ all: build_freetype
-modules: make_module_list
+ modules: make_module_list
-BUILD_FREETYPE := yes
-include $(CONFIG_MK)
+ BUILD_FREETYPE := yes
+ include $(CONFIG_MK)
-endif #test check_platform
+endif # test check_platform
+# EOF
diff --git a/config/ansi/ansi.mk b/config/ansi/ansi.mk
index dedac26..8e7bf38 100644
--- a/config/ansi/ansi.mk
+++ b/config/ansi/ansi.mk
@@ -1,23 +1,20 @@
-#*******************************************************************
-#*
-#* FreeType 2 Configuration rules for a `normal' ANSI compiler
-#*
-#* Copyright 1996-2000 by
-#* David Turner, Robert Wilhelm, and Werner Lemberg.
-#*
-#* This file is part of the FreeType project, and may only be used
-#* modified and distributed under the terms of the FreeType project
-#* license, LICENSE.TXT. By continuing to use, modify, or distribute
-#* this file you indicate that you have read the license and
-#* understand and accept it fully.
-#*
-#* Please read the file "freetype/docs/config.txt" to understand
-#* what this file does..
-#*
-#*******************************************************************
+#
+# FreeType 2 configuration rules for a `normal' ANSI compiler
+#
+
+
+# Copyright 1996-2000 by
+# David Turner, Robert Wilhelm, and Werner Lemberg.
+#
+# This file is part of the FreeType project, and may only be used modified
+# and distributed under the terms of the FreeType project license,
+# LICENSE.TXT. By continuing to use, modify, or distribute this file you
+# indicate that you have read the license and understand and accept it
+# fully.
+
ifndef TOP
-TOP := .
+ TOP := .
endif
DELETE := rm -f
@@ -26,109 +23,110 @@ HOSTSEP := $(SEP)
BUILD := $(TOP)/config/ansi
PLATFORM := ansi
-# the directory where all object files are placed
-#
-# Note that this is not $(TOP)/obj !!
-# This lets you build the library in your own directory
-# with something like :
+# The directory where all object files are placed.
#
-# set TOP=....../path/to/freetype2/top/dir...
-# mkdir obj
-# make -f %TOP%/Makefile setup [options]
-# make -f %TOP%/Makefile
+# Note that this is not $(TOP)/obj!
+# This lets you build the library in your own directory with something like
#
+# set TOP=.../path/to/freetype2/top/dir...
+# mkdir obj
+# make -f $TOP/Makefile setup [options]
+# make -f $TOP/Makefile
#
OBJ_DIR := obj
-# the directory where all library files are placed
+# The directory where all library files are placed
#
-# by default, this is the same as OBJ_DIR, however, this can be
-# changed to suit particular needs..
+# By default, this is the same as $(OBJ_DIR), however, this can be changed
+# to suit particular needs.
#
LIB_DIR := $(OBJ_DIR)
-# the object file extension, this can be .o, .tco, .obj, etc..
-# depending on the platform
+# The object file extension. This can be .o, .tco, .obj, etc., depending on
+# the platform.
#
O := o
-# the library file extension, this can be .a, .lib, etc..
-# depending on the platform
+# The library file extension. This can be .a, .lib, etc., depending on the
+# platform.
#
A := a
-# The name of the final library file.
-# Note that the DOS-specific Makefile uses a shorter (8.3) name
+# The name of the final library file. Note that the DOS-specific Makefile
+# uses a shorter (8.3) name.
#
LIBRARY := libfreetype
-# path inclusion flag.
-#
-# Some compilers use a different flag than '-I' to specify an
-# additional include path. Examples are "/i=" or "-J", etc...
+# Path inclusion flag. Some compilers use a different flag than `-I' to
+# specify an additional include path. Examples are `/i=' or `-J'.
#
I := -I
-# C flag used to define a macro before the compilation of a given
-# source object. Usually is '-D' like in "-DDEBUG"
+# C flag used to define a macro before the compilation of a given source
+# object. Usually is `-D' like in `-DDEBUG'.
#
D := -D
-# Target flag - beware, there is a space after the 'o' !!
+# The link flag used to specify a given library file on link. Note that
+# this is only used to compile the demo programs, not the library itself.
#
-#
-T := -o
+L := -l
-# The link flag used to specify a given library file on link.
-# Note that this is only used to compile the demo programs, not
-# the library itself.
+# Target flag.
#
-L := -l
+T := -o # Don't remove this comment line! We need the space after `-o'.
# C flags
#
-# These should concern : debug output, optimization & warnings
+# These should concern: debug output, optimization & warnings.
#
-# Use the ANSIFLAGS variable to define the compiler flags used
-# to enfore ANSI compliance..
+# Use the ANSIFLAGS variable to define the compiler flags used to enfore
+# ANSI compliance.
#
ifndef CFLAGS
-CFLAGS := -c
+ CFLAGS := -c
endif
-# ANSIFLAGS : put there the flags used to make your compiler ANSI-compliant
-# nothing (if it already is by default like LCC).
+# ANSIFLAGS: Put there the flags used to make your compiler ANSI-compliant.
#
ANSIFLAGS :=
-# Now include the main sub-makefile. It contains all the rules used
-# to build the library with the previous variables defined
-#
-include $(TOP)/config/freetype.mk
-clean_freetype: clean_freetype_std
-distclean_freetype: clean_freetype_library_std
+ifdef BUILD_FREETYPE
-# Librarian to use to build the static library
-#
-FT_LIBRARIAN := $(AR) -r
+ # Now include the main sub-makefile. It contains all the rules used to
+ # build the library with the previous variables defined.
+ #
+ include $(TOP)/config/freetype.mk
+ # The cleanup targets.
+ #
+ clean_freetype: clean_freetype_std
+ distclean_freetype: distclean_freetype_std
-# This final rule is used to link all object files into a single
-# library. It is part of the system-specific sub-Makefile because not
-# all librarians accept a simple syntax like :
-#
-# librarian library_file {list of object files}
-#
-$(FT_LIBRARY): $(OBJECTS_LIST)
- -$(DELETE) $@
- $(FT_LIBRARIAN) $@ $(OBJECTS_LIST)
+ # Librarian to use to build the static library
+ #
+ FT_LIBRARIAN := $(AR) -r
+
+
+ # This final rule is used to link all object files into a single library.
+ # It is part of the system-specific sub-Makefile because not all
+ # librarians accept a simple syntax like:
+ #
+ # librarian library_file {list of object files}
+ #
+ $(FT_LIBRARY): $(OBJECTS_LIST)
+ -$(DELETE) $@
+ $(FT_LIBRARIAN) $@ $(OBJECTS_LIST)
+
+endif
+# EOF
diff --git a/config/detect.mk b/config/detect.mk
index bef9942..6303ee2 100644
--- a/config/detect.mk
+++ b/config/detect.mk
@@ -1,127 +1,130 @@
-#****************************************************************************
-#* *
-#* FreeType host platform detection rules *
-#* *
-#* Copyright 1996-1999 by *
-#* David Turner, Robert Wilhelm, and Werner Lemberg. *
-#* *
-#* This file is part of the FreeType project, and may only be used *
-#* modified and distributed under the terms of the FreeType project *
-#* license, LICENSE.TXT. By continuing to use, modify, or distribute *
-#* this file you indicate that you have read the license and *
-#* understand and accept it fully. *
-#* *
-#* *
-#* This sub-Makefile is in charge of detecting the current platform *
-#* It sets some variables accordingly. Namely : *
-#* *
-#* PLATFORM The detected platform. This will default to "ansi" if *
-#* auto-detection fails. *
-#* *
-#* BUILD The configuration and system-specific directory. Usually *
-#* 'freetype/config/$(PLATFORM)' but can be different when *
-#* a specific compiler has been requested on the *
-#* command line.. *
-#* *
-#* CONFIG_RULES The Makefile to use. This usually depends on the compiler *
-#* defined in the 'CC' environment variable. *
-#* *
-#* DELETE The shell command used to remove a given file *
-#* COPY The shell command used to copy one file *
-#* *
-#* You need to set the following variable(s) before calling it: *
-#* *
-#* TOP The top-most directory in the FreeType library source *
-#* hierarchy. If not defined, it will default to '.' *
-#* *
-#****************************************************************************
-
-# If TOP is not defined, default it to '.'
-#
-ifndef TOP
-TOP := .
-endif
-
#
-# set auto-detection default to ANSI.
-# Note that we delay the valuation of BUILD and RULES
+# FreeType 2 host platform detection rules
#
-PLATFORM := ansi
-CONFIG = $(TOP)$(SEP)config
-DELETE := $(RM)
-COPY := cp
-SEP := /
-BUILD = $(CONFIG)$(SEP)$(PLATFORM)
-CONFIG_FILE = $(BUILD)/Makefile
+
+# Copyright 1996-2000 by
+# David Turner, Robert Wilhelm, and Werner Lemberg.
+#
+# This file is part of the FreeType project, and may only be used modified
+# and distributed under the terms of the FreeType project license,
+# LICENSE.TXT. By continuing to use, modify, or distribute this file you
+# indicate that you have read the license and understand and accept it
+# fully.
-###########################################################################
+# This sub-Makefile is in charge of detecting the current platform. It sets
+# the following variables:
+#
+# BUILD The configuration and system-specific directory. Usually
+# `freetype/config/$(PLATFORM)' but can be different if a
+# specific compiler has been requested on the command line.
+#
+# The following variables must be defined in system specific `detect.mk'
+# files:
+#
+# PLATFORM The detected platform. This will default to `ansi' if
+# auto-detection fails.
+# CONFIG_FILE The Makefile to use. This usually depends on the compiler
+# defined in the `CC' environment variable.
+# DELETE The shell command used to remove a given file.
+# COPY The shell command used to copy one file.
+# SEP The platform-specific directory separator.
+# CC The compiler to use.
#
-# Now, include each detection rules file found in a `config/<system>'
-# directory..
+# You need to set the following variable(s) before calling it:
#
+# TOP The top-most directory in the FreeType library source
+# hierarchy. If not defined, it will default to `.'.
+
+# If TOP is not defined, default it to `.'
+#
+ifndef TOP
+TOP := .
+endif
+
+# Set auto-detection default to `ansi'.
+# Note that we delay the evaluation of $(CONFIG_), $(BUILD), and
+# $(CONFIG_RULES).
#
+PLATFORM := ansi
+DELETE := $(RM)
+COPY := cp
+SEP := /
-# we define the BACKSLASH variable to hold a single back-slash character
+CONFIG_ = $(TOP)$(SEP)config$(SEP)
+BUILD = $(CONFIG_)$(PLATFORM)
+CONFIG_RULES = $(BUILD)$(SEP)$(CONFIG_FILE)
+
+# We define the BACKSLASH variable to hold a single back-slash character.
# This is needed because a line like
#
-# SEP := \
+# SEP := \
#
-# does not work with GNU Make (the back-slash is interpreted as a line
-# continuation). While a line like :
+# does not work with GNU Make (the backslash is interpreted as a line
+# continuation). While a line like
#
-# SEP := \\
+# SEP := \\
#
-# really define $(SEP) as "\" on Unix, and "\\" on Dos and Windows !!
+# really defines $(SEP) as `\' on Unix, and `\\' on Dos and Windows!
#
BACKSLASH := $(strip \ )
-include $(wildcard $(CONFIG)/*/detect.mk)
+# Now, include all detection rule files found in the `config/<system>'
+# directories. Note that the calling order of the various `detect.mk' files
+# isn't predictable.
+#
+include $(wildcard $(CONFIG_)*/detect.mk)
+# In case no detection rule file was successful, use the default.
+#
+ifndef CONFIG_FILE
+ CONFIG_FILE := ansi.mk
+ setup: std_setup
+endif
# The following targets are equivalent, with the exception that they use
-# slightly different syntaxes for the `echo' command. This is due to
+# slightly different syntaxes for the `echo' command.
#
-# std_setup: is defined for most platforms
-# dos_setup: is defined for Dos-ish platforms like Dos, Windows & OS/2
+# std_setup: defined for most platforms
+# dos_setup: defined for Dos-ish platforms like Dos, Windows & OS/2
#
-
-.PHONY: std_setup dos_setup
+.PHONY: std_setup dos_setup
std_setup:
@echo ""
- @echo "FreeType build system - automatic system detection"
+ @echo "FreeType build system -- automatic system detection"
@echo ""
- @echo "The following settings were detected :"
+ @echo "The following settings are used:"
@echo ""
- @echo " platform : $(PLATFORM)"
- @echo " compiler : $(CC)"
- @echo " configuration directory : $(BUILD)"
- @echo " configuration rules : $(CONFIG_RULES)"
+ @echo " platform $(PLATFORM)"
+ @echo " compiler $(CC)"
+ @echo " configuration directory $(BUILD)"
+ @echo " configuration rules $(CONFIG_RULES)"
@echo ""
@echo "If this does not correspond to your system or settings please remove the file"
@echo "\`$(CONFIG_MK)' from this directory then read the INSTALL file for help."
@echo ""
- @echo "Otherwise, simple type \`make' again to build the library"
+ @echo "Otherwise, simply type \`make' again to build the library."
@echo ""
@$(COPY) $(CONFIG_RULES) $(CONFIG_MK)
dos_setup:
@echo ÿ
- @echo FreeType build system - automatic system detection
+ @echo FreeType build system -- automatic system detection
@echo ÿ
- @echo The following settings were detected :
+ @echo The following settings are used:
@echo ÿ
- @echo ÿÿplatformÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ: $(PLATFORM)
- @echo ÿÿcompilerÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ: $(CC)
- @echo ÿÿconfiguration directoryÿÿ: $(BUILD)
- @echo ÿÿconfiguration rulesÿÿÿÿÿÿ: $(CONFIG_RULES)
+ @echo ÿÿplatformÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ$(PLATFORM)
+ @echo ÿÿcompilerÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ$(CC)
+ @echo ÿÿconfiguration directoryÿÿÿÿÿÿ$(BUILD)
+ @echo ÿÿconfiguration rulesÿÿÿÿÿÿÿÿÿÿ$(CONFIG_RULES)
@echo ÿ
@echo If this does not correspond to your system or settings please remove the file
@echo '$(CONFIG_MK)' from this directory then read the INSTALL file for help.
@echo ÿ
- @echo Otherwise, simple type 'make' again to build the library
+ @echo Otherwise, simply type 'make' again to build the library.
@echo ÿ
@$(COPY) $(subst /,\,$(CONFIG_RULES) $(CONFIG_MK)) > nul
+# EOF
diff --git a/config/dos/detect.mk b/config/dos/detect.mk
index 5f1cdff..3269438 100644
--- a/config/dos/detect.mk
+++ b/config/dos/detect.mk
@@ -1,87 +1,91 @@
#
-# This file is used to detect a DOS host platform.
+# FreeType 2 configuration file to detect a DOS host platform.
#
-# This configuration file to be used depends on the value of the CC
-# environment variable.
-#
-#
-
-# We test for the COMSPEC environment variable, then run the 'ver'
-# command-line program to see if its output contains the word "Dos"
-#
-# If this is true, we're running a Dos-ish platform (or an emulation)
-#
-
-ifeq ($(PLATFORM),ansi)
-ifdef COMSPEC
-is_dos := $(findstring Dos,$(shell ver))
-
-# We try to recognize a Dos session under OS/2. The "ver" command
-# returns 'Operating System/2 ...' there, so 'is_dos' should be empty
-# there.
-#
-# To recognize a Dos session under OS/2, we check COMSPEC for the
-# substring "MDOS\COMMAND"
+# Copyright 1996-2000 by
+# David Turner, Robert Wilhelm, and Werner Lemberg.
#
-ifeq ($(is_dos),)
-is_dos := $(findstring MDOS\COMMAND,$(COMSPEC))
-endif
+# This file is part of the FreeType project, and may only be used modified
+# and distributed under the terms of the FreeType project license,
+# LICENSE.TXT. By continuing to use, modify, or distribute this file you
+# indicate that you have read the license and understand and accept it
+# fully.
-ifneq ($(is_dos),)
-PLATFORM := dos
-DELETE := del
-COPY := copy
+# This configuration file to be used depends on the value of the CC
+# environment variable which is set below according to the compiler name
+# given as a parameter to make.
-#####################################################################
-#
-# Use gcc, i.e. DJGPP by default. Aren't we biased ;-)
-#
+
+# We test for the COMSPEC environment variable, then run the `ver'
+# command-line program to see if its output contains the word `Dos'.
#
-CONFIG_FILE := dos-gcc.mk
-SEP := /
-ifndef CC
-CC := gcc
-endif
-
-
-ifneq ($(findstring turboc,$(MAKECMDGOALS)),) # Turbo C
-CONFIG_FILE := dos-tcc.mk
-SEP := $(BACKSLASH)
-CC := tcc
-.PHONY: turboc
-endif
-
-ifneq ($(findstring watcom,$(MAKECMDGOALS)),) # Watcom C/C++
-CONFIG_FILE := dos-wat.mk
-SEP := $(BACKSLASH)
-CC := wcc386
-.PHONY: watcom
-endif
-
-ifneq ($(findstring borlandc16,$(MAKECMDGOALS)),) # Borland C/C++ 16 bits
-CONFIG_FILE := dos-bcc.mk
-SEP := $(BACKSLASH)
-CC := bcc
-.PHONY: borlandc16
-endif
-
-ifneq ($(findstring borlandc,$(MAKECMDGOALS)),) # Borland C/C++ 32 bits
-CONFIG_FILE := dos-bcc.mk
-SEP := $(BACKSLASH)
-CC := bcc32
-.PHONY: borlandc
-endif
-
-CONFIG_RULES := $(TOP)\config\dos\$(CONFIG_FILE)
-
-# use the Dos version of the "setup dump"
+# If this is true, we are running a Dos-ish platform (or an emulation).
#
-setup: dos_setup
-
-endif # test Dos
-endif # test COMSPEC
-endif # test PLATFORM
+ifeq ($(PLATFORM),ansi)
+ ifdef COMSPEC
+
+ is_dos := $(findstring Dos,$(shell ver))
+
+ # We try to recognize a Dos session under OS/2. The `ver' command
+ # returns `Operating System/2 ...' there, so `is_dos' should be empty
+ # there.
+ #
+ # To recognize a Dos session under OS/2, we check COMSPEC for the
+ # substring `MDOS\COMMAND'
+ #
+ ifeq ($(is_dos),)
+ is_dos := $(findstring MDOS\COMMAND,$(COMSPEC))
+ endif
+
+ ifneq ($(is_dos),)
+
+ PLATFORM := dos
+ DELETE := del
+ COPY := copy
+
+ # Use DJGPP (i.e. gcc) by default.
+ #
+ CONFIG_FILE := dos-gcc.mk
+ SEP := /
+ ifndef CC
+ CC := gcc
+ endif
+
+ ifneq ($(findstring turboc,$(MAKECMDGOALS)),) # Turbo C
+ CONFIG_FILE := dos-tcc.mk
+ SEP := $(BACKSLASH)
+ CC := tcc
+ .PHONY: turboc
+ endif
+
+ ifneq ($(findstring watcom,$(MAKECMDGOALS)),) # Watcom C/C++
+ CONFIG_FILE := dos-wat.mk
+ SEP := $(BACKSLASH)
+ CC := wcc386
+ .PHONY: watcom
+ endif
+
+ ifneq ($(findstring borlandc16,$(MAKECMDGOALS)),) # Borland C/C++ 16 bits
+ CONFIG_FILE := dos-bcc.mk
+ SEP := $(BACKSLASH)
+ CC := bcc
+ .PHONY: borlandc16
+ endif
+
+ ifneq ($(findstring borlandc,$(MAKECMDGOALS)),) # Borland C/C++ 32 bits
+ CONFIG_FILE := dos-bcc.mk
+ SEP := $(BACKSLASH)
+ CC := bcc32
+ .PHONY: borlandc
+ endif
+
+ setup: dos_setup
+
+ endif # test Dos
+ endif # test COMSPEC
+endif # test PLATFORM
+
+# EOF
diff --git a/config/dos/dos-gcc.mk b/config/dos/dos-gcc.mk
index 1cee0c3..c7b4ce1 100644
--- a/config/dos/dos-gcc.mk
+++ b/config/dos/dos-gcc.mk
@@ -1,23 +1,20 @@
-#*******************************************************************
-#*
-#* FreeType 2 Configuration rules for Dos + GCC
-#*
-#* Copyright 1996-2000 by
-#* David Turner, Robert Wilhelm, and Werner Lemberg.
-#*
-#* This file is part of the FreeType project, and may only be used
-#* modified and distributed under the terms of the FreeType project
-#* license, LICENSE.TXT. By continuing to use, modify, or distribute
-#* this file you indicate that you have read the license and
-#* understand and accept it fully.
-#*
-#* Please read the file "freetype/docs/config.txt" to understand
-#* what this file does..
-#*
-#*******************************************************************
+#
+# FreeType 2 configuration rules for the DJGPP compiler
+#
+
+
+# Copyright 1996-2000 by
+# David Turner, Robert Wilhelm, and Werner Lemberg.
+#
+# This file is part of the FreeType project, and may only be used modified
+# and distributed under the terms of the FreeType project license,
+# LICENSE.TXT. By continuing to use, modify, or distribute this file you
+# indicate that you have read the license and understand and accept it
+# fully.
+
ifndef TOP
-TOP := .
+ TOP := .
endif
DELETE := rm -f
@@ -26,106 +23,110 @@ HOSTSEP := $(strip \ )
BUILD := $(TOP)/config/dos
PLATFORM := dos
-# the directory where all object files are placed
-#
-# Note that this is not $(TOP)/obj !!
-# This lets you build the library in your own directory
-# with something like :
+# The directory where all object files are placed.
#
-# set TOP=....../path/to/freetype2/top/dir...
-# mkdir obj
-# make -f %TOP%/Makefile setup [options]
-# make -f %TOP%/Makefile
+# Note that this is not $(TOP)/obj!
+# This lets you build the library in your own directory with something like
#
+# set TOP=.../path/to/freetype2/top/dir...
+# mkdir obj
+# make -f %TOP%/Makefile setup [options]
+# make -f %TOP%/Makefile
#
OBJ_DIR := obj
-# the directory where all library files are placed
+# The directory where all library files are placed
#
-# by default, this is the same as OBJ_DIR, however, this can be
-# changed to suit particular needs..
+# By default, this is the same as $(OBJ_DIR), however, this can be changed
+# to suit particular needs.
#
LIB_DIR := $(OBJ_DIR)
-# the object file extension, this can be .o, .tco, .obj, etc..
-# depending on the platform
+# The object file extension. This can be .o, .tco, .obj, etc., depending on
+# the platform.
#
O := o
-# the library file extension, this can be .a, .lib, etc..
-# depending on the platform
+# The library file extension. This can be .a, .lib, etc., depending on the
+# platform.
#
A := a
-# The name of the final library file.
-# Note that the DOS-specific Makefile uses a shorter (8.3) name
+# The name of the final library file. Note that the DOS-specific Makefile
+# uses a shorter (8.3) name.
#
LIBRARY := libfreetype
-# path inclusion flag.
-#
-# Some compilers use a different flag than '-I' to specify an
-# additional include path. Examples are "/i=" or "-J", etc...
+# Path inclusion flag. Some compilers use a different flag than `-I' to
+# specify an additional include path. Examples are `/i=' or `-J'.
#
I := -I
-# The link flag used to specify a given library file on link.
-# Note that this is only used to compile the demo programs, not
-# the library itself.
+# C flag used to define a macro before the compilation of a given source
+# object. Usually is `-D' like in `-DDEBUG'.
#
-L := -l
+D := -D
-# C flag used to define a macro before the compilation of a given
-# source object. Usually is '-D' like in "-DDEBUG"
+# The link flag used to specify a given library file on link. Note that
+# this is only used to compile the demo programs, not the library itself.
#
-D := -D
+L := -l
-# Target flag - beware, there is a space after the 'o' !!
-#
+# Target flag.
#
-T := -o
+T := -o # Don't remove this comment line! We need the space after `-o'.
+
# C flags
#
-# These should concern :
+# These should concern: debug output, optimization & warnings.
#
-# - debug output
-# - optimization
-# - warnings
-# - ansi compliance..
+# Use the ANSIFLAGS variable to define the compiler flags used to enfore
+# ANSI compliance.
#
ifndef CFLAGS
-CFLAGS := -c -g -O6 -Wall
+ CFLAGS := -c -g -O6 -Wall
endif
-# ANSIFLAGS : put there the flags used to make your compiler ANSI-compliant
-# nothing (if it already is by default like LCC).
+# ANSIFLAGS: Put there the flags used to make your compiler ANSI-compliant.
#
ANSIFLAGS := -ansi -pedantic
+
ifdef BUILD_FREETYPE
-include $(TOP)/config/freetype.mk
+ # Now include the main sub-makefile. It contains all the rules used to
+ # build the library with the previous variables defined.
+ #
+ include $(TOP)/config/freetype.mk
-clean_freetype: clean_freetype_dos
-distclean_freetype: distclean_freetype_dos
+ # The cleanup targets.
+ #
+ clean_freetype: clean_freetype_dos
+ distclean_freetype: distclean_freetype_dos
+ # Librarian to use to build the static library
+ #
+ FT_LIBRARIAN := $(AR) -r
-# This final rule is used to link all object files into a single
-# library. It is part of the system-specific sub-Makefile because not
-# all librarians accept a simple syntax like :
-#
-# librarian library_file {list of object files}
-#
-$(FT_LIBRARY): $(OBJECTS_LIST)
- -$(DELETE) $@
- $(AR) -r $@ $(OBJECTS_LIST)
+
+ # This final rule is used to link all object files into a single library.
+ # It is part of the system-specific sub-Makefile because not all
+ # librarians accept a simple syntax like:
+ #
+ # librarian library_file {list of object files}
+ #
+ $(FT_LIBRARY): $(OBJECTS_LIST)
+ -$(DELETE) $@
+ $(FT_LIBRARIAN) $@ $(OBJECTS_LIST)
endif
+
+# EOF
diff --git a/config/freetype.mk b/config/freetype.mk
index ed5ebce..84f0e77 100644
--- a/config/freetype.mk
+++ b/config/freetype.mk
@@ -1,57 +1,51 @@
-#****************************************************************************
-#* *
-#* FreeType library sub-Makefile *
-#* *
-#* Copyright 1996-1999 by *
-#* David Turner, Robert Wilhelm, and Werner Lemberg. *
-#* *
-#* This file is part of the FreeType project, and may only be used *
-#* modified and distributed under the terms of the FreeType project *
-#* license, LICENSE.TXT. By continuing to use, modify, or distribute *
-#* this file you indicate that you have read the license and *
-#* understand and accept it fully. *
-#* *
-#* *
-#* *
-#* DO NOT INVOKE THIS MAKEFILE DIRECTLY. IT IS MEANT TO BE INCLUDED BY *
-#* OTHER MAKEFILES. *
-#* *
-#****************************************************************************
-
-
-# include the 'modules' rules file
-#
-include $(TOP)/config/modules.mk
-
-# The targets `objects', `library' are defined at the end of
-# this Makefile when all rules have been included..
+#
+# FreeType 2 library sub-Makefile
+#
+
+
+# Copyright 1996-2000 by
+# David Turner, Robert Wilhelm, and Werner Lemberg.
+#
+# This file is part of the FreeType project, and may only be used modified
+# and distributed under the terms of the FreeType project license,
+# LICENSE.TXT. By continuing to use, modify, or distribute this file you
+# indicate that you have read the license and understand and accept it
+# fully.
+
+
+# DO NOT INVOKE THIS MAKEFILE DIRECTLY! IT IS MEANT TO BE INCLUDED BY
+# OTHER MAKEFILES.
+
+
+# The targets `objects' and `library' are defined at the end of this
+# Makefile when all rules have been included.
#
.PHONY: build_freetype objects library
-# default target - build objects and library
+# default target -- build objects and library
#
build_freetype: objects library
-# `multi' target - build multiple objects and library
+# `multi' target -- build multiple objects and library
#
multi: objects library
-# The FreeType sources directory.
+# The FreeType source directory.
#
SRC := $(TOP)$(SEP)src
-# The directory where the base layer components are placed.
-# By default, this is 'freetype/src/base'
+# The directory where the base layer components are placed. By default,
+# this is `freetype/src/base'.
#
BASE_DIR := $(SRC)$(SEP)base
-# A Few short-cuts in order to avoid typing $(SEP) all the time for
-# the directory separator
+# A few short-cuts in order to avoid typing $(SEP) all the time for the
+# directory separator.
#
-# For example: SRC_ equals to './src/' where '.' is $(TOP)
+# For example: SRC_ equals to `./src/' where `.' is $(TOP).
#
#
SRC_ := $(SRC)$(SEP)
@@ -61,6 +55,7 @@ LIB_ := $(LIB_DIR)$(SEP)
PUBLIC_ := $(TOP)$(SEP)include$(SEP)
CONFIG_ := $(TOP)$(SEP)config$(SEP)
+
# The name of the final library file.
#
FT_LIBRARY := $(LIB_)$(LIBRARY).$A
@@ -69,10 +64,10 @@ FT_LIBRARY := $(LIB_)$(LIBRARY).$A
# include paths
#
# IMPORTANT NOTE: The architecture-dependent directory must ALWAYS be placed
-# in front of the include list. Porters are then able to put
-# their own version of some of the FreeType components in
-# the 'freetype/config/<system>' directory, as these files
-# will override the default sources.
+# in front of the include list. Porters are then able to
+# put their own version of some of the FreeType components
+# in the `freetype/config/<system>' directory, as these
+# files will override the default sources.
#
INCLUDES := $(BUILD) $(TOP)$(SEP)config $(TOP)$(SEP)include $(INCLUDES)
@@ -80,34 +75,37 @@ INCLUDE_FLAGS = $(INCLUDES:%=$I%)
# C flags used for the compilation of an object file. This must include at
-# least the paths for the 'base' and 'config/<system>' directories,
+# least the paths for the `base' and `config/<system>' directories,
# debug/optimization/warning flags + ansi compliance if needed.
#
FT_CFLAGS = $(CFLAGS) $(INCLUDE_FLAGS)
FT_CC = $(CC) $(FT_CFLAGS)
-FT_COMPILE = $(CC) $(ANSI_FLAGS) $(FT_CFLAGS)
+FT_COMPILE = $(CC) $(ANSIFLAGS) $(FT_CFLAGS)
+# include the `modules' rules file
#
-# Free the lists of driver objects
+include $(CONFIG_)modules.mk
+
+
+# Free the lists of driver objects.
#
COMPONENTS_LIST :=
DRIVERS_LIST :=
OBJECTS_LIST :=
-# System-specific component - this must be defined in this Makefile
-# for easy updates. The default Ansi ftsystem.c is located in
-# 'freetype/config/ftsystem.c'. However, some system-specific
-# configuration might define FTSYS_SRC to fetch it in other places,
-# like 'freetype/config/<system>/ftsystem.c'
+# System-specific component -- this must be defined in this Makefile for
+# easy updates. The default ANSI ftsystem.c is located in
+# `freetype/config/ftsystem.c'. However, some system-specific configuration
+# might define $(FTSYS_SRC) to fetch it in other places, like
+# `freetype/config/<system>/ftsystem.c'.
#
-# BASE_H is defined in src/base/rules.mk and contains the list of all
+# $(BASE_H) is defined in `src/base/rules.mk' and contains the list of all
# base layer header files.
#
ifndef FTSYS_SRC
-FTSYS_SRC = $(BASE_)ftsystem.c
+ FTSYS_SRC = $(BASE_)ftsystem.c
endif
-
FTSYS_OBJ = $(OBJ_)ftsystem.$O
OBJECTS_LIST += $(FTSYS_OBJ)
@@ -118,10 +116,9 @@ $(FTSYS_OBJ): $(FTSYS_SRC) $(BASE_H)
# ftdebug component
#
-# FTDebug contains code used to print traces and errors. It is
-# normally empty for a release build (see ftoption.h)
+# FTDebug contains code used to print traces and errors. It is normally
+# empty for a release build (see ftoption.h).
#
-
FTDEBUG_SRC = $(BASE_)ftdebug.c
FTDEBUG_OBJ = $(OBJ_)ftdebug.$O
@@ -131,28 +128,27 @@ $(FTDEBUG_OBJ): $(FTDEBUG_SRC) $(BASE_H)
$(FT_COMPILE) $T$@ $<
-
-# Define PUBLIC_H as the list of all public header files located in
-# `$(TOP)/include'
+# Define $(PUBLIC_H) as the list of all public header files located in
+# `$(TOP)/include'.
#
PUBLIC_H := $(wildcard $(PUBLIC_)*.h)
-# Include all rule files from FreeType components
-#
+# Include all rule files from FreeType components.
#
include $(wildcard $(SRC)/*/rules.mk)
-# FTInit file:
+
+# FTInit file
#
-# The C source 'ftinit.c' contains the FreeType initialisation routines.
+# The C source `ftinit.c' contains the FreeType initialization routines.
# It is able to automatically register one or more drivers when the API
# function FT_Init_FreeType() is called.
#
# The set of initial drivers is determined by the driver Makefiles
# includes above. Each driver Makefile updates the FTINIT_xxxx lists
# which contain additional include paths and macros used to compile the
-# single 'ftinit.c' source.
+# single `ftinit.c' source.
#
FTINIT_SRC := $(BASE_)ftinit.c
FTINIT_OBJ := $(OBJ_)ftinit.$O
@@ -166,26 +162,25 @@ $(FTINIT_OBJ): $(FTINIT_SRC) $(BASE_H) $(FT_MODULE_LIST)
# All FreeType library objects
#
# By default, we include the base layer extensions. These could be
-# ommitted on builds which do not want them.
+# omitted on builds which do not want them.
#
OBJ_M = $(BASE_OBJ_M) $(BASE_EXT_OBJ) $(DRV_OBJS_M)
-
OBJ_S = $(BASE_OBJ_S) $(BASE_EXT_OBJ) $(DRV_OBJS_S)
-# the target 'multi' on the Make command line indicates that we want
-# to compile each source file independently..
+
+# The target `multi' on the Make command line indicates that we want to
+# compile each source file independently.
#
-# Otherwise, each module/driver is compiled in a single object file
-# through source file inclusion (see 'src/base/ftbase.c' or
-# 'src/truetype/truetype.c' for examples)
+# Otherwise, each module/driver is compiled in a single object file through
+# source file inclusion (see `src/base/ftbase.c' or
+# `src/truetype/truetype.c' for examples).
#
-
BASE_OBJECTS := $(OBJECTS_LIST)
ifneq ($(findstring multi,$(MAKECMDGOALS)),)
-OBJECTS_LIST += $(OBJ_M)
+ OBJECTS_LIST += $(OBJ_M)
else
-OBJECTS_LIST += $(OBJ_S)
+ OBJECTS_LIST += $(OBJ_S)
endif
objects: $(OBJECTS_LIST)
@@ -196,36 +191,36 @@ library: $(FT_LIBRARY)
$(FT_COMPILE) $T$@ $<
-# Standard cleaning and distclean rules. These are not accepted
-# on all systems though..
+# Standard cleaning and distclean rules. These are not accepted
+# on all systems though.
#
clean_freetype_std:
- -$(DELETE) $(BASE_OBJECTS) $(OBJS_M) $(OBJS_S)
+ -$(DELETE) $(BASE_OBJECTS) $(OBJ_M) $(OBJ_S)
distclean_freetype_std: clean_freetype_std
-$(DELETE) $(FT_LIBRARY)
-$(DELETE) *.orig *~ core *.core
-# The Dos command shell does not support very long list of arguments
-# so we're stuck with wildcards
+# The Dos command shell does not support very long list of arguments, so
+# we are stuck with wildcards.
#
-
clean_freetype_dos:
- -del $(subst $(SEP),$(HOSTSEP),$(OBJ_))*.$O 2> nul
+ -$(DELETE) $(subst $(SEP),$(HOSTSEP),$(OBJ_))*.$O 2> nul
distclean_freetype_dos: clean_freetype_dos
- -del $(subst $(SEP),$(HOSTSEP),$(FT_LIBRARY)) 2> nul
+ -$(DELETE) $(subst $(SEP),$(HOSTSEP),$(FT_LIBRARY)) 2> nul
-# remove configuration file (used for distclean)
+# Remove configuration file (used for distclean).
#
remove_config_mk:
-$(DELETE) $(subst $(SEP),$(HOSTSEP),$(CONFIG_MK))
-# the "config.mk" must define 'clean_freetype' and 'distclean_freetype'
-# implementations may use to relay these to either the 'std' or 'dos'
-# versions, or simply provide their own implementation..
+
+# The `config.mk' file must define `clean_freetype' and
+# `distclean_freetype'. Implementations may use to relay these to either
+# the `std' or `dos' versions, or simply provide their own implementation.
#
clean: clean_freetype
distclean: distclean_freetype remove_config_mk
-# END
+# EOF
diff --git a/config/modules.mk b/config/modules.mk
index 8c834bb..8978342 100644
--- a/config/modules.mk
+++ b/config/modules.mk
@@ -1,69 +1,73 @@
-#****************************************************************************
-#* *
-#* FreeType modules sub-Makefile *
-#* *
-#* Copyright 1996-1999 by *
-#* David Turner, Robert Wilhelm, and Werner Lemberg. *
-#* *
-#* This file is part of the FreeType project, and may only be used *
-#* modified and distributed under the terms of the FreeType project *
-#* license, LICENSE.TXT. By continuing to use, modify, or distribute *
-#* this file you indicate that you have read the license and *
-#* understand and accept it fully. *
-#* *
-#* *
-#* *
-#* DO NOT INVOKE THIS MAKEFILE DIRECTLY. IT IS MEANT TO BE INCLUDED BY *
-#* OTHER MAKEFILES. *
-#* *
-#* This file is in charge of handling the generation of the modules list *
-#* file, normally located in `config/ftmodule.h' *
-#* *
-#****************************************************************************
+#
+# FreeType 2 modules sub-Makefile
+#
+
+
+# Copyright 1996-2000 by
+# David Turner, Robert Wilhelm, and Werner Lemberg.
+#
+# This file is part of the FreeType project, and may only be used modified
+# and distributed under the terms of the FreeType project license,
+# LICENSE.TXT. By continuing to use, modify, or distribute this file you
+# indicate that you have read the license and understand and accept it
+# fully.
+
+
+# DO NOT INVOKE THIS MAKEFILE DIRECTLY! IT IS MEANT TO BE INCLUDED BY
+# OTHER MAKEFILES.
+
+
+# This file is in charge of handling the generation of the modules list
+# file, normally located in `config/ftmodule.h'.
.PHONY: make_module_list clean_module_list remake_module_list
-# MODULE_LIST, as it name suggests, indicate where the modules list
-# reside. For now, it is in $(BUILD)/ftmodule.h
+# MODULE_LIST, as its name suggests, indicates where the modules list
+# resides. For now, it is in `config/ftmodule.h'.
#
ifndef FT_MODULE_LIST
-FT_MODULE_LIST := $(TOP)$(SEP)config$(SEP)ftmodule.h
+ FT_MODULE_LIST := $(CONFIG_)ftmodule.h
endif
-# To build the modules list, we invoke the `make_module_list' target
+# To build the modules list, we invoke the `make_module_list' target.
#
#$(FT_MODULE_LIST): make_module_list
-# Before the modules list file can be generated, we must remove the
-# file in order to `clean' the list
+# Before the modules list file can be generated, we must remove the file in
+# order to `clean' the list.
#
clean_module_list:
@-$(DELETE) $(subst $(SEP),$(HOSTSEP),$(FT_MODULE_LIST))
- @-echo Regenerating the font drivers list in $(FT_MODULE_LIST)
+ @-echo Regenerating the font drivers list in $(FT_MODULE_LIST)...
make_module_list: clean_module_list
- @echo -- done --
+ @echo done.
+
+# Trailing spaces are protected with a `#' sign to avoid accidental
+# removing.
+#
ifneq ($(findstring $(PLATFORM),dos win32 win16 os2),)
-OPEN_MODULE := @echo
-CLOSE_MODULE := >> $(FT_MODULE_LIST)
+ OPEN_MODULE := @echo #
+ CLOSE_MODULE := >> $(FT_MODULE_LIST)
else
-OPEN_MODULE := @echo "
-CLOSE_MODULE := " >> $(FT_MODULE_LIST)
+ OPEN_MODULE := @echo "
+ CLOSE_MODULE := " >> $(FT_MODULE_LIST)
endif
-# OPEN_DRIVER & CLOSE_DRIVER are used to specify a given font driver
-# in the `module.mk' rules file
+# $(OPEN_DRIVER) & $(CLOSE_DRIVER) are used to specify a given font driver
+# in the `module.mk' rules file.
#
OPEN_DRIVER := $(OPEN_MODULE)FT_DRIVER(
CLOSE_DRIVER := )$(CLOSE_MODULE)
-ECHO_DRIVER := @echo "* driver:
+ECHO_DRIVER := @echo "* driver: #
ECHO_DRIVER_DESC := (
ECHO_DRIVER_DONE := )"
-# each `module.mk' in the `src' sub-dirs is used to add one rule to
-# the target `make_module_list'.
+# Each `module.mk' in the `src' sub-dirs is used to add one rule to the
+# target `make_module_list'.
#
include $(wildcard $(TOP)/src/*/module.mk)
+# EOF
diff --git a/config/os2/detect.mk b/config/os2/detect.mk
index 7bd02c7..f16c801 100644
--- a/config/os2/detect.mk
+++ b/config/os2/detect.mk
@@ -1,54 +1,64 @@
#
-# This file is used to detect an OS/2 host, and set the build variables
-# accordingly..
-#
-# which Makefile to use based on the value of the CC environment variable.
-#
-# OS/2
+# FreeType 2 configuration file to detect an OS/2 host platform.
#
+
+
+# Copyright 1996-2000 by
+# David Turner, Robert Wilhelm, and Werner Lemberg.
#
+# This file is part of the FreeType project, and may only be used modified
+# and distributed under the terms of the FreeType project license,
+# LICENSE.TXT. By continuing to use, modify, or distribute this file you
+# indicate that you have read the license and understand and accept it
+# fully.
+
+
+# This configuration file to be used depends on the value of the CC
+# environment variable which is set below according to the compiler name
+# given as a parameter to make.
+
ifeq ($(PLATFORM),ansi)
-ifdef OS2_SHELL
-
-PLATFORM := os2
-COPY := copy
-DELETE := del
-
-CONFIG_FILE := os2-gcc.mk # gcc-emx by default
-SEP := /
-
-ifneq ($(findstring visualage,$(MAKECMDGOALS)),) # Visual Age C++
-CONFIG_FILE := os2-icc.mk
-SEP := $(BACKSLASH)
-CC := icc
-.PHONY: visualage
-endif
-
-ifneq ($(findstring watcom,$(MAKECMDGOALS)),) # Watcom C/C++
-CONFIG_FILE := os2-wat.mk
-SEP := $(BACKSLASH)
-CC := wcc386
-.PHONY: watcom
-endif
-
-ifneq ($(findstring borlandc,$(MAKECMDGOALS)),) # Borland C++ 32 bits
-CONFIG_FILE := os2-bcc.mk
-SEP := $(BACKSLASH)
-CC := bcc32
-.PHONY: borlandc
-endif
-
-ifneq ($(findstring devel,$(MAKECMDGOALS)),)
-CONFIG_FILE := os2-dev.mk
-CC := gcc
-SEP := /
-devel: setup
-endif
-
-CONFIG_RULES := $(TOP)\config\os2\$(CONFIG_FILE)
-
-setup: dos_setup
-
-endif #test OS2_SHELL
-endif #test PLATFORM
+ ifdef OS2_SHELL
+
+ PLATFORM := os2
+ COPY := copy
+ DELETE := del
+
+ CONFIG_FILE := os2-gcc.mk # gcc-emx by default
+ SEP := /
+
+ ifneq ($(findstring visualage,$(MAKECMDGOALS)),) # Visual Age C++
+ CONFIG_FILE := os2-icc.mk
+ SEP := $(BACKSLASH)
+ CC := icc
+ .PHONY: visualage
+ endif
+
+ ifneq ($(findstring watcom,$(MAKECMDGOALS)),) # Watcom C/C++
+ CONFIG_FILE := os2-wat.mk
+ SEP := $(BACKSLASH)
+ CC := wcc386
+ .PHONY: watcom
+ endif
+
+ ifneq ($(findstring borlandc,$(MAKECMDGOALS)),) # Borland C++ 32 bits
+ CONFIG_FILE := os2-bcc.mk
+ SEP := $(BACKSLASH)
+ CC := bcc32
+ .PHONY: borlandc
+ endif
+
+ ifneq ($(findstring devel,$(MAKECMDGOALS)),)
+ CONFIG_FILE := os2-dev.mk
+ CC := gcc
+ SEP := /
+ devel: setup
+ endif
+
+ setup: dos_setup
+
+ endif # test OS2_SHELL
+endif # test PLATFORM
+
+#EOF
diff --git a/config/unix/detect.mk b/config/unix/detect.mk
index 40ed2be..72b3b86 100644
--- a/config/unix/detect.mk
+++ b/config/unix/detect.mk
@@ -1,58 +1,62 @@
#
-# This file is used to detect which Makefile to use based on the
-# value of the CC environment variable.
-#
-# Unix
-#
-#
-# This will _much_ probably change in the future if we're going to use
-# Automake/Autoconf..
+# FreeType 2 configuration file to detect a UNIX host platform.
#
-ifeq ($(PLATFORM),ansi)
-has_inittab := $(strip $(wildcard /etc/inittab))
-ifneq ($(has_inittab),)
-PLATFORM := unix
-COPY := cp
-DELETE := rm -f
-
-# if `devel' is the requested target, use the development Makefile
-#
-ifneq ($(findstring devel,$(MAKECMDGOALS)),)
-CONFIG_RULES := $(BUILD)$(SEP)unix-dev.mk
-devel: setup;
-endif
-
-# test wether we're using gcc ? If it is, we selected the
-# 'unix-gcc.mk' configuration file. Otherwise, the standard
-# 'unix.mk' which simply calls "cc -c" with no extra arguments
-#
-# Feel free to add support for other platform specific compilers
-# in this directory (e.g. solaris.mk + changes here to detect the
-# platform)
+# Copyright 1996-2000 by
+# David Turner, Robert Wilhelm, and Werner Lemberg.
#
-ifeq ($(CC),gcc)
-is_gcc := 1
-else
-ifneq ($(findstring gcc,$(shell $(CC) --version)),)
-is_gcc := 1
-endif
-endif
-
-ifdef is_gcc
-CONFIG_RULES := $(BUILD)$(SEP)unix-gcc.mk
-else
-CONFIG_RULES := $(BUILD)$(SEP)unix.mk
-endif
-
-setup: std_setup
-
-endif # test Unix
-endif # test PLATFORM
-
-
+# This file is part of the FreeType project, and may only be used modified
+# and distributed under the terms of the FreeType project license,
+# LICENSE.TXT. By continuing to use, modify, or distribute this file you
+# indicate that you have read the license and understand and accept it
+# fully.
+# This will probably change a lost in the future if we are going to use
+# Automake/Autoconf...
+ifeq ($(PLATFORM),ansi)
+ has_inittab := $(strip $(wildcard /etc/inittab))
+
+ ifneq ($(has_inittab),)
+
+ PLATFORM := unix
+ COPY := cp
+ DELETE := rm -f
+
+ # Test whether we're using gcc. If so, we select the `unix-gcc.mk'
+ # configuration file. Otherwise, the standard `unix.mk' is used which
+ # simply calls `cc -c' with no extra arguments.
+ #
+ # Feel free to add support for other platform specific compilers in this
+ # directory (e.g. solaris.mk + changes here to detect the platform).
+ #
+ ifeq ($(CC),gcc)
+ is_gcc := 1
+ else
+ ifneq ($(findstring gcc,$(shell $(CC) -v 2>&1)),)
+ is_gcc := 1
+ endif
+ endif
+
+ ifdef is_gcc
+ CONFIG_FILE := unix-gcc.mk
+ else
+ CONFIG_FILE := unix.mk
+ endif
+
+ # If `devel' is the requested target, use the development Makefile.
+ #
+ ifneq ($(findstring devel,$(MAKECMDGOALS)),)
+ CONFIG_FILE := unix-dev.mk
+ devel: setup
+ endif
+
+ setup: std_setup
+
+ endif # test Unix
+endif # test PLATFORM
+
+# EOF
diff --git a/config/unix/unix-gcc.mk b/config/unix/unix-gcc.mk
index 8b17923..eee2eb1 100644
--- a/config/unix/unix-gcc.mk
+++ b/config/unix/unix-gcc.mk
@@ -1,23 +1,20 @@
-#*******************************************************************
-#*
-#* FreeType 2 Configuration rules for a standard Unix compiler
-#*
-#* Copyright 1996-2000 by
-#* David Turner, Robert Wilhelm, and Werner Lemberg.
-#*
-#* This file is part of the FreeType project, and may only be used
-#* modified and distributed under the terms of the FreeType project
-#* license, LICENSE.TXT. By continuing to use, modify, or distribute
-#* this file you indicate that you have read the license and
-#* understand and accept it fully.
-#*
-#* Please read the file "freetype/docs/config.txt" to understand
-#* what this file does..
-#*
-#*******************************************************************
+#
+# FreeType 2 configuration rules for the gcc compiler under UNIX
+#
+
+
+# Copyright 1996-2000 by
+# David Turner, Robert Wilhelm, and Werner Lemberg.
+#
+# This file is part of the FreeType project, and may only be used modified
+# and distributed under the terms of the FreeType project license,
+# LICENSE.TXT. By continuing to use, modify, or distribute this file you
+# indicate that you have read the license and understand and accept it
+# fully.
+
ifndef TOP
-TOP := .
+ TOP := .
endif
DELETE := rm -f
@@ -26,105 +23,110 @@ HOSTSEP := $(SEP)
BUILD := $(TOP)/config/unix
PLATFORM := unix
-# the directory where all object files are placed
-#
-# Note that this is not $(TOP)/obj !!
-# This lets you build the library in your own directory
-# with something like :
+# The directory where all object files are placed.
#
-# set TOP=....../path/to/freetype2/top/dir...
-# mkdir obj
-# make -f %TOP%/Makefile setup [options]
-# make -f %TOP%/Makefile
+# Note that this is not $(TOP)/obj!
+# This lets you build the library in your own directory with something like
#
+# set TOP=.../path/to/freetype2/top/dir...
+# mkdir obj
+# make -f $TOP/Makefile setup [options]
+# make -f $TOP/Makefile
#
OBJ_DIR := obj
-# the directory where all library files are placed
+# The directory where all library files are placed
#
-# by default, this is the same as OBJ_DIR, however, this can be
-# changed to suit particular needs..
+# By default, this is the same as $(OBJ_DIR), however, this can be changed
+# to suit particular needs.
#
LIB_DIR := $(OBJ_DIR)
-# the object file extension, this can be .o, .tco, .obj, etc..
-# depending on the platform
+# The object file extension. This can be .o, .tco, .obj, etc., depending on
+# the platform.
#
O := o
-# the library file extension, this can be .a, .lib, etc..
-# depending on the platform
+# The library file extension. This can be .a, .lib, etc., depending on the
+# platform.
#
A := a
-# The name of the final library file.
-# Note that the DOS-specific Makefile uses a shorter (8.3) name
+# The name of the final library file. Note that the DOS-specific Makefile
+# uses a shorter (8.3) name.
#
LIBRARY := libfreetype
-# path inclusion flag.
-#
-# Some compilers use a different flag than '-I' to specify an
-# additional include path. Examples are "/i=" or "-J", etc...
+# Path inclusion flag. Some compilers use a different flag than `-I' to
+# specify an additional include path. Examples are `/i=' or `-J'.
#
I := -I
-# The link flag used to specify a given library file on link.
-# Note that this is only used to compile the demo programs, not
-# the library itself.
+# C flag used to define a macro before the compilation of a given source
+# object. Usually is `-D' like in `-DDEBUG'.
#
-L := -l
+D := -D
-# C flag used to define a macro before the compilation of a given
-# source object. Usually is '-D' like in "-DDEBUG"
+# The link flag used to specify a given library file on link. Note that
+# this is only used to compile the demo programs, not the library itself.
#
-D := -D
+L := -l
-# Target flag - beware, there is a space after the 'o' !!
-#
+# Target flag.
#
-T := -o
+T := -o # Don't remove this comment line! We need the space after `-o'.
+
# C flags
#
-# These should concern :
+# These should concern: debug output, optimization & warnings.
#
-# - debug output
-# - optimization
-# - warnings
-# - ansi compliance..
+# Use the ANSIFLAGS variable to define the compiler flags used to enfore
+# ANSI compliance.
#
ifndef CFLAGS
-CFLAGS := -c -g -O6 -Wall
+ CFLAGS := -c -g -O6 -Wall
endif
-# ANSIFLAGS : put there the flags used to make your compiler ANSI-compliant
-# nothing (if it already is by default like LCC).
+# ANSIFLAGS: Put there the flags used to make your compiler ANSI-compliant.
#
ANSIFLAGS := -ansi -pedantic
+
ifdef BUILD_FREETYPE
-include $(TOP)/config/freetype.mk
+ # Now include the main sub-makefile. It contains all the rules used to
+ # build the library with the previous variables defined.
+ #
+ include $(TOP)/config/freetype.mk
-clean_freetype: clean_freetype_std
-distclean_freetype: distclean_freetype_std
+ # The cleanup targets.
+ #
+ clean_freetype: clean_freetype_std
+ distclean_freetype: distclean_freetype_std
+
+ # Librarian to use to build the static library
+ #
+ FT_LIBRARIAN := $(AR) -r
-# This final rule is used to link all object files into a single
-# library. It is part of the system-specific sub-Makefile because not
-# all librarians accept a simple syntax like :
-#
-# librarian library_file {list of object files}
-#
-$(FT_LIBRARY): $(OBJECTS_LIST)
- -$(DELETE) $@
- $(AR) -r $@ $(OBJECTS_LIST)
+
+ # This final rule is used to link all object files into a single library.
+ # It is part of the system-specific sub-Makefile because not all
+ # librarians accept a simple syntax like:
+ #
+ # librarian library_file {list of object files}
+ #
+ $(FT_LIBRARY): $(OBJECTS_LIST)
+ -$(DELETE) $@
+ $(FT_LIBRARIAN) $@ $(OBJECTS_LIST)
endif
+
+# EOF
diff --git a/config/win32/detect.mk b/config/win32/detect.mk
index 1ce25f6..ea9583c 100644
--- a/config/win32/detect.mk
+++ b/config/win32/detect.mk
@@ -1,93 +1,93 @@
#
-# This file is used to detect a Win32 host platform.
-#
-# This configuration file to be used depends on the value of the CC
-# environment variable.
-#
+# FreeType 2 configuration file to detect a Win32 host platform.
#
-ifeq ($(PLATFORM),ansi)
-
-###################################################################
-#
-# Detecting Windows NT or Windows 9x
+# Copyright 1996-2000 by
+# David Turner, Robert Wilhelm, and Werner Lemberg.
#
+# This file is part of the FreeType project, and may only be used modified
+# and distributed under the terms of the FreeType project license,
+# LICENSE.TXT. By continuing to use, modify, or distribute this file you
+# indicate that you have read the license and understand and accept it
+# fully.
-# Detecting Windows NT is easy, as the OS variable must be defined
-# and contains "Windows_NT". Untested with Windows 2K, but I guess
-# it should work ...
-#
-ifeq ($(OS),Windows_NT)
-is_windows := 1
-# We test for the COMSPEC environment variable, then run the 'ver'
-# command-line program to see if its output contains the word "Windows"
-#
-# If this is true, we're running a win32 platform (or an emulation)
-#
-else
-ifdef COMSPEC
-is_windows := $(findstring Windows,$(strip $(shell ver)))
-endif
-endif #test NT
+# This configuration file to be used depends on the value of the CC
+# environment variable which is set below according to the compiler name
+# given as a parameter to make.
-####################################################################
-#
-# Rules for Win32
-#
-ifdef is_windows
-
-PLATFORM := win32
-DELETE := del
-COPY := copy
-
-CONFIG_FILE := w32-gcc.mk # gcc Makefile by default - aren't we biased ;-)
-SEP := /
-ifeq ($(CC),cc)
-CC := gcc
-endif
-
-ifneq ($(findstring visualc,$(MAKECMDGOALS)),) # Visual C/C++
-CONFIG_FILE := w32-vcc.mk
-SEP := $(BACKSLASH)
-CC := cl
-visualc: setup
-endif
-
-ifneq ($(findstring watcom,$(MAKECMDGOALS)),) # Watcom C/C++
-CONFIG_FILE := w32-wat.mk
-SEP := $(BACKSLASH)
-CC := wcc386
-watcom: setup
-endif
-
-ifneq ($(findstring visualage,$(MAKECMDGOALS)),) # Visual Age C++
-CONFIG_FILE := w32-icc.mk
-SEP := $(BACKSLASH)
-CC := icc
-visualage: setup
-endif
-
-ifneq ($(findstring lcc,$(MAKECMDGOALS)),) # LCC-Win32
-CONFIG_FILE := w32-lcc.mk
-SEP := $(BACKSLASH)
-CC := lcc
-lcc: setup
-endif
-
-ifneq ($(findstring devel,$(MAKECMDGOALS)),)
-CONFIG_FILE := w32-dev.mk
-CC := gcc
-SEP := /
-devel: setup
-endif
-
-CONFIG_RULES := $(TOP)\config\win32\$(CONFIG_FILE)
-
-setup: dos_setup
-
-endif #test is_windows
-endif #test PLATFORM
+ifeq ($(PLATFORM),ansi)
+ # Detecting Windows NT is easy, as the OS variable must be defined and
+ # contains `Windows_NT'. Untested with Windows 2K, but I guess it should
+ # work...
+ #
+ ifeq ($(OS),Windows_NT)
+ is_windows := 1
+
+ # We test for the COMSPEC environment variable, then run the `ver'
+ # command-line program to see if its output contains the word `Windows'.
+ #
+ # If this is true, we're running a win32 platform (or an emulation).
+ #
+ else
+ ifdef COMSPEC
+ is_windows := $(findstring Windows,$(strip $(shell ver)))
+ endif
+ endif #test NT
+
+ ifdef is_windows
+
+ PLATFORM := win32
+ DELETE := del
+ COPY := copy
+
+ CONFIG_FILE := w32-gcc.mk # gcc Makefile by default
+ SEP := /
+ ifeq ($(CC),cc)
+ CC := gcc
+ endif
+
+ ifneq ($(findstring visualc,$(MAKECMDGOALS)),) # Visual C/C++
+ CONFIG_FILE := w32-vcc.mk
+ SEP := $(BACKSLASH)
+ CC := cl
+ visualc: setup
+ endif
+
+ ifneq ($(findstring watcom,$(MAKECMDGOALS)),) # Watcom C/C++
+ CONFIG_FILE := w32-wat.mk
+ SEP := $(BACKSLASH)
+ CC := wcc386
+ watcom: setup
+ endif
+
+ ifneq ($(findstring visualage,$(MAKECMDGOALS)),) # Visual Age C++
+ CONFIG_FILE := w32-icc.mk
+ SEP := $(BACKSLASH)
+ CC := icc
+ visualage: setup
+ endif
+
+ ifneq ($(findstring lcc,$(MAKECMDGOALS)),) # LCC-Win32
+ CONFIG_FILE := w32-lcc.mk
+ SEP := $(BACKSLASH)
+ CC := lcc
+ lcc: setup
+ endif
+
+ ifneq ($(findstring devel,$(MAKECMDGOALS)),)
+ CONFIG_FILE := w32-dev.mk
+ CC := gcc
+ SEP := /
+ devel: setup
+ endif
+
+ setup: dos_setup
+
+ endif # test is_windows
+endif # test PLATFORM
+
+# EOF
diff --git a/demos/Makefile b/demos/Makefile
index c705ffa..c4aed7a 100644
--- a/demos/Makefile
+++ b/demos/Makefile
@@ -10,11 +10,11 @@ all: exes
#
ifndef TOP
-TOP := ..
+ TOP := ..
endif
ifndef TOP2
-TOP2 := $(TOP)/demos
+ TOP2 := $(TOP)/demos
endif
######################################################################
@@ -23,7 +23,7 @@ endif
# defined by default as $(TOP)/config.mk
#
ifndef CONFIG_MK
-CONFIG_MK := $(TOP)/config.mk
+ CONFIG_MK := $(TOP)/config.mk
endif
####################################################################
@@ -32,228 +32,223 @@ endif
# If not, issue a warning message, then stop there..
#
ifeq ($(wildcard $(CONFIG_MK)),)
-no_config_mk := 1
+ no_config_mk := 1
endif
ifdef no_config_mk
-exes:
- @echo Please compile the library before the demo programs!
-clean distclean:
- @echo "I need \`$(TOP)/config.mk' to do that!"
+ exes:
+ @echo Please compile the library before the demo programs!
+ clean distclean:
+ @echo "I need \`$(TOP)/config.mk' to do that!"
else
-####################################################################
-#
-# Good, now include the `config.mk' in order to know how to build
-# object files from sources, as well as other things (compiler flags)
-#
-include $(CONFIG_MK)
-
-####################################################################
-#
-# Define a few important variables now
-#
-#
-TOP_ := $(TOP)$(SEP)
-TOP2_ := $(TOP2)$(SEP)
-SRC_ := $(TOP)$(SEP)src$(SEP)
-
-BIN_ := bin$(SEP)
-OBJ_ := obj$(SEP)
-
-GRAPH_DIR := graph
-
-ifeq ($(TOP),..)
-SRC_DIR := src
-else
-SRC_DIR := $(TOP2_)src
-endif
-
-SRC_DIR_ := $(SRC_DIR)$(SEP)
-
-FT_INCLUDES := $(BUILD) $(TOP_)config $(TOP_)include $(SRC_)base $(SRC_DIR)
-TT_INCLUDES := $(SRC_)shared $(SRC_)truetype
-T1_INCLUDES := $(SRC_)shared $(SRC_)type1
-
-COMPILE = $(CC) $(CFLAGS) $(INCLUDES:%=$I%)
-LINK := $(CC)
-FTLIB := $(TOP_)$(LIB_DIR)$(SEP)$(LIBRARY).$A
-
-# the default commands used to link the executables. These can
-# be re-defined for platform-specific stuff..
-#
-LINK = $(CC) $T$@ $< $(FTLIB) $(EFENCE)
-COMMON_LINK = $(LINK) $(COMMON_OBJ)
-GRAPH_LINK = $(COMMON_LINK) $(GRAPH_LIB)
-
-
-.PHONY: exes clean distclean
-
-###################################################################
-#
-# Include the rules needed to compile the graphics sub-system.
-# This will also select which graphics driver to compile to the
-# sub-system..
-#
-include $(GRAPH_DIR)/rules.mk
-
-####################################################################
-#
-# Detect DOS-like platforms, currently DOS, Win 3.1, Win32 & OS/2
-#
-#
-ifneq ($(findstring $(PLATFORM),os2 win16 win32 dos),)
-DOSLIKE := 1
-endif
-
-
-###################################################################
-#
-# Clean-up rules. Because the `del' command on DOS-like platforms
-# cannot take a long list of arguments, we simply erase the directory
-# contents..
-#
+ ####################################################################
+ #
+ # Good, now include the `config.mk' in order to know how to build
+ # object files from sources, as well as other things (compiler flags)
+ #
+ include $(CONFIG_MK)
+
+
+ ####################################################################
+ #
+ # Define a few important variables now
+ #
+ TOP_ := $(TOP)$(SEP)
+ TOP2_ := $(TOP2)$(SEP)
+ SRC_ := $(TOP)$(SEP)src$(SEP)
+
+ BIN_ := bin$(SEP)
+ OBJ_ := obj$(SEP)
+
+ GRAPH_DIR := graph
+
+ ifeq ($(TOP),..)
+ SRC_DIR := src
+ else
+ SRC_DIR := $(TOP2_)src
+ endif
+
+ SRC_DIR_ := $(SRC_DIR)$(SEP)
+
+ FT_INCLUDES := $(BUILD) $(TOP_)config $(TOP_)include $(SRC_)base $(SRC_DIR)
+ TT_INCLUDES := $(SRC_)shared $(SRC_)truetype
+ T1_INCLUDES := $(SRC_)shared $(SRC_)type1
+
+ COMPILE = $(CC) $(CFLAGS) $(INCLUDES:%=$I%)
+ LINK := $(CC)
+ FTLIB := $(TOP_)$(LIB_DIR)$(SEP)$(LIBRARY).$A
+
+ # the default commands used to link the executables. These can
+ # be re-defined for platform-specific stuff..
+ #
+ LINK = $(CC) $T$@ $< $(FTLIB) $(EFENCE)
+ COMMON_LINK = $(LINK) $(COMMON_OBJ)
+ GRAPH_LINK = $(COMMON_LINK) $(GRAPH_LIB)
+
+ .PHONY: exes clean distclean
+
+ ###################################################################
+ #
+ # Include the rules needed to compile the graphics sub-system.
+ # This will also select which graphics driver to compile to the
+ # sub-system..
+ #
+ include $(GRAPH_DIR)/rules.mk
-ifdef DOSLIKE
-clean_demo:
- -del obj\*.$O 2> nul
- -del $(subst /,\,$(TOP2))\src\*.bak 2> nul
+ ####################################################################
+ #
+ # Detect DOS-like platforms, currently DOS, Win 3.1, Win32 & OS/2
+ #
+ ifneq ($(findstring $(PLATFORM),os2 win16 win32 dos),)
+ DOSLIKE := 1
+ endif
-distclean_demo: clean_demo
- -del obj\*.lib 2> nul
- -del bin\*.exe 2> nul
-else
-clean_demo:
- -$(DELETE) $(OBJ_)*.$O
- -$(DELETE) $(SRC_)*.bak graph$(SEP)*.bak
- -$(DELETE) $(SRC_)*~ graph$(SEP)*~
+ ###################################################################
+ #
+ # Clean-up rules. Because the `del' command on DOS-like platforms
+ # cannot take a long list of arguments, we simply erase the directory
+ # contents.
+ #
+ ifdef DOSLIKE
+
+ clean_demo:
+ -del obj\*.$O 2> nul
+ -del $(subst /,\,$(TOP2))\src\*.bak 2> nul
+
+ distclean_demo: clean_demo
+ -del obj\*.lib 2> nul
+ -del bin\*.exe 2> nul
+
+ else
-distclean_demo: clean_demo
- -$(DELETE) $(EXES:%=$(BIN_)%$E)
- -$(DELETE) $(GRAPH_LIB)
-endif
+ clean_demo:
+ -$(DELETE) $(OBJ_)*.$O
+ -$(DELETE) $(SRC_)*.bak graph$(SEP)*.bak
+ -$(DELETE) $(SRC_)*~ graph$(SEP)*~
+
+ distclean_demo: clean_demo
+ -$(DELETE) $(EXES:%=$(BIN_)%$E)
+ -$(DELETE) $(GRAPH_LIB)
+
+ endif
+
+ clean: clean_demo
+ distclean: distclean_demo
+
+ ####################################################################
+ #
+ # Compute the executable suffix to use, and put it in `E'.
+ # It is ".exe" on DOS-ish platforms, and nothing otherwise.
+ #
+ ifdef DOSLIKE
+ E := .exe
+ else
+ E :=
+ endif
-clean: clean_demo
-distclean: distclean_demo
+ ###################################################################
+ #
+ # The list of demonstration programs to build.
+ #
+ EXES := ftlint ftview fttimer
-####################################################################
-#
-# Compute the executable suffix to use, and put it in `E'.
-# It is ".exe" on DOS-ish platforms, and nothing otherwise
-#
-ifdef DOSLIKE
-E := .exe
-else
-E :=
-endif
+ ifneq ($(findstring $(PLATFORM),os2 unix),)
+ EXES += ttdebug
+ endif
-###################################################################
-#
-# The list of demonstration programs to build.
-#
-EXES := ftlint ftview fttimer
+ exes: $(EXES:%=$(BIN_)%$E)
-ifneq ($(findstring $(PLATFORM),os2 unix),)
-EXES += ttdebug
-endif
-
-exes: $(EXES:%=$(BIN_)%$E)
+ INCLUDES := $(FT_INCLUDES)
-INCLUDES := $(FT_INCLUDES)
+ ####################################################################
+ #
+ # Rules for compiling object files for text-only demos
+ #
+ COMMON_OBJ := $(OBJ_)common.$O
+ $(COMMON_OBJ): $(SRC_DIR_)common.c
+ ifdef DOSLIKE
+ $(COMPILE) $T$@ $< $DEXPAND_WILDCARDS
+ else
+ $(COMPILE) $T$@ $<
+ endif
-####################################################################
-#
-# Rules for compiling object files for text-only demos
-#
-COMMON_OBJ := $(OBJ_)common.$O
-$(COMMON_OBJ): $(SRC_DIR_)common.c
-ifdef DOSLIKE
- $(COMPILE) $T$@ $< $DEXPAND_WILDCARDS
-else
- $(COMPILE) $T$@ $<
-endif
+ $(OBJ_)%.$O: $(SRC_DIR_)%.c $(FTLIB)
+ $(COMPILE) $T$@ $<
+ $(OBJ_)ftlint.$O: $(SRC_DIR_)ftlint.c
+ $(COMPILE) $T$@ $<
-$(OBJ_)%.$O: $(SRC_DIR_)%.c $(FTLIB)
- $(COMPILE) $T$@ $<
+ $(OBJ_)fttry.$O: $(SRC_DIR_)fttry.c
+ $(COMPILE) $T$@ $<
-$(OBJ_)ftlint.$O: $(SRC_DIR_)ftlint.c
- $(COMPILE) $T$@ $<
-$(OBJ_)fttry.$O: $(SRC_DIR_)fttry.c
- $(COMPILE) $T$@ $<
+ $(OBJ_)ftview.$O: $(SRC_DIR_)ftview.c $(GRAPH_LIB)
+ $(COMPILE) $(GRAPH_INCLUDES:%=$I%) $T$@ $<
+ $(OBJ_)fttimer.$O: $(SRC_DIR_)fttimer.c $(GRAPH_LIB)
+ $(COMPILE) $(GRAPH_INCLUDES:%=$I%) $T$@ $<
-$(OBJ_)ftview.$O: $(SRC_DIR_)ftview.c $(GRAPH_LIB)
- $(COMPILE) $(GRAPH_INCLUDES:%=$I%) $T$@ $<
+# $(OBJ_)ftsbit.$O: $(SRC_DIR)/ftsbit.c $(GRAPH_LIB)
+# $(COMPILE) $T$@ $<
-$(OBJ_)fttimer.$O: $(SRC_DIR_)fttimer.c $(GRAPH_LIB)
- $(COMPILE) $(GRAPH_INCLUDES:%=$I%) $T$@ $<
-#$(OBJ_)ftsbit.$O: $(SRC_DIR)/ftsbit.c $(GRAPH_LIB)
-# $(COMPILE) $T$@ $<
+ ####################################################################
+ #
+ # Special rule to compile the `t1dump' program as it includes
+ # the Type1 source path
+ #
+ $(OBJ_)t1dump.$O: $(SRC_DIR)/t1dump.c
+ $(COMPILE) $(T1_INCLUDES:%=$I%) $T$@ $<
-####################################################################
-#
-# Special rule to compile the `t1dump' program as it includes
-# the Type1 source path
-#
-$(OBJ_)t1dump.$O: $(SRC_DIR)/t1dump.c
- $(COMPILE) $(T1_INCLUDES:%=$I%) $T$@ $<
-
-
-####################################################################
-#
-# Special rule to compile the `ttdebug' program as it includes
-# the TrueType source path and needs extra flags for correct keyboard
-# handling on Unix
-#
-
-# POSIX TERMIOS: Do not define if you use OLD U*ix like 4.2BSD.
-#
-# detect a Unix system
-ifeq ($(PLATFORM),unix)
-EXTRAFLAGS = $DUNIX $DHAVE_POSIX_TERMIOS
-endif
-
-$(OBJ_)ttdebug.$O: $(SRC_DIR)/ttdebug.c
- $(COMPILE) $(TT_INCLUDES:%=$I%) $T$@ $< $(EXTRAFLAGS)
-
-
-####################################################################
-#
-# Rules used to link the executables. Note that they could be
-# over-ridden by system-specific things..
-#
+ ####################################################################
+ #
+ # Special rule to compile the `ttdebug' program as it includes
+ # the TrueType source path and needs extra flags for correct keyboard
+ # handling on Unix
-$(BIN_)ftlint$E: $(OBJ_)ftlint.$O $(FTLIB) $(COMMON_OBJ)
- $(COMMON_LINK)
+ # POSIX TERMIOS: Do not define if you use OLD U*ix like 4.2BSD.
+ #
+ # detect a Unix system
+ ifeq ($(PLATFORM),unix)
+ EXTRAFLAGS = $DUNIX $DHAVE_POSIX_TERMIOS
+ endif
+ $(OBJ_)ttdebug.$O: $(SRC_DIR)/ttdebug.c
+ $(COMPILE) $(TT_INCLUDES:%=$I%) $T$@ $< $(EXTRAFLAGS)
-$(BIN_)fttry$E: $(OBJ_)fttry.$O $(FTLIB)
- $(LINK)
+ ####################################################################
+ #
+ # Rules used to link the executables. Note that they could be
+ # over-ridden by system-specific things..
+ #
+ $(BIN_)ftlint$E: $(OBJ_)ftlint.$O $(FTLIB) $(COMMON_OBJ)
+ $(COMMON_LINK)
-$(BIN_)ftsbit$E: $(OBJ_)ftsbit.$O $(FTLIB)
- $(LINK)
+ $(BIN_)fttry$E: $(OBJ_)fttry.$O $(FTLIB)
+ $(LINK)
+ $(BIN_)ftsbit$E: $(OBJ_)ftsbit.$O $(FTLIB)
+ $(LINK)
-$(BIN_)t1dump$E: $(OBJ_)t1dump.$O $(FTLIB)
- $(LINK)
+ $(BIN_)t1dump$E: $(OBJ_)t1dump.$O $(FTLIB)
+ $(LINK)
-$(BIN_)ttdebug$E: $(OBJ_)ttdebug.$O $(FTLIB)
- $(LINK)
+ $(BIN_)ttdebug$E: $(OBJ_)ttdebug.$O $(FTLIB)
+ $(LINK)
-$(BIN_)ftview$E: $(OBJ_)ftview.$O $(FTLIB) $(GRAPH_LIB) $(COMMON_OBJ)
- $(GRAPH_LINK)
+ $(BIN_)ftview$E: $(OBJ_)ftview.$O $(FTLIB) $(GRAPH_LIB) $(COMMON_OBJ)
+ $(GRAPH_LINK)
-$(BIN_)fttimer$E: $(OBJ_)fttimer.$O $(FTLIB) $(GRAPH_LIB) $(COMMON_OBJ)
- $(GRAPH_LINK)
+ $(BIN_)fttimer$E: $(OBJ_)fttimer.$O $(FTLIB) $(GRAPH_LIB) $(COMMON_OBJ)
+ $(GRAPH_LINK)
endif
+# EOF
diff --git a/demos/graph/x11/rules.mk b/demos/graph/x11/rules.mk
index ada27c7..a1641fd 100644
--- a/demos/graph/x11/rules.mk
+++ b/demos/graph/x11/rules.mk
@@ -13,23 +13,21 @@
# the current path.
#
ifneq ($(findstring X11R6$(SEP)bin,$(PATH)),)
-xversion := X11R6
+ xversion := X11R6
else
-
-ifneq ($(findstring X11R5$(SEP)bin,$(PATH)),)
-xversion := X11R5
-else
-
-ifneq ($(findstring X11$(SEP)bin,$(PATH)),)
-xversion := X11
-endif
-endif
+ ifneq ($(findstring X11R5$(SEP)bin,$(PATH)),)
+ xversion := X11R5
+ else
+ ifneq ($(findstring X11$(SEP)bin,$(PATH)),)
+ xversion := X11
+ endif
+ endif
endif
ifdef xversion
-X11_PATH := $(subst ;, ,$(PATH)) $(subst :, ,$(PATH))
-X11_PATH := $(filter %$(xversion)$(SEP)bin,$(X11_PATH))
-X11_PATH := $(X11_PATH:%$(SEP)bin=%)
+ X11_PATH := $(subst ;, ,$(PATH)) $(subst :, ,$(PATH))
+ X11_PATH := $(filter %$(xversion)$(SEP)bin,$(X11_PATH))
+ X11_PATH := $(X11_PATH:%$(SEP)bin=%)
endif
##########################################################################
@@ -41,41 +39,38 @@ endif
#
ifneq ($(X11_PATH),)
-X11_INCLUDE := $(X11_PATH:%=%$(SEP)include)
-X11_LIB := $(X11_PATH:%=%$(SEP)lib)
-
-# the GRAPH_LINK variable is expanded each time an executable is linked against
-# the graphics library..
-#
-GRAPH_LINK += -L$(X11_LIB) -lX11
+ X11_INCLUDE := $(X11_PATH:%=%$(SEP)include)
+ X11_LIB := $(X11_PATH:%=%$(SEP)lib)
-# Solaris needs a -lsocket in GRAPH_LINK ..
-#
-UNAME := $(shell uname)
-ifneq ($(findstring $(UNAME),SunOS Solaris),)
-GRAPH_LINK += -lsocket
-endif
+ # the GRAPH_LINK variable is expanded each time an executable is linked
+ # against the graphics library.
+ #
+ GRAPH_LINK += $(X11_LIB:%=-L%) -lX11
+ # Solaris needs a -lsocket in GRAPH_LINK ..
+ #
+ UNAME := $(shell uname)
+ ifneq ($(findstring $(UNAME),SunOS Solaris),)
+ GRAPH_LINK += -lsocket
+ endif
-# add the X11 driver object file to the graphics library
-#
-GRAPH_OBJS += $(OBJ_)grx11.$O
+ # add the X11 driver object file to the graphics library
+ #
+ GRAPH_OBJS += $(OBJ_)grx11.$O
-GR_X11 := $(GRAPH_)x11
-GR_X11_ := $(GR_X11)$(SEP)
+ GR_X11 := $(GRAPH_)x11
+ GR_X11_ := $(GR_X11)$(SEP)
-DEVICES += X11
-DEVICE_INCLUDES += $(GR_X11)
+ DEVICES += X11
+ DEVICE_INCLUDES += $(GR_X11)
-# the rule used to compile the X11 driver
-#
-$(OBJ_)grx11.$O: $(GR_X11_)grx11.c $(GR_X11_)grx11.h
- $(CC) $(CFLAGS) $(GRAPH_INCLUDES:%=$I%) $I$(GR_X11) \
- $(X11_INCLUDE:%=$I%) $T$@ $<
+ # the rule used to compile the X11 driver
+ #
+ $(OBJ_)grx11.$O: $(GR_X11_)grx11.c $(GR_X11_)grx11.h
+ $(CC) $(CFLAGS) $(GRAPH_INCLUDES:%=$I%) $I$(GR_X11) \
+ $(X11_INCLUDE:%=$I%) $T$@ $<
endif
-
-
-
+# EOF
diff --git a/src/base/ftstream.h b/src/base/ftstream.h
index 58cafaa..7f183cd 100644
--- a/src/base/ftstream.h
+++ b/src/base/ftstream.h
@@ -44,7 +44,7 @@ typedef enum FT_Frame_Op_
ft_frame_uoff3_be = FT_MAKE_FRAME_OP( FT_FRAME_OP_OFF3, 0, 0 ),
ft_frame_uoff3_le = FT_MAKE_FRAME_OP( FT_FRAME_OP_OFF3, 0, 1 ),
ft_frame_off3_be = FT_MAKE_FRAME_OP( FT_FRAME_OP_OFF3, 1, 0 ),
- ft_frame_off3_le = FT_MAKE_FRAME_OP( FT_FRAME_OP_OFF3, 1, 1 ),
+ ft_frame_off3_le = FT_MAKE_FRAME_OP( FT_FRAME_OP_OFF3, 1, 1 )
} FT_Frame_Op;
diff --git a/src/base/rules.mk b/src/base/rules.mk
index 9d42f30..580cb78 100644
--- a/src/base/rules.mk
+++ b/src/base/rules.mk
@@ -1,98 +1,61 @@
-#****************************************************************************
-#* *
-#* Base layer Makefile *
-#* *
-#* Copyright 1996-1999 by *
-#* David Turner, Robert Wilhelm, and Werner Lemberg. *
-#* *
-#* This file is part of the FreeType project, and may only be used *
-#* modified and distributed under the terms of the FreeType project *
-#* license, LICENSE.TXT. By continuing to use, modify, or distribute *
-#* this file you indicate that you have read the license and *
-#* understand and accept it fully. *
-#* *
-#****************************************************************************
-
-
-#****************************************************************************
-#* *
-#* IMPORTANT NOTE: This Makefile is intended for GNU Make! *
-#* If you provide Makefiles for other make utilities, *
-#* please place them in `freetype/lib/arch/<system>.' *
-#* *
-#* *
-#* This file is to be included by the root FreeType sub-Makefile, usually *
-#* named `freetype/lib/Makefile.lib.' Here is the list of the variables *
-#* that must be defined to use it: *
-#* *
-#* BASE_DIR: The location of the base layer's directory. This is *
-#* usually `freetype/lib/base.' *
-#* *
-#* ARCH_DIR: The location of the architecture-dependent directory. *
-#* This is usually `freetype/lib/arch/<system>.' *
-#* *
-#* OBJ_DIR: The location where the compiled object(s) file will be *
-#* placed. *
-#* *
-#* FT_CFLAGS: A set of flags used for compilation of object files. *
-#* This contains at least the include paths of the `arch' *
-#* and `base' directories + optimization + warnings + *
-#* ANSI compliance. *
-#* *
-#* FT_IFLAGS: The flag used to specify an include path on the compiler *
-#* command line. For example, with GCC, this is `-I', while *
-#* some other compilers use `/i=' or `-J', etc. *
-#* *
-#* FT_OBJ: The suffix of an object file for the platform. Can be *
-#* `o', `obj', `coff', `tco', etc. *
-#* *
-#* FT_CC: The C compiler to use. *
-#* *
-#* *
-#* It sets the following variables, which are used by the parent Makefile *
-#* after the call: *
-#* *
-#* BASE_H: The list of base layer header files on which the rest *
-#* of the library (i.e., drivers) rely. *
-#* *
-#* BASE_OBJ_S: The single-object base layer. *
-#* BASE_OBJ_M: A list of all objects for a multiple-objects build. *
-#* BASE_EXT_OBJ: A list of base layer extensions, i.e., components *
-#* found in `freetype/lib/base' which are not compiled *
-#* within the base layer proper. *
-#* *
-#****************************************************************************
+#
+# FreeType 2 base layer configuration rules
+#
+
+
+# Copyright 1996-2000 by
+# David Turner, Robert Wilhelm, and Werner Lemberg.
+#
+# This file is part of the FreeType project, and may only be used modified
+# and distributed under the terms of the FreeType project license,
+# LICENSE.TXT. By continuing to use, modify, or distribute this file you
+# indicate that you have read the license and understand and accept it
+# fully.
+
+
+# It sets the following variables, which are used by the master Makefile
+# after the call:
+#
+# BASE_H: The list of base layer header files on which the rest
+# of the library (i.e., drivers) rely.
+#
+# BASE_OBJ_S: The single-object base layer.
+# BASE_OBJ_M: A list of all objects for a multiple-objects build.
+# BASE_EXT_OBJ: A list of base layer extensions, i.e., components found
+# in `freetype/lib/base' which are not compiled within the
+# base layer proper.
INCLUDES += $(SRC_)base
# Base layer sources
#
-BASE_SRC := $(BASE_)ftstream.c \
- $(BASE_)ftcalc.c \
- $(BASE_)ftobjs.c \
+BASE_SRC := $(BASE_)ftcalc.c \
$(BASE_)ftextend.c \
- $(BASE_)ftlist.c
+ $(BASE_)ftlist.c \
+ $(BASE_)ftobjs.c \
+ $(BASE_)ftstream.c
# Base layer headers
#
BASE_H := $(BASE_)ftcalc.h \
- $(BASE_)ftobjs.h \
+ $(BASE_)ftdebug.h \
$(BASE_)ftdriver.h \
$(BASE_)ftextend.h \
- $(BASE_)ftlist.h
+ $(BASE_)ftlist.h \
+ $(BASE_)ftobjs.h \
+ $(BASE_)ftstream.h
# Base layer `extensions' sources
#
# An extension is added to the library file (.a or .lib) as a separate
-# object. It will then be linked to the final executable only if one of
-# its symbols is used by the application.
+# object. It will then be linked to the final executable only if one of its
+# symbols is used by the application.
#
BASE_EXT_SRC := $(BASE_)ftbbox.c \
$(BASE_)ftraster.c \
$(BASE_)ftoutln.c
-
# Base layer extensions headers
#
BASE_EXT_H := $(BASE_EXT_SRC:%c=%h)
@@ -100,11 +63,11 @@ BASE_EXT_H := $(BASE_EXT_SRC:%c=%h)
# Base layer object(s)
#
-# BASE_OBJ_M is used during `multi' builds (each base source file
-# compiles to a single object file).
+# BASE_OBJ_M is used during `multi' builds (each base source file compiles
+# to a single object file).
#
-# BASE_OBJ_S is used during `single' builds (the whole base layer
-# is compiled as a single object file using ftbase.c).
+# BASE_OBJ_S is used during `single' builds (the whole base layer is
+# compiled as a single object file using ftbase.c).
#
BASE_OBJ_M := $(BASE_SRC:$(BASE_)%.c=$(OBJ_)%.$O)
BASE_OBJ_S := $(OBJ_)ftbase.$O
@@ -132,5 +95,4 @@ $(OBJ_)ft%.$O: $(BASE_)ft%.c $(PUBLIC_H) $(BASE_H)
$(BASE_OBJ_S): $(PUBLIC_H) $(BASE_H) $(BASE_SRC_S) $(BASE_SRC)
$(FT_COMPILE) $T$@ $(BASE_SRC_S)
-
-# END
+# EOF
diff --git a/src/psnames/module.mk b/src/psnames/module.mk
index 37dd74c..cb23e8e 100644
--- a/src/psnames/module.mk
+++ b/src/psnames/module.mk
@@ -2,5 +2,6 @@ make_module_list: add_psnames_driver
add_psnames_driver:
$(OPEN_DRIVER)psnames_driver_interface$(CLOSE_DRIVER)
- $(ECHO_DRIVER)psnames $(ECHO_DRIVER_DESC) Postscript & Unicode Glyph name handling $(ECHO_DRIVER_DONE)
+ $(ECHO_DRIVER)psnames $(ECHO_DRIVER_DESC)Postscript & Unicode Glyph name handling$(ECHO_DRIVER_DONE)
+# EOF
diff --git a/src/psnames/rules.mk b/src/psnames/rules.mk
index 027c7e0..25a1f19 100644
--- a/src/psnames/rules.mk
+++ b/src/psnames/rules.mk
@@ -1,89 +1,90 @@
-#****************************************************************************
-#* *
-#* PSNames driver Makefile *
-#* *
-#* Copyright 1996-2000 by *
-#* David Turner, Robert Wilhelm, and Werner Lemberg. *
-#* *
-#* This file is part of the FreeType project, and may only be used *
-#* modified and distributed under the terms of the FreeType project *
-#* license, LICENSE.TXT. By continuing to use, modify, or distribute *
-#* this file you indicate that you have read the license and *
-#* understand and accept it fully. *
-#* *
-#****************************************************************************
+#
+# FreeType 2 PSNames driver configuration rules
+#
-ifndef PSNAMES_INCLUDE
-PSNAMES_INCLUDED := 1
+# Copyright 1996-2000 by
+# David Turner, Robert Wilhelm, and Werner Lemberg.
+#
+# This file is part of the FreeType project, and may only be used modified
+# and distributed under the terms of the FreeType project license,
+# LICENSE.TXT. By continuing to use, modify, or distribute this file you
+# indicate that you have read the license and understand and accept it
+# fully.
-include $(SRC_)shared/rules.mk
-# PSNAMES driver directory
-#
-PSNAMES_DIR := $(SRC_)psnames
-PSNAMES_DIR_ := $(PSNAMES_DIR)$(SEP)
+ifndef PSNAMES_INCLUDE
+ PSNAMES_INCLUDED := 1
-# additional include flags used when compiling the driver
-#
-PSNAMES_INCLUDE := $(SHARED) $(PSNAMES_DIR)
+ include $(SRC_)shared/rules.mk
+ # PSNAMES driver directory
+ #
+ PSNAMES_DIR := $(SRC_)psnames
+ PSNAMES_DIR_ := $(PSNAMES_DIR)$(SEP)
-# compilation flags for the driver
-#
-PSNAMES_CFLAGS := $(PSNAMES_INCLUDE:%=$I%)
-PSNAMES_COMPILE := $(FT_COMPILE) $(PSNAMES_CFLAGS)
+ # additional include flags used when compiling the driver
+ #
+ PSNAMES_INCLUDE := $(SHARED) $(PSNAMES_DIR)
-# TrueType driver sources (i.e., C files)
-#
-PSNAMES_DRV_SRC := $(PSNAMES_DIR_)psdriver.c
+ # compilation flags for the driver
+ #
+ PSNAMES_CFLAGS := $(PSNAMES_INCLUDE:%=$I%)
+ PSNAMES_COMPILE := $(FT_COMPILE) $(PSNAMES_CFLAGS)
-# TrueType driver headers
-#
-PSNAMES_DRV_H := $(SHARED_H) \
- $(PSNAMES_DIR_)psdriver.h \
- $(PSNAMES_DIR_)pstables.h
+ # driver sources (i.e., C files)
+ #
+ PSNAMES_DRV_SRC := $(PSNAMES_DIR_)psdriver.c
-# driver object(s)
-#
-# PSNAMES_DRV_OBJ_M is used during `debug' builds
-# PSNAMES_DRV_OBJ_S is used during `release' builds
-#
-PSNAMES_DRV_OBJ_M := $(PSNAMES_DRV_SRC:$(PSNAMES_DIR_)%.c=$(OBJ_)%.$O)
-PSNAMES_DRV_OBJ_S := $(OBJ_)psnames.$O
+ # driver headers
+ #
+ PSNAMES_DRV_H := $(SHARED_H) \
+ $(PSNAMES_DIR_)psdriver.h \
+ $(PSNAMES_DIR_)pstables.h
-# driver root source file(s)
-#
-PSNAMES_DRV_SRC_M := $(PSNAMES_DRV_SRC)
-PSNAMES_DRV_SRC_S := $(PSNAMES_DIR_)psdriver.c
+ # driver object(s)
+ #
+ # PSNAMES_DRV_OBJ_M is used during `debug' builds
+ # PSNAMES_DRV_OBJ_S is used during `release' builds
+ #
+ PSNAMES_DRV_OBJ_M := $(PSNAMES_DRV_SRC:$(PSNAMES_DIR_)%.c=$(OBJ_)%.$O)
+ PSNAMES_DRV_OBJ_S := $(OBJ_)psnames.$O
-# driver - single object
-#
-# the driver is recompiled if any of the header or source files is changed
-# as well as any of the shared source files found in `shared/sfnt'
-#
-$(PSNAMES_DRV_OBJ_S): $(BASE_H) $(SHARED_H) $(PSNAMES_DRV_H) $(PSNAMES_DRV_SRC) $(PSNAMES_DRV_SRC_S)
- $(PSNAMES_COMPILE) $T$@ $(PSNAMES_DRV_SRC_S)
+ # driver source file(s)
+ #
+ PSNAMES_DRV_SRC_M := $(PSNAMES_DRV_SRC)
+ PSNAMES_DRV_SRC_S := $(PSNAMES_DIR_)psdriver.c
+ # driver - single object
+ #
+ # the driver is recompiled if any of the header or source files is
+ # changed as well as any of the shared source files found in
+ # `shared'
+ #
+ $(PSNAMES_DRV_OBJ_S): $(BASE_H) $(SHARED_H) $(PSNAMES_DRV_H) \
+ $(PSNAMES_DRV_SRC) $(PSNAMES_DRV_SRC_S)
+ $(PSNAMES_COMPILE) $T$@ $(PSNAMES_DRV_SRC_S)
-# driver - multiple objects
-#
-# All objects are recompiled if any of the header files is changed
-#
-$(OBJ_)ps%.$O: $(PSNAMES_DIR_)ps%.c $(BASE_H) $(SHARED_H) $(PSNAMES_DRV_H)
- $(PSNAMES_COMPILE) $T$@ $<
+ # driver - multiple objects
+ #
+ # All objects are recompiled if any of the header files is changed.
+ #
+ $(OBJ_)ps%.$O: $(PSNAMES_DIR_)ps%.c $(BASE_H) $(SHARED_H) $(PSNAMES_DRV_H)
+ $(PSNAMES_COMPILE) $T$@ $<
-# update main driver object lists
-#
-DRV_OBJS_S += $(PSNAMES_DRV_OBJ_S)
-DRV_OBJS_M += $(PSNAMES_DRV_OBJ_M)
+
+ # update main driver object lists
+ #
+ DRV_OBJS_S += $(PSNAMES_DRV_OBJ_S)
+ DRV_OBJS_M += $(PSNAMES_DRV_OBJ_M)
endif
-# END
+
+# EOF
diff --git a/src/sfnt/module.mk b/src/sfnt/module.mk
index 66ae7d2..f98860e 100644
--- a/src/sfnt/module.mk
+++ b/src/sfnt/module.mk
@@ -2,5 +2,6 @@ make_module_list: add_sfnt_driver
add_sfnt_driver:
$(OPEN_DRIVER)sfnt_driver_interface$(CLOSE_DRIVER)
- $(ECHO_DRIVER)sfnt $(ECHO_DRIVER_DESC) pseudo-driver for TrueType & OpenType formats $(ECHO_DRIVER_DONE)
+ $(ECHO_DRIVER)sfnt $(ECHO_DRIVER_DESC)pseudo-driver for TrueType & OpenType formats$(ECHO_DRIVER_DONE)
+# EOF
diff --git a/src/sfnt/rules.mk b/src/sfnt/rules.mk
index ea08668..0880dc2 100644
--- a/src/sfnt/rules.mk
+++ b/src/sfnt/rules.mk
@@ -1,165 +1,100 @@
-#****************************************************************************
-#* *
-#* SFNT driver Makefile *
-#* *
-#* Copyright 1996-1999 by *
-#* David Turner, Robert Wilhelm, and Werner Lemberg. *
-#* *
-#* This file is part of the FreeType project, and may only be used *
-#* modified and distributed under the terms of the FreeType project *
-#* license, LICENSE.TXT. By continuing to use, modify, or distribute *
-#* this file you indicate that you have read the license and *
-#* understand and accept it fully. *
-#* *
-#****************************************************************************
-
-
-#****************************************************************************
-#* *
-#* IMPORTANT NOTE: This Makefile is intended for GNU Make! *
-#* If you provide Makefiles for other make utilities, *
-#* please place them in `freetype/lib/arch/<system>'. *
-#* *
-#* *
-#* This file is to be included by the FreeType Makefile.lib, located in *
-#* the `freetype/lib' directory. Here is the list of the variables that *
-#* must be defined to use it: *
-#* *
-#* *
-#* BASE_DIR: The location of the base layer's directory. This is *
-#* usually `freetype/lib/base'. *
-#* *
-#* ARCH_DIR: The location of the architecture-dependent directory. *
-#* This is usually `freetype/lib/arch/<system>'. *
-#* *
-#* DRIVERS_DIR: The location of the font driver sub-dirs, usually *
-#* `freetype/lib/drivers'. *
-#* *
-#* OBJ_DIR: The location where the compiled object(s) file will be *
-#* placed. *
-#* *
-#* BASE_H: A list of pathnames to the base layer's header files on *
-#* which the driver depends. *
-#* *
-#* FT_CFLAGS: A set of flags used for compilation of object files. *
-#* This contains at least the include paths of the arch *
-#* and base directories + optimization + warnings + ANSI *
-#* compliance. *
-#* *
-#* FT_IFLAG: The flag used to specify an include path on the *
-#* compiler command line. For example, with GCC, this is *
-#* `-I', while some other compilers use `/i=' or `-J', *
-#* etc. *
-#* *
-#* FT_OBJ: The suffix of an object file for the platform; can be *
-#* `o', `obj', `coff', `tco', etc. depending on the *
-#* platform. *
-#* *
-#* *
-#* It also updates the following variables defined and used in the main *
-#* Makefile: *
-#* *
-#* DRV_OBJ_S: The list of driver object files in *
-#* single-object mode. *
-#* *
-#* DRV_OBJ_M: The list of driver object files in *
-#* multiple-objects mode. *
-#* *
-#* FTINIT_DRIVER_PATHS: The list of include paths used to compile the *
-#* `ftinit' component which registers all font *
-#* drivers in the FT_Init_FreeType() function. *
-#* *
-#* FTINIT_DRIVER_H: The list of header dependencies used to *
-#* compile the `ftinit' component. *
-#* *
-#* FTINIT_DRIVER_MACROS: The list of macros to be defined when *
-#* compiling the `ftinit' component. *
-#* *
-#* `Single-object compilation' means that each font driver is compiled *
-#* into a single object file. This is useful to get rid of all *
-#* driver-specific entries. *
-#* *
-#****************************************************************************
+#
+# FreeType 2 DFNT driver configuration rules
+#
+
+
+# Copyright 1996-2000 by
+# David Turner, Robert Wilhelm, and Werner Lemberg.
+#
+# This file is part of the FreeType project, and may only be used modified
+# and distributed under the terms of the FreeType project license,
+# LICENSE.TXT. By continuing to use, modify, or distribute this file you
+# indicate that you have read the license and understand and accept it
+# fully.
+
ifndef SFNT_INCLUDE
-SFNT_INCLUDED := 1
+ SFNT_INCLUDED := 1
-include $(SRC_)shared/rules.mk
+ include $(SRC_)shared/rules.mk
-# SFNT driver directory
-#
-SFNT_DIR := $(SRC_)sfnt
-SFNT_DIR_ := $(SFNT_DIR)$(SEP)
+ # SFNT driver directory
+ #
+ SFNT_DIR := $(SRC_)sfnt
+ SFNT_DIR_ := $(SFNT_DIR)$(SEP)
-# additional include flags used when compiling the driver
-#
-SFNT_INCLUDE := $(SHARED) $(SFNT_DIR)
+ # additional include flags used when compiling the driver
+ #
+ SFNT_INCLUDE := $(SHARED) $(SFNT_DIR)
-# compilation flags for the driver
-#
-SFNT_CFLAGS := $(SFNT_INCLUDE:%=$I%)
-SFNT_COMPILE := $(FT_COMPILE) $(SFNT_CFLAGS)
+ # compilation flags for the driver
+ #
+ SFNT_CFLAGS := $(SFNT_INCLUDE:%=$I%)
+ SFNT_COMPILE := $(FT_COMPILE) $(SFNT_CFLAGS)
-# TrueType driver sources (i.e., C files)
-#
-SFNT_DRV_SRC := $(SFNT_DIR_)ttload.c \
- $(SFNT_DIR_)ttcmap.c \
- $(SFNT_DIR_)ttsbit.c \
- $(SFNT_DIR_)ttpost.c \
- $(SFNT_DIR_)sfdriver.c \
+ # driver sources (i.e., C files)
+ #
+ SFNT_DRV_SRC := $(SFNT_DIR_)ttload.c \
+ $(SFNT_DIR_)ttcmap.c \
+ $(SFNT_DIR_)ttsbit.c \
+ $(SFNT_DIR_)ttpost.c \
+ $(SFNT_DIR_)sfdriver.c
-# TrueType driver headers
-#
-SFNT_DRV_H := $(SHARED_H) \
- $(SFNT_DIR_)sfconfig.h \
- $(SFNT_DIR_)ttload.h \
- $(SFNT_DIR_)ttsbit.h \
- $(SFNT_DIR_)ttcmap.h \
- $(SFNT_DIR_)ttpost.h
+ # driver headers
+ #
+ SFNT_DRV_H := $(SHARED_H) \
+ $(SFNT_DIR_)sfconfig.h \
+ $(SFNT_DIR_)ttload.h \
+ $(SFNT_DIR_)ttsbit.h \
+ $(SFNT_DIR_)ttcmap.h \
+ $(SFNT_DIR_)ttpost.h
-# driver object(s)
-#
-# SFNT_DRV_OBJ_M is used during `debug' builds
-# SFNT_DRV_OBJ_S is used during `release' builds
-#
-SFNT_DRV_OBJ_M := $(SFNT_DRV_SRC:$(SFNT_DIR_)%.c=$(OBJ_)%.$O)
-SFNT_DRV_OBJ_S := $(OBJ_)sfnt.$O
+ # driver object(s)
+ #
+ # SFNT_DRV_OBJ_M is used during `debug' builds
+ # SFNT_DRV_OBJ_S is used during `release' builds
+ #
+ SFNT_DRV_OBJ_M := $(SFNT_DRV_SRC:$(SFNT_DIR_)%.c=$(OBJ_)%.$O)
+ SFNT_DRV_OBJ_S := $(OBJ_)sfnt.$O
-# driver root source file(s)
-#
-SFNT_DRV_SRC_M := $(SFNT_DRV_SRC)
-SFNT_DRV_SRC_S := $(SFNT_DIR_)sfnt.c
+ # driver source file(s)
+ #
+ SFNT_DRV_SRC_M := $(SFNT_DRV_SRC)
+ SFNT_DRV_SRC_S := $(SFNT_DIR_)sfnt.c
-# driver - single object
-#
-# the driver is recompiled if any of the header or source files is changed
-# as well as any of the shared source files found in `shared/sfnt'
-#
-$(SFNT_DRV_OBJ_S): $(BASE_H) $(SHARED_H) $(SFNT_DRV_H) $(SFNT_DRV_SRC) $(SFNT_DRV_SRC_S)
- $(SFNT_COMPILE) $T$@ $(SFNT_DRV_SRC_S)
+ # driver - single object
+ #
+ # the driver is recompiled if any of the header or source files is
+ # changed as well as any of the shared source files found in
+ # `shared'
+ #
+ $(SFNT_DRV_OBJ_S): $(BASE_H) $(SHARED_H) $(SFNT_DRV_H) \
+ $(SFNT_DRV_SRC) $(SFNT_DRV_SRC_S)
+ $(SFNT_COMPILE) $T$@ $(SFNT_DRV_SRC_S)
+ # driver - multiple objects
+ #
+ # All objects are recompiled if any of the header files is changed
+ #
+ $(OBJ_)tt%.$O: $(SFNT_DIR_)tt%.c $(BASE_H) $(SHARED_H) $(SFNT_DRV_H)
+ $(SFNT_COMPILE) $T$@ $<
-# driver - multiple objects
-#
-# All objects are recompiled if any of the header files is changed
-#
-$(OBJ_)tt%.$O: $(SFNT_DIR_)tt%.c $(BASE_H) $(SHARED_H) $(SFNT_DRV_H)
- $(SFNT_COMPILE) $T$@ $<
+ $(OBJ_)sf%.$O: $(SFNT_DIR_)sf%.c $(BASE_H) $(SHARED_H) $(SFNT_DRV_H)
+ $(SFNT_COMPILE) $T$@ $<
-$(OBJ_)sf%.$O: $(SFNT_DIR_)sf%.c $(BASE_H) $(SHARED_H) $(SFNT_DRV_H)
- $(SFNT_COMPILE) $T$@ $<
-# update main driver object lists
-#
-DRV_OBJS_S += $(SFNT_DRV_OBJ_S)
-DRV_OBJS_M += $(SFNT_DRV_OBJ_M)
+ # update main driver object lists
+ #
+ DRV_OBJS_S += $(SFNT_DRV_OBJ_S)
+ DRV_OBJS_M += $(SFNT_DRV_OBJ_M)
endif
-# END
+
+# EOF
diff --git a/src/shared/rules.mk b/src/shared/rules.mk
index 9ca3902..6fc1d58 100644
--- a/src/shared/rules.mk
+++ b/src/shared/rules.mk
@@ -1,27 +1,27 @@
-#****************************************************************************
-#* *
-#* shared files Makefile *
-#* *
-#* Copyright 1996-2000 by *
-#* David Turner, Robert Wilhelm, and Werner Lemberg. *
-#* *
-#* This file is part of the FreeType project, and may only be used *
-#* modified and distributed under the terms of the FreeType project *
-#* license, LICENSE.TXT. By continuing to use, modify, or distribute *
-#* this file you indicate that you have read the license and *
-#* understand and accept it fully. *
-#* *
-#****************************************************************************
+#
+# FreeType 2 shared files configuration rules
+#
+
+
+# Copyright 1996-2000 by
+# David Turner, Robert Wilhelm, and Werner Lemberg.
+#
+# This file is part of the FreeType project, and may only be used modified
+# and distributed under the terms of the FreeType project license,
+# LICENSE.TXT. By continuing to use, modify, or distribute this file you
+# indicate that you have read the license and understand and accept it
+# fully.
+
ifndef SHARED_RULES
-SHARED_RULES := 1
+ SHARED_RULES := 1
-SHARED := $(SRC_)shared
-SHARED_ := $(SHARED)$(SEP)
+ SHARED := $(SRC_)shared
+ SHARED_ := $(SHARED)$(SEP)
-SHARED_H := $(wildcard $(SHARED_)*.h)
-SHARED_SRC := $(wildcard $(SHARED_)*.c)
+ SHARED_H := $(wildcard $(SHARED_)*.h)
+ SHARED_SRC := $(wildcard $(SHARED_)*.c)
endif
-# END
+# EOF
diff --git a/src/truetype/module.mk b/src/truetype/module.mk
index 1c91526..0a2d6b1 100644
--- a/src/truetype/module.mk
+++ b/src/truetype/module.mk
@@ -2,5 +2,6 @@ make_module_list: add_truetype_driver
add_truetype_driver:
$(OPEN_DRIVER)tt_driver_interface$(CLOSE_DRIVER)
- $(ECHO_DRIVER)truetype $(ECHO_DRIVER_DESC) Windows/Mac font files with extension *.ttf or *.ttc $(ECHO_DRIVER_DONE)
+ $(ECHO_DRIVER)truetype $(ECHO_DRIVER_DESC)Windows/Mac font files with extension *.ttf or *.ttc$(ECHO_DRIVER_DONE)
+# EOF
diff --git a/src/truetype/rules.mk b/src/truetype/rules.mk
index 0131913..94678b7 100644
--- a/src/truetype/rules.mk
+++ b/src/truetype/rules.mk
@@ -1,88 +1,20 @@
-#****************************************************************************
-#* *
-#* TrueType driver Makefile *
-#* *
-#* Copyright 1996-1999 by *
-#* David Turner, Robert Wilhelm, and Werner Lemberg. *
-#* *
-#* This file is part of the FreeType project, and may only be used *
-#* modified and distributed under the terms of the FreeType project *
-#* license, LICENSE.TXT. By continuing to use, modify, or distribute *
-#* this file you indicate that you have read the license and *
-#* understand and accept it fully. *
-#* *
-#****************************************************************************
-
-
-#****************************************************************************
-#* *
-#* IMPORTANT NOTE: This Makefile is intended for GNU Make! *
-#* If you provide Makefiles for other make utilities, *
-#* please place them in `freetype/lib/arch/<system>'. *
-#* *
-#* *
-#* This file is to be included by the FreeType Makefile.lib, located in *
-#* the `freetype/lib' directory. Here is the list of the variables that *
-#* must be defined to use it: *
-#* *
-#* *
-#* BASE_DIR: The location of the base layer's directory. This is *
-#* usually `freetype/lib/base'. *
-#* *
-#* ARCH_DIR: The location of the architecture-dependent directory. *
-#* This is usually `freetype/lib/arch/<system>'. *
-#* *
-#* DRIVERS_DIR: The location of the font driver sub-dirs, usually *
-#* `freetype/lib/drivers'. *
-#* *
-#* OBJ_DIR: The location where the compiled object(s) file will be *
-#* placed. *
-#* *
-#* BASE_H: A list of pathnames to the base layer's header files on *
-#* which the driver depends. *
-#* *
-#* FT_CFLAGS: A set of flags used for compilation of object files. *
-#* This contains at least the include paths of the arch *
-#* and base directories + optimization + warnings + ANSI *
-#* compliance. *
-#* *
-#* FT_IFLAG: The flag used to specify an include path on the *
-#* compiler command line. For example, with GCC, this is *
-#* `-I', while some other compilers use `/i=' or `-J', *
-#* etc. *
-#* *
-#* FT_OBJ: The suffix of an object file for the platform; can be *
-#* `o', `obj', `coff', `tco', etc. depending on the *
-#* platform. *
-#* *
-#* *
-#* It also updates the following variables defined and used in the main *
-#* Makefile: *
-#* *
-#* DRV_OBJ_S: The list of driver object files in *
-#* single-object mode. *
-#* *
-#* DRV_OBJ_M: The list of driver object files in *
-#* multiple-objects mode. *
-#* *
-#* FTINIT_DRIVER_PATHS: The list of include paths used to compile the *
-#* `ftinit' component which registers all font *
-#* drivers in the FT_Init_FreeType() function. *
-#* *
-#* FTINIT_DRIVER_H: The list of header dependencies used to *
-#* compile the `ftinit' component. *
-#* *
-#* FTINIT_DRIVER_MACROS: The list of macros to be defined when *
-#* compiling the `ftinit' component. *
-#* *
-#* `Single-object compilation' means that each font driver is compiled *
-#* into a single object file. This is useful to get rid of all *
-#* driver-specific entries. *
-#* *
-#****************************************************************************
-
-# include the rules defined for the SFNT driver, which is heavily used
-# by the TrueType one..
+#
+# FreeType 2 PSNames driver configuration rules
+#
+
+
+# Copyright 1996-2000 by
+# David Turner, Robert Wilhelm, and Werner Lemberg.
+#
+# This file is part of the FreeType project, and may only be used modified
+# and distributed under the terms of the FreeType project license,
+# LICENSE.TXT. By continuing to use, modify, or distribute this file you
+# indicate that you have read the license and understand and accept it
+# fully.
+
+
+# Include the rules defined for the SFNT driver, which is heavily used
+# by the TrueType one.
#
include $(SRC_)sfnt/rules.mk
@@ -109,23 +41,22 @@ TT_CFLAGS := $(TT_INCLUDE:%=$I%)
TT_COMPILE := $(FT_COMPILE) $(TT_CFLAGS)
-# TrueType driver sources (i.e., C files)
+# driver sources (i.e., C files)
#
-TT_DRV_SRC := $(TT_DIR_)ttobjs.c \
- $(TT_DIR_)ttpload.c \
- $(TT_DIR_)ttgload.c \
- $(TT_DIR_)ttinterp.c \
+TT_DRV_SRC := $(TT_DIR_)ttobjs.c \
+ $(TT_DIR_)ttpload.c \
+ $(TT_DIR_)ttgload.c \
+ $(TT_DIR_)ttinterp.c \
$(TT_DIR_)ttdriver.c
-
-# TrueType driver headers
+# driver headers
#
-TT_DRV_H := $(SFNT_H) \
- $(TT_DIR_)ttconfig.h \
+TT_DRV_H := $(SFNT_H) \
+ $(TT_DIR_)ttconfig.h \
$(TT_DRV_SRC:%.c=%.h)
-# default TrueType extensions sources
+# default extensions sources
#
TT_EXT_SRC := $(TT_EXT_DIR_)ttxkern.c \
$(TT_EXT_DIR_)ttxgasp.c \
@@ -133,8 +64,7 @@ TT_EXT_SRC := $(TT_EXT_DIR_)ttxkern.c \
$(TT_EXT_DIR_)ttxcmap.c \
$(TT_EXT_DIR_)ttxwidth.c
-
-# default TrueType extensions headers
+# default extensions headers
#
TT_EXT_H := $(TT_EXT_SRC:.c=.h)
@@ -153,8 +83,7 @@ TT_DRV_OBJ_S := $(OBJ_)truetype.$O
TT_EXT_OBJ := $(TT_EXT_SRC:$(TT_EXT_DIR_)%.c=$(OBJ_)%.$O)
-
-# driver root source file(s)
+# driver source file(s)
#
TT_DRV_SRC_M := $(TT_DRV_SRC) $(SFNT_SRC)
TT_DRV_SRC_S := $(TT_DIR_)truetype.c
@@ -184,15 +113,9 @@ $(OBJ_)tt%.$O: $(SFNT_DIR_)tt%.c $(BASE_H) $(SFNT_H)
$(TT_COMPILE) $T$@ $<
-# treat `ttpload' as a special case, as it includes C files
-#
-$(OBJ_)ttpload.$O: $(TT_DIR_)ttpload.c $(BASE_H) $(SFNT_SRC) $(TT_DRV_H)
- $(TT_COMPILE) $T$@ $<
-
-
# update main driver object lists
#
DRV_OBJS_S += $(TT_DRV_OBJ_S)
DRV_OBJS_M += $(TT_DRV_OBJ_M)
-# END
+# EOF
diff --git a/src/type1z/module.mk b/src/type1z/module.mk
index 659cd3f..66dba41 100644
--- a/src/type1z/module.mk
+++ b/src/type1z/module.mk
@@ -2,5 +2,6 @@ make_module_list: add_type1z_driver
add_type1z_driver:
$(OPEN_DRIVER)t1z_driver_interface$(CLOSE_DRIVER)
- $(ECHO_DRIVER)type1z $(ECHO_DRIVER_DESC) Postscript font files with extension *.pfa or *.pfb $(ECHO_DRIVER_DONE)
+ $(ECHO_DRIVER)type1z $(ECHO_DRIVER_DESC)Postscript font files with extension *.pfa or *.pfb$(ECHO_DRIVER_DONE)
+# EOF
diff --git a/src/type1z/rules.mk b/src/type1z/rules.mk
index da2036c..a73a306 100644
--- a/src/type1z/rules.mk
+++ b/src/type1z/rules.mk
@@ -1,96 +1,31 @@
+#
+# FreeType 2 driver configuration rules
+#
+
+
+# Copyright 1996-2000 by
+# David Turner, Robert Wilhelm, and Werner Lemberg.
+#
+# This file is part of the FreeType project, and may only be used modified
+# and distributed under the terms of the FreeType project license,
+# LICENSE.TXT. By continuing to use, modify, or distribute this file you
+# indicate that you have read the license and understand and accept it
+# fully.
+
+
#****************************************************************************
#* *
-#* Type1z driver Makefile *
-#* *
-#* Copyright 1996-1999 by *
-#* David Turner, Robert Wilhelm, and Werner Lemberg. *
-#* *
-#* This file is part of the FreeType project, and may only be used *
-#* modified and distributed under the terms of the FreeType project *
-#* license, LICENSE.TXT. By continuing to use, modify, or distribute *
-#* this file you indicate that you have read the license and *
-#* understand and accept it fully. *
-#* *
#* The "Type1z" driver is an experimental replacement for the current *
-#* Type 1 driver. It features a very different loading mechanism that *
-#* is much faster than the one used by the "normal" driver, and also *
-#* deals nicely with nearly broken Type 1 font files.. It is also *
-#* much smaller.. *
+#* Type 1 driver. It features a very different loading mechanism that *
+#* is much faster than the one used by the `normal' driver, and also *
+#* deals nicely with nearly broken Type 1 font files. It is also *
+#* much smaller... *
#* *
#* Note that it may become a permanent replacement of the current *
#* "src/type1" driver in the future.. *
#* *
#****************************************************************************
-
-#****************************************************************************
-#* *
-#* IMPORTANT NOTE: This Makefile is intended for GNU Make! *
-#* If you provide Makefiles for other make utilities, *
-#* please place them in `freetype/lib/arch/<system>'. *
-#* *
-#* *
-#* This file is to be included by the FreeType Makefile.lib, located in *
-#* the `freetype/lib' directory. Here is the list of the variables that *
-#* must be defined to use it: *
-#* *
-#* *
-#* BASE_DIR: The location of the base layer's directory. This is *
-#* usually `freetype/lib/base'. *
-#* *
-#* ARCH_DIR: The location of the architecture-dependent directory. *
-#* This is usually `freetype/lib/arch/<system>'. *
-#* *
-#* DRIVERS_DIR: The location of the font driver sub-dirs, usually *
-#* `freetype/lib/drivers'. *
-#* *
-#* OBJ_DIR: The location where the compiled object(s) file will be *
-#* placed. *
-#* *
-#* BASE_H: A list of pathnames to the base layer's header files on *
-#* which the driver depends. *
-#* *
-#* FT_CFLAGS: A set of flags used for compilation of object files. *
-#* This contains at least the include paths of the arch *
-#* and base directories + optimization + warnings + ANSI *
-#* compliance. *
-#* *
-#* FT_IFLAG: The flag used to specify an include path on the *
-#* compiler command line. For example, with GCC, this is *
-#* `-I', while some other compilers use `/i=' or `-J', *
-#* etc. *
-#* *
-#* FT_OBJ: The suffix of an object file for the platform; can be *
-#* `o', `obj', `coff', `tco', etc. depending on the *
-#* platform. *
-#* *
-#* *
-#* It also updates the following variables defined and used in the main *
-#* Makefile: *
-#* *
-#* DRV_OBJ_S: The list of driver object files in *
-#* single-object mode. *
-#* *
-#* DRV_OBJ_M: The list of driver object files in *
-#* multiple-objects mode. *
-#* *
-#* FTINIT_DRIVER_PATHS: The list of include paths used to compile the *
-#* `ftinit' component which registers all font *
-#* drivers in the FT_Init_FreeType() function. *
-#* *
-#* FTINIT_DRIVER_H: The list of header dependencies used to *
-#* compile the `ftinit' component. *
-#* *
-#* FTINIT_DRIVER_MACROS: The list of macros to be defined when *
-#* compiling the `ftinit' component. *
-#* *
-#* `Single-object compilation' means that each font driver is compiled *
-#* into a single object file. This is useful to get rid of all *
-#* driver-specific entries. *
-#* *
-#****************************************************************************
-
-
# Type1z driver directory
#
T1Z_DIR := $(SRC_)type1z
@@ -105,18 +40,17 @@ T1Z_COMPILE := $(FT_COMPILE) $(T1Z_INCLUDE:%=$I%)
# Type1 driver sources (i.e., C files)
#
-T1Z_DRV_SRC := $(T1Z_DIR_)t1parse.c \
- $(T1Z_DIR_)t1load.c \
- $(T1Z_DIR_)t1driver.c \
- $(T1Z_DIR_)t1afm.c \
+T1Z_DRV_SRC := $(T1Z_DIR_)t1parse.c \
+ $(T1Z_DIR_)t1load.c \
+ $(T1Z_DIR_)t1driver.c \
+ $(T1Z_DIR_)t1afm.c \
$(T1Z_DIR_)t1gload.c
-
# Type1 driver headers
#
-T1Z_DRV_H := $(T1Z_DIR_)t1errors.h \
- $(T1Z_DIR_)t1config.h \
- $(T1SHARED_H) \
+T1Z_DRV_H := $(T1Z_DIR_)t1errors.h \
+ $(T1Z_DIR_)t1config.h \
+ $(T1SHARED_H) \
$(T1Z_DRV_SRC:%.c=%.h)
@@ -130,8 +64,7 @@ T1Z_DRV_OBJ_M := $(T1Z_DRV_SRC:$(T1Z_DIR_)%.c=$(OBJ_)%.$O) \
T1Z_DRV_OBJ_S := $(OBJ_)type1z.$O
-
-# driver root source file(s)
+# driver source file(s)
#
T1Z_DRV_SRC_M := $(T1Z_DRV_SRC) $(T1SHARED_SRC)
T1Z_DRV_SRC_S := $(T1Z_DIR_)type1z.c
@@ -145,7 +78,6 @@ $(T1Z_DRV_OBJ_S): $(BASE_H) $(T1Z_DRV_H) $(T1Z_DRV_SRC) $(T1Z_DRV_SRC_S)
$(T1Z_COMPILE) $T$@ $(T1Z_DRV_SRC_S)
-
# driver - multiple objects
#
# All objects are recompiled if any of the header files is changed
@@ -162,4 +94,4 @@ $(OBJ_)t1%.$O: $(T1SHARED_DIR_)t1%.c $(BASE_H) $(T1SHARED_H)
DRV_OBJS_S += $(T1Z_DRV_OBJ_S)
DRV_OBJS_M += $(T1Z_DRV_OBJ_M)
-# END
+# EOF