Ignore:
Timestamp:
Apr 15, 2007, 1:45:02 AM (18 years ago)
Author:
bird
Message:

Use kmk builtins.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/libc-0.6/src/emx/Makefile.gmk

    r2897 r3099  
    178178AR = $(if $(findstring .lib,$@), $(call GETTOOL2,emxomfar),ar)
    179179ARFLAGS = crs
    180 DO.LIBRARY = $(call RM,$@); $(AR) $(ARFLAGS)$1 $@ $(^O)
     180DO.LIBRARY = $(call RM_SHELL,$@); $(AR) $(ARFLAGS)$1 $@ $(^O)
    181181
    182182# The tool to extract exports from object files and archives,
     
    248248
    249249# How to remove one or more files without questions
     250ifdef KMK_VERSION
     251RM = kmk_builtin_rm -f $1
     252else
    250253RM = rm -f $1
     254endif
     255RM_SHELL = rm -f $1
    251256# How to remove one or more directories without questions
    252257RMDIR = rm -rf $1
    253258# How to copy several files to a directory
     259ifdef KMK_VERSION
     260CP = kmk_builtin_cp $1 $2
     261else
    254262CP = cp $1 $2
     263endif
    255264# Miscelaneous tools
     265ifdef KMK_VERSION
     266MKDIR = kmk_builtin_mkdir -p $1
     267else
    256268MKDIR = mkdir.exe -p $1
     269endif
    257270# How to update a file only if it has been changed
    258271UPDATE = (cmp -s $1 $2 || mv -f $1 $2) && rm -f $1
     
    263276ECHOIZE = $(subst $$,\$$,$1$(strip $(subst $(SPACE)$(COMMA),$(COMMA),$(foreach x,2 3 4 5 6 7 8 9,$(if $($x),$(COMMA) $($x))))))
    264277# How to output a text string (with appended newline)
     278ifdef KMK_VERSION
     279ECHO = kmk_builtin_echo "$(call ECHOIZE,$1,$2,$3,$4,$5,$6,$7,$8,$9)"
     280else
    265281ECHO = echo "$(call ECHOIZE,$1,$2,$3,$4,$5,$6,$7,$8,$9)"
     282endif
    266283# Same but append the text to a file (given with first argument)
    267284FECHO = echo "$(call ECHOIZE,$2,$3,$4,$5,$6,$7,$8,$9)" >> "$1"
Note: See TracChangeset for help on using the changeset viewer.