Ignore:
Timestamp:
Dec 4, 2004, 3:26:54 AM (21 years ago)
Author:
bird
Message:

Dependencies.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kBuild/tools/GCC3.kmk

    r181 r184  
    8080# @param    $(incs)     Includes. No -I or something.
    8181# @param        $(dirdep)   Directory creation dependency.
     82# @param        $(deps)         Other dependencies.
    8283#
    8384# @param    $(outbase)  Output basename (full). Use this for list files and such.
     
    8586define TOOL_GCC3_COMPILE_C
    8687#$ (warning dbg: TOOL_GCC3_COMPILE_C: target=$(target) source=$(source) obj=$(obj) dep=$(dep) flags=$(flags) defs=$(defs) incs=$(incs) dirdep=$(dirdep) outbase=$(outbase) objsuff=$(objsuff))
    87 $(obj): $(dirdep) $(source)
     88$(obj): $(dirdep) $(source) $(deps)
    8889        $(call MSG_L2,Compiling $$@ using GCC3)
    8990        $(TOOL_GCC3_CC) -c\
     
    9293                -o $$@\
    9394                $(call ABSPATH,$(source))
    94                
     95
    9596endef
    9697
     
    105106# @param    $(incs)     Includes. No -I or something.
    106107# @param        $(dirdep)   Directory creation dependency.
     108# @param        $(deps)         Other dependencies.
    107109#
    108110# @param    $(outbase)  Output basename (full). Use this for list files and such.
     
    110112define TOOL_GCC3_COMPILE_CXX
    111113#$ (warning dbg: TOOL_GCC3_COMPILE_CXX: target=$(target) source=$(source) obj=$(obj) dep=$(dep) flags=$(flags) defs=$(defs) incs=$(incs) dirdep=$(dirdep) outbase=$(outbase) objsuff=$(objsuff))
    112 $(obj): $(dirdep) $(source)
     114$(obj): $(dirdep) $(source) $(deps)
    113115        $(call MSG_L2,Compiling $$@ using GCC3)
    114116        $(TOOL_GCC3_CXX) -c\
     
    117119                -o $$@\
    118120                $(call ABSPATH,$(source))
    119                
     121
    120122endef
    121123
     
    136138        $(RM) -f $$@
    137139        $(TOOL_GCC3_AR) $(flags) $$@ $(objs)
    138        
     140
    139141endef
    140142
     
    160162ifneq ($(custom_pre),)
    161163        $(eval $(custom_pre))
    162 endif   
     164endif
    163165        $(TOOL_GCC3_LD) $(flags) -o $$@ $(objs) \
    164166        $(foreach p,$(libpath), -L$(p)) \
     
    166168ifneq ($(custom_post),)
    167169        $(eval $(custom_post))
    168 endif   
    169        
     170endif
     171
    170172endef
    171173
     
    191193ifneq ($(custom_pre),)
    192194        $(eval $(custom_pre))
    193 endif   
     195endif
    194196        $(TOOL_GCC3_LD) $(TOOL_GCC3_LDFLAGS.dll) $(flags) -o $$@ $(objs) \
    195197        $(foreach p,$(libpath), -L$(p)) \
     
    197199ifneq ($(custom_post),)
    198200        $(eval $(custom_post))
    199 endif   
    200        
     201endif
     202
    201203endef
    202204
     
    221223ifneq ($(custom_pre),)
    222224        $(eval $(custom_pre))
    223 endif   
     225endif
    224226        $(TOOL_GCC3_LD_SYSMOD) $(TOOL_GCC3_LDFLAGS.sysmod) $(flags) -o $$@ $(objs) \
    225227                $(foreach p,$(libpath), -L$(p)) \
     
    227229ifneq ($(custom_post),)
    228230        $(eval $(custom_post))
    229 endif   
    230 
    231 endef
    232                                                                                                        
     231endif
     232
     233endef
     234
Note: See TracChangeset for help on using the changeset viewer.