Changeset 46 for trunk/src/kmk/suff.c
- Timestamp:
- Apr 4, 2003, 2:03:50 AM (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kmk/suff.c
r35 r46 117 117 short flags; /* Type of suffix */ 118 118 #define SUFF_INCLUDE 0x01 /* One which is #include'd */ 119 #ifdef USE_ARCHIVES 119 120 #define SUFF_LIBRARY 0x02 /* One which contains a library */ 121 #endif 120 122 #define SUFF_NULL 0x04 /* The empty suffix */ 121 123 Lst searchPath; /* The path along which files of this suffix … … 177 179 static Boolean SuffApplyTransform __P((GNode *, GNode *, Suff *, Suff *)); 178 180 static void SuffFindDeps __P((GNode *, Lst)); 181 #ifdef USE_ARCHIVES 179 182 static void SuffFindArchiveDeps __P((GNode *, Lst)); 183 #endif 180 184 static void SuffFindNormalDeps __P((GNode *, Lst)); 181 185 static int SuffPrintName __P((ClientData, ClientData)); … … 892 896 } 893 897 #endif /* INCLUDES */ 898 #ifdef USE_ARCHIVES 894 899 #ifdef LIBRARIES 895 900 if (s->flags & SUFF_LIBRARY) { … … 897 902 } 898 903 #endif /* LIBRARIES */ 904 #endif 899 905 Dir_Concat(s->searchPath, dirSearchPath); 900 906 } else { … … 944 950 } 945 951 952 #ifdef USE_ARCHIVES 946 953 /*- 947 954 *----------------------------------------------------------------------- … … 973 980 } 974 981 } 982 #endif /* USE_ARCHIVES */ 975 983 976 984 /********** Implicit Source Search Functions *********/ … … 1347 1355 Lst members = Lst_Init(FALSE); 1348 1356 1357 #ifdef USE_ARCHIVES 1349 1358 if (cgn->type & OP_ARCHV) { 1350 1359 /* … … 1356 1365 1357 1366 (void)Arch_ParseArchive(&sacrifice, members, pgn); 1358 } else { 1367 } else 1368 #endif 1369 { 1359 1370 /* 1360 1371 * Break the result into a vector of strings whose nodes … … 1649 1660 1650 1661 1662 #ifdef USE_ARCHIVES 1651 1663 /*- 1652 1664 *----------------------------------------------------------------------- … … 1785 1797 mem->type |= OP_MEMBER; 1786 1798 } 1799 #endif /* USE_ARCHIVES */ 1787 1800 1788 1801 /*- … … 2056 2069 } 2057 2070 2071 #ifdef USE_ARCHIVES 2058 2072 /* 2059 2073 * If the suffix indicates that the target is a library, mark that in … … 2063 2077 gn->type |= OP_LIB; 2064 2078 } 2079 #endif 2065 2080 2066 2081 /* … … 2226 2241 } 2227 2242 2243 #ifdef USE_ARCHIVES 2228 2244 if (gn->type & OP_ARCHV) { 2229 2245 SuffFindArchiveDeps(gn, slst); … … 2257 2273 */ 2258 2274 Var_Set(PREFIX, "", gn); 2259 } else { 2275 } else 2276 #endif /* USE_ARCHIVES */ 2260 2277 SuffFindNormalDeps(gn, slst); 2261 }2262 2278 } 2263 2279 … … 2404 2420 printf ("INCLUDE"); 2405 2421 break; 2422 #ifdef USE_ARCHIVES 2406 2423 case SUFF_LIBRARY: 2407 2424 printf ("LIBRARY"); 2408 2425 break; 2426 #endif 2409 2427 } 2410 2428 fputc(flags ? '|' : ')', stdout);
Note:
See TracChangeset
for help on using the changeset viewer.