Changeset 119


Ignore:
Timestamp:
May 10, 2003, 9:25:06 PM (22 years ago)
Author:
bird
Message:

Added rules. Removed $(OUT) dependency on genrules.smak. Changed echo.exe to echo to speed up output.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/emx/Makefile

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r118 r119  
    117117ECHOIZE = $(subst $$,\$$,$1$(strip $(subst $(SPACE)$(COMMA),$(COMMA),$(foreach x,2 3 4 5 6 7 8 9,$(if $($x),$(COMMA) $($x))))))
    118118# How to output a text string (with appended newline)
    119 ECHO = echo.exe "$(call ECHOIZE,$1,$2,$3,$4,$5,$6,$7,$8,$9)"
     119# bird: skip the .exe and ash will use internal echo implementation which is way faster
     120#ECHO = echo.exe "$(call ECHOIZE,$1,$2,$3,$4,$5,$6,$7,$8,$9)"
     121ECHO = echo "$(call ECHOIZE,$1,$2,$3,$4,$5,$6,$7,$8,$9)"
    120122# Same but append the text to a file (given with first argument)
    121 FECHO = echo.exe "$(call ECHOIZE,$2,$3,$4,$5,$6,$7,$8,$9)" >> "$1"
     123# bird: skip the .exe and ash will use internal echo implementation which is way faster
     124#FECHO = echo.exe "$(call ECHOIZE,$2,$3,$4,$5,$6,$7,$8,$9)" >> "$1"
     125FECHO = echo "$(call ECHOIZE,$2,$3,$4,$5,$6,$7,$8,$9)" >> "$1"
    122126# How to replace the source file extension with a .o extension
    123127OBJEXT = $(patsubst %.s,%.o,$(patsubst %.asm,%.o,$(patsubst %.c,%.o,$1)))
     
    188192        $(call MKDIR,$@)
    189193
    190 $(OUT)genrules.smak: $(OUT) Makefile $(SUBMAK)
    191         @$(call ECHO,Please wait, rebuilding make rules ...)
     194# bird: add rule for generating the rules.
     195rules: rules-rm $(OUT)genrules.smak
     196rules-rm:
     197        @$(call RM,$(OUT)genrules.smak)
     198       
     199#$(OUT)genrules.smak: $(OUT) Makefile $(SUBMAK)
     200# bird: depeding on $(OUT) make it unstable.
     201$(OUT)genrules.smak: Makefile $(SUBMAK)
     202        $(call MKDIR,$(@D))
     203        @$(call ECHO,Please wait, rebuilding make rules $@ ...)
    192204        @$(call RM,$@)
    193205        @$(call FECHO,$@,# Autogenerated file -- DO NOT EDIT!)
     
    195207
    196208-include $(OUT)genrules.smak
     209
Note: See TracChangeset for help on using the changeset viewer.