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/MINGW32.kmk

    r181 r184  
    2828
    2929# find latest installed version
    30 ifndef PATH_TOOL_MINGW32                                                               
     30ifndef PATH_TOOL_MINGW32
    3131PATH_TOOL_MINGW32            := $(sort $(wildcard $(PATH_DEV)/$(BUILD_PLATFORM_ARCH).$(BUILD_PLATFORM)/mingw32/v*.*))
    3232ifeq ($(PATH_TOOL_MINGW32),)
     
    5555endif
    5656endif
    57                                                                
     57
    5858TOOL_MINGW32_CC                 := $(_TOOL_MINGW32_PREFIX)gcc$(_TOOL_MINGW32_SUFF_EXE)
    5959TOOL_MINGW32_COBJSUFF           := .o
     
    105105# @param    $(incs)     Includes. No -I or something.
    106106# @param        $(dirdep)   Directory creation dependency.
     107# @param        $(deps)         Other dependencies.
    107108#
    108109# @param    $(outbase)  Output basename (full). Use this for list files and such.
    109110# @param        $(objsuff)  Object suffix.
    110111define TOOL_MINGW32_COMPILE_C
    111 #$ (warning dbg: TOOL_MINGW32_COMPILE_C: target=$(target) source=$(source) obj=$(obj) dep=$(dep) flags=$(flags) defs=$(defs) incs=$(incs) dirdep=$(dirdep) outbase=$(outbase) objsuff=$(objsuff))
    112 $(obj): $(dirdep) $(source)
     112#$ (warning dbg: TOOL_MINGW32_COMPILE_C: target=$(target) source=$(source) obj=$(obj) dep=$(dep) flags=$(flags) defs=$(defs) incs=$(incs) dirdep=$(dirdep) outbase=$(outbase) objsuff=$(objsuff) deps=$(deps))
     113$(obj): $(dirdep) $(source) $(deps)
    113114        $(call MSG_L2,Compiling $$@ using MINGW32)
    114115        $(TOOL_MINGW32_CC) -c\
     
    117118                -o $$@\
    118119                $(call ABSPATH,$(source))
    119                
     120
    120121endef
    121122
     
    130131# @param    $(incs)     Includes. No -I or something.
    131132# @param        $(dirdep)   Directory creation dependency.
     133# @param        $(deps)         Other dependencies.
    132134#
    133135# @param    $(outbase)  Output basename (full). Use this for list files and such.
    134136# @param        $(objsuff)  Object suffix.
    135137define TOOL_MINGW32_COMPILE_CXX
    136 #$ (warning dbg: TOOL_MINGW32_COMPILE_CXX: target=$(target) source=$(source) obj=$(obj) dep=$(dep) flags=$(flags) defs=$(defs) incs=$(incs) dirdep=$(dirdep) outbase=$(outbase) objsuff=$(objsuff))
    137 $(obj): $(dirdep) $(source)
     138#$ (warning dbg: TOOL_MINGW32_COMPILE_CXX: target=$(target) source=$(source) obj=$(obj) dep=$(dep) flags=$(flags) defs=$(defs) incs=$(incs) dirdep=$(dirdep) outbase=$(outbase) objsuff=$(objsuff) deps=$(deps))
     139$(obj): $(dirdep) $(source) $(deps)
    138140        $(call MSG_L2,Compiling $$@ using MINGW32)
    139141        $(TOOL_MINGW32_CXX) -c\
     
    142144                -o $$@\
    143145                $(call ABSPATH,$(source))
    144                
     146
    145147endef
    146148
     
    161163        $(RM) -f $$@
    162164        $(TOOL_MINGW32_AR) $(flags) $$@ $(objs)
    163        
     165
    164166endef
    165167
     
    185187ifneq ($(custom_pre),)
    186188        $(eval $(custom_pre))
    187 endif   
     189endif
    188190        $(TOOL_MINGW32_LD) $(flags) -o $$@ $(objs) \
    189191        $(foreach p,$(libpath), -L$(p)) \
     
    191193ifneq ($(custom_post),)
    192194        $(eval $(custom_post))
    193 endif   
    194        
     195endif
     196
    195197endef
    196198
     
    216218ifneq ($(custom_pre),)
    217219        $(eval $(custom_pre))
    218 endif   
     220endif
    219221        $(TOOL_MINGW32_DLLWRAP) $(flags) \
    220222                --dllname=$(dll) \
     
    231233ifneq ($(custom_post),)
    232234        $(eval $(custom_post))
    233 endif   
     235endif
    234236_OUT_FILES += $(outbase).map $(outbase).a $(outbase).exp
    235237
Note: See TracChangeset for help on using the changeset viewer.