Changeset 21664 for trunk/include


Ignore:
Timestamp:
Jul 6, 2011, 11:02:32 PM (14 years ago)
Author:
dmik
Message:

Copy *.map files along with *.sym to the bin directory.

Location:
trunk/include
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/odin32.post.emx.mk

    r21396 r21664  
    2626#    binary directory. It is only copied to the compiler specific directory.
    2727#    Main bin is /bin. Compiler specific bin is /bin/debug, /bin/debug.vac36, etc.
     28# Define NO_MAP_COPY to not copy the map file to the exe/dll target directory.
    2829# Define ADDITIONAL_DEP to add dependencies rules.
    2930# Define ADDITIONAL_ALL to add targets all should depend on.
     
    112113        $(ODIN32_BIN)\$(TARGET).$(TARGET_EXTENSION) \
    113114        $(ODIN32_BIN)\$(TARGET).sym \
     115!ifndef NO_MAP_COPY
     116        $(ODIN32_BIN)\$(TARGET).map \
     117!endif
    114118        lib \
    115119        $(ADDITIONAL_ALL)
     
    204208        $(ODIN32_BIN)\$(TARGET).$(TARGET_EXTENSION) \
    205209        $(ODIN32_BIN)\$(TARGET).sym \
     210!ifndef NO_MAP_COPY
     211        $(ODIN32_BIN)\$(TARGET).map \
     212!endif
    206213        $(ADDITIONAL_ALL)
    207214!endif
     
    422429
    423430#
     431# Common: Copy map rule.
     432#
     433$(ODIN32_BIN)\$(TARGET).map: $(OBJDIR)\$(TARGET).map
     434    @if not exist $(@D) $(CREATEPATH) $(@D)
     435    $(CP) $** $@
     436!ifndef NO_MAIN_BIN_COPY
     437    -$(CP) $** $(@D)..\..\$(@F)
     438!endif
     439
     440
     441#
    424442# Common: Make sym file rule.
    425443#
     
    511529        $(ODIN32_BIN)\$(TARGET).$(TARGET_EXTENSION) *.$(TARGET_EXTENSION) \
    512530        $(ODIN32_BIN)\$(TARGET).sym *.sym \
     531        $(ODIN32_BIN)\$(TARGET).map \
    513532!endif
    514533        $(CLEANEXTRAS)
  • trunk/include/odin32.post.vac3.mk

    r21352 r21664  
    2626#    binary directory. It is only copied to the compiler specific directory.
    2727#    Main bin is /bin. Compiler specific bin is /bin/debug, /bin/debug.vac36, etc.
     28# Define NO_MAP_COPY to not copy the map file to the exe/dll target directory.
    2829# Define ADDITIONAL_DEP to add dependencies rules.
    2930# Define ADDITIONAL_ALL to add targets all should depend on.
     
    112113        $(ODIN32_BIN)\$(TARGET).$(TARGET_EXTENSION) \
    113114        $(ODIN32_BIN)\$(TARGET).sym \
     115!ifndef NO_MAP_COPY
     116        $(ODIN32_BIN)\$(TARGET).map \
     117!endif
    114118        lib \
    115119        $(ADDITIONAL_ALL)
     
    198202        $(ODIN32_BIN)\$(TARGET).$(TARGET_EXTENSION) \
    199203        $(ODIN32_BIN)\$(TARGET).sym \
     204!ifndef NO_MAP_COPY
     205        $(ODIN32_BIN)\$(TARGET).map \
     206!endif
    200207        $(ADDITIONAL_ALL)
    201208!endif
     
    411418
    412419#
     420# Common: Copy map rule.
     421#
     422$(ODIN32_BIN)\$(TARGET).map: $(OBJDIR)\$(TARGET).map
     423    @if not exist $(@D) $(CREATEPATH) $(@D)
     424    $(CP) $** $@
     425!ifndef NO_MAIN_BIN_COPY
     426    -$(CP) $** $(@D)..\..\$(@F)
     427!endif
     428
     429
     430#
    413431# Common: Make sym file rule.
    414432#
     
    500518        $(ODIN32_BIN)\$(TARGET).$(TARGET_EXTENSION) *.$(TARGET_EXTENSION) \
    501519        $(ODIN32_BIN)\$(TARGET).sym *.sym \
     520        $(ODIN32_BIN)\$(TARGET).map \
    502521!endif
    503522        $(CLEANEXTRAS)
  • trunk/include/odin32.post.wat.mk

    r8617 r21664  
    2626#    binary directory. It is only copied to the compiler specific directory.
    2727#    Main bin is /bin. Compiler specific bin is /bin/debug, /bin/debug.vac36, etc.
     28# Define NO_MAP_COPY to not copy the map file to the exe/dll target directory.
    2829# Define ADDITIONAL_DEP to add dependencies rules.
    2930# Define ADDITIONAL_ALL to add targets all should depend on.
     
    112113        $(ODIN32_BIN)\$(TARGET).$(TARGET_EXTENSION) \
    113114        $(ODIN32_BIN)\$(TARGET).sym \
     115!ifndef NO_MAP_COPY
     116        $(ODIN32_BIN)\$(TARGET).map \
     117!endif
    114118        lib \
    115119        $(ADDITIONAL_ALL) \
     
    176180        $(ODIN32_BIN)\$(TARGET).$(TARGET_EXTENSION) \
    177181        $(ODIN32_BIN)\$(TARGET).sym \
     182!ifndef NO_MAP_COPY
     183        $(ODIN32_BIN)\$(TARGET).map \
     184!endif
    178185        $(ADDITIONAL_ALL) \
    179186        .SYMBOLIC
     
    364371
    365372#
     373# Common: Copy map rule.
     374#
     375$(ODIN32_BIN)\$(TARGET).map: $(OBJDIR)\$(TARGET).map
     376    @if not exist $^: $(CREATEPATH) $^:
     377    $(CP) $[@ $@
     378!ifndef NO_MAIN_BIN_COPY
     379    -$(CP) $[@ $^:..\..\$^.
     380!endif
     381
     382
     383#
    366384# Common: Make sym file rule.
    367385#
     
    444462        $(ODIN32_BIN)\$(TARGET).$(TARGET_EXTENSION) *.$(TARGET_EXTENSION) \
    445463        $(ODIN32_BIN)\$(TARGET).sym *.sym \
     464        $(ODIN32_BIN)\$(TARGET).map \
    446465!endif
    447466        $(CLEANEXTRAS)
  • trunk/include/odin32.post.watn.mk

    r8617 r21664  
    2626#    binary directory. It is only copied to the compiler specific directory.
    2727#    Main bin is /bin. Compiler specific bin is /bin/debug, /bin/debug.vac36, etc.
     28# Define NO_MAP_COPY to not copy the map file to the exe/dll target directory.
    2829# Define ADDITIONAL_DEP to add dependencies rules.
    2930# Define ADDITIONAL_ALL to add targets all should depend on.
     
    112113        $(ODIN32_BIN)\$(TARGET).$(TARGET_EXTENSION) \
    113114        $(ODIN32_BIN)\$(TARGET).sym \
     115!ifndef NO_MAP_COPY
     116        $(ODIN32_BIN)\$(TARGET).map \
     117!endif
    114118        lib \
    115119        $(ADDITIONAL_ALL)
     
    174178        $(ODIN32_BIN)\$(TARGET).$(TARGET_EXTENSION) \
    175179        $(ODIN32_BIN)\$(TARGET).sym \
     180!ifndef NO_MAP_COPY
     181        $(ODIN32_BIN)\$(TARGET).map \
     182!endif
    176183        $(ADDITIONAL_ALL)
    177184!endif
     
    365372
    366373#
     374# Common: Copy map rule.
     375#
     376$(ODIN32_BIN)\$(TARGET).map: $(OBJDIR)\$(TARGET).map
     377    @if not exist $(@D) $(CREATEPATH) $(@D)
     378    $(CP) $** $@
     379!ifndef NO_MAIN_BIN_COPY
     380    -$(CP) $** $(@D)..\..\$(@F)
     381!endif
     382
     383
     384#
    367385# Common: Make sym file rule.
    368386#
     
    445463        $(ODIN32_BIN)\$(TARGET).$(TARGET_EXTENSION) *.$(TARGET_EXTENSION) \
    446464        $(ODIN32_BIN)\$(TARGET).sym *.sym \
     465        $(ODIN32_BIN)\$(TARGET).map \
    447466!endif
    448467        $(CLEANEXTRAS)
Note: See TracChangeset for help on using the changeset viewer.