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

Fixed two installation bugs. Configured the .profiled.dll and .logstrict.dll. (untested)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libc/Makefile.kmk

    r2713 r2716  
    119119#
    120120DLLS += libc07
     121libc07_TEMPLATE = libc
    121122libc07_TOOL = GCC3
    122123libc07_TOOL.os2 = GCC3OMF
     
    135136        lazyimp \
    136137        end
    137 ## @todo lazy importing uconv and libuni!
     138
     139ifdef CFG_LIBC_LOGSTRICT_LIBS
     140libc07.logstrict_TEMPLATE = libc.logstrict
     141libc07.logstrict_TOOL = GCC3
     142libc07.logstrict_TOOL.os2 = GCC3OMF
     143libc07.logstrict_SOURCES = \
     144        $(PATH_TARGET)/dll0hi.obj \
     145        $(PATH_TARGET)/libc.def
     146libc07.logstrict_LDFLAGS = -g -Zomf -nostdlib
     147libc07.logstrict_LIBS = \
     148        $(TARGET_libc_l) \
     149        $(TARGET_libc_asm_l) \
     150        $(TARGET_libos2_unicode_lazy) \
     151        $(TARGET_libos2_l) \
     152        $(PATH_TARGET)/libc_alias/libc_alias.a \
     153        gcc \
     154        gcc_eh \
     155        lazyimp \
     156        end
     157endif
     158
     159ifdef CFG_LIBC_PROFILED_LIBS
     160libc07.profiled_TEMPLATE = libc.profiled
     161libc07.profiled_TOOL = GCC3
     162libc07.profiled_TOOL.os2 = GCC3OMF
     163libc07.profiled_SOURCES = \
     164        $(PATH_TARGET)/dll0hi.obj \
     165        $(PATH_TARGET)/libc.profiled.def
     166libc07.profiled_LDFLAGS = -g -Zomf -nostdlib
     167libc07.profiled_LIBS = \
     168        $(TARGET_libc_p) \
     169        $(TARGET_libc_asm_p) \
     170        $(TARGET_libos2_unicode_lazy) \
     171        $(TARGET_libos2_p) \
     172        $(PATH_TARGET)/libc_alias/libc_alias.a \
     173        gcc \
     174        gcc_eh \
     175        lazyimp \
     176        end
     177## @todo fix the .def file.
     178## @todo Use kProfile2.
     179endif
     180## @todo electric fence heap
    138181
    139182#
     
    163206        cmd /c " $(PATH_LIBC_SRC)/libc/dlllegacy.cmd -e "_DLL_InitTerm" $@.tmp.def $(PATH_LIBC_SRC)/libc/libc.def "
    164207        $(MV) -f $@.tmp.def $@
     208
     209ifdef CFG_LIBC_PROFILED_LIBS
     210$(PATH_TARGET)/libc.profiled.def: $(PATH_TARGET)/libc.def
     211        $(RM) -f $@ $@.tmp
     212        $(CP) $< $@.tmp
     213        $(APPEND) $@.tmp ""
     214        $(APPEND) $@.tmp "IMPORTS"
     215        $(APPEND) $@.tmp " __mcount = KPROFILE.3"
     216        $(APPEND) $@.tmp ""
     217        $(MV) -f $@.tmp $@
     218endif
    165219
    166220
Note: See TracChangeset for help on using the changeset viewer.