Changeset 102 for trunk/Makefile


Ignore:
Timestamp:
May 7, 2003, 6:15:06 PM (22 years ago)
Author:
bird
Message:

Reneabled and fixed symlinking.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Makefile

    • Property cvs2svn:cvs-rev changed from 1.15 to 1.16
    r101 r102  
    259259###############################################################################
    260260###############################################################################
    261 all-symlinks:
    262 # Don't do this till we've got binutils working.
    263 #               all-symlinks-binutils
     261all-symlinks: \
     262                all-symlinks-binutils
    264263
    265264ifeq "$(BUILD_PLATFORM)" "OS2"
     
    274273TOOL_UNSYMLINK_DIR  = rm
    275274endif
    276                        
     275
     276# ld is broken, so don't use it!       
     277# ld \
     278
    277279SYMLINKS_BINUTILS_TO_GCC_DIRS = \
    278280bfd \
     
    282284gprof \
    283285intl \
    284 ld \
    285286opcodes \
    286287texinfo \
     
    337338                if [ ! -f "$(PATH_TOP)/src/gcc/$$file" ]; then  \
    338339                        $(TOOL_SYMLINK_FILE)  $(PATH_TOP)/src/binutils/$$file $(PATH_TOP)/src/gcc/$$file && \
    339                         touch                 $(PATH_TOP)/src/gcc/$${file}.symlinked ; \
     340                        touch                 $(PATH_TOP)/src/gcc/.symlinked.`echo $${file} | sed -e 's@/@_@g'`; \
    340341                fi ; \
    341342        done
     
    343344                if [ ! -d "$(PATH_TOP)/src/gcc/$$dir" ] ; then  \
    344345                        $(TOOL_SYMLINK_MKDIR) $(PATH_TOP)/src/gcc/$$dir && \
    345                         touch                 $(PATH_TOP)/src/gcc/$${dir}.symlinked && \
    346                         $(TOOL_SYMLINK_DIR)   $(PATH_TOP)/src/binutils/$$dir $(PATH_TOP)/src/gcc/ ; \
     346                        touch                 $(PATH_TOP)/src/gcc/.symlinked.`echo $${dir} | sed -e 's@/@_@g'` && \
     347                        $(TOOL_SYMLINK_DIR)   $(PATH_TOP)/src/binutils/$$dir $(PATH_TOP)/src/gcc/`echo $${dir}| sed -e '/\//!d' -e 's@\([a-zA-z0-9]*\)/.*@\1/@'` ; \
    347348                fi ; \
    348349        done
     
    350351all-symlinks-unlink-binutils:
    351352        for file in $(SYMLINKS_BINUTILS_TO_GCC_FILES); do \
    352                 if [ -f "$(PATH_TOP)/src/gcc/$${file}.symlinked" ]; then  \
     353                if [ -f "$(PATH_TOP)/src/gcc/.symlinked.`echo $${file} | sed -e 's@/@_@g'`" ]; then  \
    353354                        rm  $(PATH_TOP)/src/gcc/$${file} && \
    354                         rm  $(PATH_TOP)/src/gcc/$${file}.symlinked ; \
     355                        rm  $(PATH_TOP)/src/gcc/.symlinked.`echo $${file} | sed -e 's@/@_@g'` ; \
    355356                fi ; \
    356357        done
    357358        for dir in $(SYMLINKS_BINUTILS_TO_GCC_DIRS) ; do \
    358                 if [ -f "$(PATH_TOP)/src/gcc/$$dir.symlinked" ] ; then  \
     359                if [ -f "$(PATH_TOP)/src/gcc/.symlinked.`echo $${dir} | sed -e 's@/@_@g'`" ] ; then  \
    359360                        $(TOOL_UNSYMLINK_DIR) $(PATH_TOP)/src/gcc/$${dir} && \
    360                         rm                    $(PATH_TOP)/src/gcc/$${dir}.symlinked ; \
     361                        rm                    $(PATH_TOP)/src/gcc/.symlinked.`echo $${dir} | sed -e 's@/@_@g'`; \
    361362                fi ; \
    362363        done
     
    495496
    496497
     498               
     499               
     500               
     501               
     502               
     503               
    497504
    498505###############################################################################
Note: See TracChangeset for help on using the changeset viewer.