Ignore:
Timestamp:
Dec 12, 2005, 4:36:07 AM (20 years ago)
Author:
bird
Message:

Use fixed lot's of those $$$$(PATH_<target>) thingies. Better target install, install pass and install target type. Generic passes. And more.

File:
1 edited

Legend:

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

    r300 r353  
    44# kBuild Tool Config - MINGW32 GCC.
    55#
    6 # Copyright (c) 2004 knut st. osmundsen <bird-srcspam@anduin.net>
     6# Copyright (c) 2004-2005 knut st. osmundsen <bird-srcspam@anduin.net>
    77#
    88#
     
    150150## Link library
    151151# @param    $(target)   Normalized main target name.
    152 # @param    $(lib)              Library name.
     152# @param    $(lib)      Library name.
    153153# @param    $(objs)     Object files to put in the library.
    154154# @param    $(flags)    Flags.
    155155# @param    $(dirdep)   Directory creation dependency.
    156 # @param    $(deps)             Other dependencies.
     156# @param    $(deps)     Other dependencies.
    157157#
    158158# @param    $(outbase)  Output basename (full). Use this for list files and such.
     
    169169## Link program
    170170# @param    $(target)   Normalized main target name.
    171 # @param    $(exe)              Program name.
     171# @param    $(out)      Program name.
    172172# @param    $(objs)     Object files to link together.
    173173# @param    $(libs)     Libraries to search.
     
    175175# @param    $(flags)    Flags.
    176176# @param    $(dirdep)   Directory creation dependency.
    177 # @param    $(deps)             Other dependencies.
    178 # @param    $(othersrc) Unhandled sources.
     177# @param    $(deps)     Other dependencies.
     178# @param    $(othersrc)     Unhandled sources.
    179179# @param    $(custom_pre)   Custom step invoked before linking.
    180180# @param    $(custom_post)  Custom step invoked after linking.
     
    182182# @param    $(outbase)  Output basename (full). Use this for list files and such.
    183183define TOOL_MINGW32_LINK_PROGRAM
    184 #$ (warning dbg: TOOL_MINGW32_LINK_PROGRAM: target=$(target) exe=$(exe) objs=$(objs) libs=$(libs) deps=$(deps) flags=$(flags) dirdep=$(dirdep) deffile=$(deffile) outbase=$(outbase))
    185 $(exe): $(deps) $(objs) $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) | $(dirdep)
     184#$ (warning dbg: TOOL_MINGW32_LINK_PROGRAM: target=$(target) out=$(out) objs=$(objs) libs=$(libs) deps=$(deps) flags=$(flags) dirdep=$(dirdep) deffile=$(deffile) outbase=$(outbase))
     185$(out): $(deps) $(objs) $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) | $(dirdep)
    186186        $(call MSG_L1,Creating Program $$@)
    187187ifneq ($(custom_pre),)
     
    198198
    199199
    200 ## Link system module (windows aka driver, linux aka kernel module)
    201 # @param    $(target)   Normalized main target name.
    202 # @param    $(dll)              System module name.
     200## Link DLL.
     201# @param    $(target)   Normalized main target name.
     202# @param    $(out)      DLL name.
    203203# @param    $(objs)     Object files to link together.
    204204# @param    $(libs)     Libraries to search.
     
    206206# @param    $(flags)    Flags.
    207207# @param    $(dirdep)   Directory creation dependency.
    208 # @param    $(deps)             Other dependencies.
    209 # @param    $(othersrc) Unhandled sources.
     208# @param    $(deps)     Other dependencies.
     209# @param    $(othersrc)     Unhandled sources.
    210210# @param    $(custom_pre)   Custom step invoked before linking.
    211211# @param    $(custom_post)  Custom step invoked after linking.
     
    213213# @param    $(outbase)  Output basename (full). Use this for list files and such.
    214214define TOOL_MINGW32_LINK_DLL
    215 #$ (warning dbg: TOOL_MINGW32_LINK_DLL: target=$(target) dll=$(dll) objs=$(objs) libs=$(libs) deps=$(deps) flags=$(flags) dirdep=$(dirdep) othersrc=$(othersrc) outbase=$(outbase))
    216 $(dll): $(deps) $(call DIRDEP,$(PATH_LIB)) $(objs) $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) | $(dirdep)
     215#$ (warning dbg: TOOL_MINGW32_LINK_DLL: target=$(target) out=$(out) objs=$(objs) libs=$(libs) deps=$(deps) flags=$(flags) dirdep=$(dirdep) othersrc=$(othersrc) outbase=$(outbase))
     216$(out) $(outbase).a $(outbase).exp: \
     217                $(deps) $(call DIRDEP,$(PATH_LIB)) $(objs) $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) | $(dirdep)
    217218        $(call MSG_L1,Creating Program $$@)
    218219ifneq ($(custom_pre),)
     
    220221endif
    221222        $(TOOL_MINGW32_DLLWRAP) $(flags) \
    222                 --dllname=$(dll) \
     223                --dllname=$(out) \
    223224                --output-exp=$(outbase).exp \
    224225                --output-lib=$(outbase).a \
     
    234235        $(eval $(custom_post))
    235236endif
    236 _OUT_FILES += $(outbase).map $(outbase).a $(outbase).exp
    237 
    238 endef
    239 
     237_OUT_FILES += $(outbase).a $(outbase).exp
     238
     239endef
     240
Note: See TracChangeset for help on using the changeset viewer.