Ignore:
Timestamp:
Jul 16, 2006, 5:43:04 AM (19 years ago)
Author:
bird
Message:

Deal with .imp and .def files in the emx manner.

File:
1 edited

Legend:

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

    r471 r474  
    5353TOOL_GCC3_ARFLAGS            := cr
    5454TOOL_GCC3_ARLIBSUFF          := .a
     55
     56ifeq ($(BUILD_TARGET),os2)
     57TOOL_GCC3_AR_IMP             := emximp$(HOSTSTUFF_EXE)
     58else
     59TOOL_GCC3_AR_IMP             := $(ECHO) not supported!
     60endif
    5561
    5662TOOL_GCC3_LD                 := g++$(HOSTSUFF_EXE)
     
    166172# @param    $(outbase)  Output basename (full). Use this for list files and such.
    167173TOOL_GCC3_LINK_LIBRARY_OUTPUT = $(out).ar-script
    168 TOOL_GCC3_LINK_LIBRARY_DEPEND = $(filter %.a %.lib,$(othersrc))
     174TOOL_GCC3_LINK_LIBRARY_DEPEND = $(filter %.a %.lib %.def %.imp,$(othersrc))
    169175TOOL_GCC3_LINK_LIBRARY_DEPORD =
    170176define TOOL_GCC3_LINK_LIBRARY_CMDS
     
    174180        $(foreach srclib, $(filter %.a %.lib,$(othersrc))\
    175181                ,$(NL)$(TAB)$(APPEND) $(out).ar-script "ADDLIB $(srclib)")
     182        $(if $(filter %.def %.imp,$(othersrc))\
     183                ,$(TOOL_GCC3_AR_IMP) -o $(outbase).imp.a $(filter %.def %.imp,$(othersrc))\
     184                 $(NL)$(TAB)$(APPEND) $(out).ar-script "ADDLIB $(outbase).imp.a")
    176185        $(APPEND) $(out).ar-script "SAVE"
    177186        $(APPEND) $(out).ar-script "END"
Note: See TracChangeset for help on using the changeset viewer.