Changeset 470 for trunk/kBuild/tools


Ignore:
Timestamp:
Jul 15, 2006, 6:33:03 AM (19 years ago)
Author:
bird
Message:

assembler.

File:
1 edited

Legend:

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

    r458 r470  
    44# kBuild Tool Config - MINGW32 GCC.
    55#
    6 # Copyright (c) 2004-2005 knut st. osmundsen <bird-srcspam@anduin.net>
     6# Copyright (c) 2004-2006 knut st. osmundsen <bird-srcspam@anduin.net>
    77#
    88#
     
    7575TOOL_MINGW32_CXXDEFS            :=
    7676
    77 TOOL_MINGW32_AS                 := $(_TOOL_MINGW32_PREFIX)as$(_TOOL_MINGW32_SUFF_EXE)
     77TOOL_MINGW32_AS                 := $(_TOOL_MINGW32_PREFIX)gcc$(_TOOL_MINGW32_SUFF_EXE)
     78TOOL_MINGW32_ASFLAGS            := -g -x assembler-with-cpp
    7879TOOL_MINGW32_ASOBJSUFF          := .o
    7980
     
    139140define TOOL_MINGW32_COMPILE_CXX_CMDS
    140141        $(TOOL_MINGW32_CXX) -c\
     142                $(flags) $(addprefix -I, $(incs)) $(addprefix -D, $(defs))\
     143                -Wp,-MD,$(dep) -Wp,-MT,$(obj) -Wp,-MP\
     144                -o $(obj)\
     145                $(call ABSPATH,$(source))
     146endef
     147
     148
     149## Compile Assembly source.
     150# @param    $(target)   Normalized main target name.
     151# @param    $(source)   Source filename (relative).
     152# @param    $(obj)      Object file name. This shall be (re)created by the compilation.
     153# @param    $(dep)      Dependcy file. This shall be (re)created by the compilation.
     154# @param    $(flags)    Flags.
     155# @param    $(defs)     Definitions. No -D or something.
     156# @param    $(incs)     Includes. No -I or something.
     157# @param    $(dirdep)   Directory creation dependency.
     158# @param    $(deps)     Other dependencies.
     159# @param    $(outbase)  Output basename (full). Use this for list files and such.
     160# @param    $(objsuff)  Object suffix.
     161#
     162TOOL_MINGW32_COMPILE_AS_OUTPUT =
     163TOOL_MINGW32_COMPILE_AS_DEPEND =
     164TOOL_MINGW32_COMPILE_AS_DEPORD =
     165define TOOL_MINGW32_COMPILE_AS_CMDS
     166        $(TOOL_MINGW32_AS) -c\
    141167                $(flags) $(addprefix -I, $(incs)) $(addprefix -D, $(defs))\
    142168                -Wp,-MD,$(dep) -Wp,-MT,$(obj) -Wp,-MP\
Note: See TracChangeset for help on using the changeset viewer.