Changeset 46 for trunk/src/kmk/suff.c


Ignore:
Timestamp:
Apr 4, 2003, 2:03:50 AM (22 years ago)
Author:
bird
Message:

kMk changes. Made extensions configurable from config.h. fixed parents.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kmk/suff.c

    r35 r46  
    117117    short        flags;         /* Type of suffix */
    118118#define SUFF_INCLUDE      0x01      /* One which is #include'd */
     119#ifdef USE_ARCHIVES
    119120#define SUFF_LIBRARY      0x02      /* One which contains a library */
     121#endif
    120122#define SUFF_NULL         0x04      /* The empty suffix */
    121123    Lst          searchPath;    /* The path along which files of this suffix
     
    177179static Boolean SuffApplyTransform __P((GNode *, GNode *, Suff *, Suff *));
    178180static void SuffFindDeps __P((GNode *, Lst));
     181#ifdef USE_ARCHIVES
    179182static void SuffFindArchiveDeps __P((GNode *, Lst));
     183#endif
    180184static void SuffFindNormalDeps __P((GNode *, Lst));
    181185static int SuffPrintName __P((ClientData, ClientData));
     
    892896            }
    893897#endif /* INCLUDES */
     898#ifdef USE_ARCHIVES
    894899#ifdef LIBRARIES
    895900            if (s->flags & SUFF_LIBRARY) {
     
    897902            }
    898903#endif /* LIBRARIES */
     904#endif
    899905            Dir_Concat(s->searchPath, dirSearchPath);
    900906        } else {
     
    944950}
    945951
     952#ifdef USE_ARCHIVES
    946953/*-
    947954 *-----------------------------------------------------------------------
     
    973980    }
    974981}
     982#endif /* USE_ARCHIVES */
    975983
    976984          /********** Implicit Source Search Functions *********/
     
    13471355            Lst     members = Lst_Init(FALSE);
    13481356
     1357#ifdef USE_ARCHIVES
    13491358            if (cgn->type & OP_ARCHV) {
    13501359                /*
     
    13561365
    13571366                (void)Arch_ParseArchive(&sacrifice, members, pgn);
    1358             } else {
     1367            } else
     1368#endif
     1369            {
    13591370                /*
    13601371                 * Break the result into a vector of strings whose nodes
     
    16491660
    16501661
     1662#ifdef USE_ARCHIVES
    16511663/*-
    16521664 *-----------------------------------------------------------------------
     
    17851797    mem->type |= OP_MEMBER;
    17861798}
     1799#endif /* USE_ARCHIVES */
    17871800
    17881801/*-
     
    20562069    }
    20572070
     2071#ifdef USE_ARCHIVES
    20582072    /*
    20592073     * If the suffix indicates that the target is a library, mark that in
     
    20632077        gn->type |= OP_LIB;
    20642078    }
     2079#endif
    20652080
    20662081    /*
     
    22262241    }
    22272242
     2243#ifdef USE_ARCHIVES
    22282244    if (gn->type & OP_ARCHV) {
    22292245        SuffFindArchiveDeps(gn, slst);
     
    22572273         */
    22582274        Var_Set(PREFIX, "", gn);
    2259     } else {
     2275    } else
     2276#endif /* USE_ARCHIVES */
    22602277        SuffFindNormalDeps(gn, slst);
    2261     }
    22622278}
    22632279
     
    24042420                    printf ("INCLUDE");
    24052421                    break;
     2422#ifdef USE_ARCHIVES
    24062423                case SUFF_LIBRARY:
    24072424                    printf ("LIBRARY");
    24082425                    break;
     2426#endif
    24092427            }
    24102428            fputc(flags ? '|' : ')', stdout);
Note: See TracChangeset for help on using the changeset viewer.