diff --git a/solenv/inc/_tg_shl.mk b/solenv/inc/_tg_shl.mk index 87a018ae9303..6cfe7475d4dd 100644 --- a/solenv/inc/_tg_shl.mk +++ b/solenv/inc/_tg_shl.mk @@ -259,28 +259,25 @@ $(SHL1TARGETN) : \ .ENDIF # "$(COM)"=="GCC" .ENDIF # "$(USE_SHELL)"=="4nt" .ENDIF # "$(SHL1ALLRES)"!="" -.IF "$(COM)"=="GCC" # always have to call dlltool explicitly as ld cannot handle # comment in .def -.IF "$(DEFLIB1NAME)"!="" # do not have to include objs - @echo dlltool --input-def $(SHL1DEF) \ - --dllname $(SHL1TARGET)$(DLLPOST) \ - --kill-at \ - --output-exp $(MISC)$/$(@:b)_exp.o > $(MISC)$/$(TARGET).$(@:b)_1.cmd -.ELSE # "$(DEFLIB1NAME)"!="" # do not have to include objs - @echo dlltool --input-def $(SHL1DEF) \ - --dllname $(SHL1TARGET)$(DLLPOST) \ - --kill-at \ - --output-exp $(MISC)$/$(@:b)_exp.o \ - $(STDOBJ) $(SHL1OBJS) $(SHL1LINKRESO) \ - `$(TYPE) /dev/null $(SHL1LIBS) | $(SED) s\#$(ROUT)\#$(PRJ)$/$(ROUT)\#g` > $(MISC)$/$(TARGET).$(@:b)_1.cmd -.ENDIF # "$(DEFLIB1NAME)"!="" +.IF "$(COM)"=="GCC" +.IF "$(USE_DEFFILE)"!="" + dlltool --input-def $(SHL1DEF) --dllname $(SHL1TARGET)$(DLLPOST) --kill-at --output-exp $(MISC)$/$(@:b).exp @echo $(LINK) $(LINKFLAGS) $(LINKFLAGSSHL) -o$@ \ $(STDOBJ) $(SHL1VERSIONOBJ) $(SHL1OBJS) $(SHL1LINKRESO) \ `$(TYPE) /dev/null $(SHL1LIBS) | $(SED) s\#$(ROUT)\#$(PRJ)$/$(ROUT)\#g` \ - -Wl,--exclude-libs,ALL $(SHL1STDLIBS) $(SHL1STDSHL) $(STDSHL1) \ - $(MISC)$/$(@:b)_exp.o \ - -Wl,-Map,$(MISC)$/$(@:b).map >> $(MISC)$/$(TARGET).$(@:b)_1.cmd - @$(TYPE) $(MISC)$/$(TARGET).$(@:b)_1.cmd - @+source $(MISC)$/$(TARGET).$(@:b)_1.cmd + -Wl,$(MISC)$/$(@:b).exp,--exclude-libs,ALL $(SHL1STDLIBS) $(SHL1STDSHL) $(STDSHL1) \ + -Wl,-Map,$(MISC)$/$(@:b).map > $(MISC)$/$(@:b).cmd + @$(TYPE) $(MISC)$/$(@:b).cmd + @+source $(MISC)$/$(@:b).cmd +.ELSE # "$(USE_DEFFILE)"!="" + @echo $(LINK) $(LINKFLAGS) $(LINKFLAGSSHL) -o$@ \ + $(STDOBJ) $(SHL1VERSIONOBJ) $(SHL1OBJS) $(SHL1LINKRESO) \ + `$(TYPE) /dev/null $(SHL1LIBS) | $(SED) s\#$(ROUT)\#$(PRJ)$/$(ROUT)\#g` \ + -Wl,--export-all-symbols,--exclude-libs,ALL $(SHL1STDLIBS) $(SHL1STDSHL) $(STDSHL1) \ + -Wl,-Map,$(MISC)$/$(@:b).map > $(MISC)$/$(@:b).cmd + @$(TYPE) $(MISC)$/$(@:b).cmd + @+source $(MISC)$/$(@:b).cmd +.ENDIF # "$(USE_DEFFILE)"!="" .ELSE .IF "$(linkinc)"=="" .IF "$(SHL1USE_EXPORTS)"!="name" @@ -702,28 +699,25 @@ $(SHL2TARGETN) : \ .ENDIF # "$(COM)"=="GCC" .ENDIF # "$(USE_SHELL)"=="4nt" .ENDIF # "$(SHL2ALLRES)"!="" -.IF "$(COM)"=="GCC" # always have to call dlltool explicitly as ld cannot handle # comment in .def -.IF "$(DEFLIB2NAME)"!="" # do not have to include objs - @echo dlltool --input-def $(SHL2DEF) \ - --dllname $(SHL2TARGET)$(DLLPOST) \ - --kill-at \ - --output-exp $(MISC)$/$(@:b)_exp.o > $(MISC)$/$(TARGET).$(@:b)_2.cmd -.ELSE # "$(DEFLIB2NAME)"!="" # do not have to include objs - @echo dlltool --input-def $(SHL2DEF) \ - --dllname $(SHL2TARGET)$(DLLPOST) \ - --kill-at \ - --output-exp $(MISC)$/$(@:b)_exp.o \ - $(STDOBJ) $(SHL2OBJS) $(SHL2LINKRESO) \ - `$(TYPE) /dev/null $(SHL2LIBS) | $(SED) s\#$(ROUT)\#$(PRJ)$/$(ROUT)\#g` > $(MISC)$/$(TARGET).$(@:b)_2.cmd -.ENDIF # "$(DEFLIB2NAME)"!="" +.IF "$(COM)"=="GCC" +.IF "$(USE_DEFFILE)"!="" + dlltool --input-def $(SHL2DEF) --dllname $(SHL2TARGET)$(DLLPOST) --kill-at --output-exp $(MISC)$/$(@:b).exp @echo $(LINK) $(LINKFLAGS) $(LINKFLAGSSHL) -o$@ \ $(STDOBJ) $(SHL2VERSIONOBJ) $(SHL2OBJS) $(SHL2LINKRESO) \ `$(TYPE) /dev/null $(SHL2LIBS) | $(SED) s\#$(ROUT)\#$(PRJ)$/$(ROUT)\#g` \ - -Wl,--exclude-libs,ALL $(SHL2STDLIBS) $(SHL2STDSHL) $(STDSHL2) \ - $(MISC)$/$(@:b)_exp.o \ - -Wl,-Map,$(MISC)$/$(@:b).map >> $(MISC)$/$(TARGET).$(@:b)_2.cmd - @$(TYPE) $(MISC)$/$(TARGET).$(@:b)_2.cmd - @+source $(MISC)$/$(TARGET).$(@:b)_2.cmd + -Wl,$(MISC)$/$(@:b).exp,--exclude-libs,ALL $(SHL2STDLIBS) $(SHL2STDSHL) $(STDSHL2) \ + -Wl,-Map,$(MISC)$/$(@:b).map > $(MISC)$/$(@:b).cmd + @$(TYPE) $(MISC)$/$(@:b).cmd + @+source $(MISC)$/$(@:b).cmd +.ELSE # "$(USE_DEFFILE)"!="" + @echo $(LINK) $(LINKFLAGS) $(LINKFLAGSSHL) -o$@ \ + $(STDOBJ) $(SHL2VERSIONOBJ) $(SHL2OBJS) $(SHL2LINKRESO) \ + `$(TYPE) /dev/null $(SHL2LIBS) | $(SED) s\#$(ROUT)\#$(PRJ)$/$(ROUT)\#g` \ + -Wl,--export-all-symbols,--exclude-libs,ALL $(SHL2STDLIBS) $(SHL2STDSHL) $(STDSHL2) \ + -Wl,-Map,$(MISC)$/$(@:b).map > $(MISC)$/$(@:b).cmd + @$(TYPE) $(MISC)$/$(@:b).cmd + @+source $(MISC)$/$(@:b).cmd +.ENDIF # "$(USE_DEFFILE)"!="" .ELSE .IF "$(linkinc)"=="" .IF "$(SHL2USE_EXPORTS)"!="name" @@ -1145,28 +1139,25 @@ $(SHL3TARGETN) : \ .ENDIF # "$(COM)"=="GCC" .ENDIF # "$(USE_SHELL)"=="4nt" .ENDIF # "$(SHL3ALLRES)"!="" -.IF "$(COM)"=="GCC" # always have to call dlltool explicitly as ld cannot handle # comment in .def -.IF "$(DEFLIB3NAME)"!="" # do not have to include objs - @echo dlltool --input-def $(SHL3DEF) \ - --dllname $(SHL3TARGET)$(DLLPOST) \ - --kill-at \ - --output-exp $(MISC)$/$(@:b)_exp.o > $(MISC)$/$(TARGET).$(@:b)_3.cmd -.ELSE # "$(DEFLIB3NAME)"!="" # do not have to include objs - @echo dlltool --input-def $(SHL3DEF) \ - --dllname $(SHL3TARGET)$(DLLPOST) \ - --kill-at \ - --output-exp $(MISC)$/$(@:b)_exp.o \ - $(STDOBJ) $(SHL3OBJS) $(SHL3LINKRESO) \ - `$(TYPE) /dev/null $(SHL3LIBS) | $(SED) s\#$(ROUT)\#$(PRJ)$/$(ROUT)\#g` > $(MISC)$/$(TARGET).$(@:b)_3.cmd -.ENDIF # "$(DEFLIB3NAME)"!="" +.IF "$(COM)"=="GCC" +.IF "$(USE_DEFFILE)"!="" + dlltool --input-def $(SHL3DEF) --dllname $(SHL3TARGET)$(DLLPOST) --kill-at --output-exp $(MISC)$/$(@:b).exp @echo $(LINK) $(LINKFLAGS) $(LINKFLAGSSHL) -o$@ \ $(STDOBJ) $(SHL3VERSIONOBJ) $(SHL3OBJS) $(SHL3LINKRESO) \ `$(TYPE) /dev/null $(SHL3LIBS) | $(SED) s\#$(ROUT)\#$(PRJ)$/$(ROUT)\#g` \ - -Wl,--exclude-libs,ALL $(SHL3STDLIBS) $(SHL3STDSHL) $(STDSHL3) \ - $(MISC)$/$(@:b)_exp.o \ - -Wl,-Map,$(MISC)$/$(@:b).map >> $(MISC)$/$(TARGET).$(@:b)_3.cmd - @$(TYPE) $(MISC)$/$(TARGET).$(@:b)_3.cmd - @+source $(MISC)$/$(TARGET).$(@:b)_3.cmd + -Wl,$(MISC)$/$(@:b).exp,--exclude-libs,ALL $(SHL3STDLIBS) $(SHL3STDSHL) $(STDSHL3) \ + -Wl,-Map,$(MISC)$/$(@:b).map > $(MISC)$/$(@:b).cmd + @$(TYPE) $(MISC)$/$(@:b).cmd + @+source $(MISC)$/$(@:b).cmd +.ELSE # "$(USE_DEFFILE)"!="" + @echo $(LINK) $(LINKFLAGS) $(LINKFLAGSSHL) -o$@ \ + $(STDOBJ) $(SHL3VERSIONOBJ) $(SHL3OBJS) $(SHL3LINKRESO) \ + `$(TYPE) /dev/null $(SHL3LIBS) | $(SED) s\#$(ROUT)\#$(PRJ)$/$(ROUT)\#g` \ + -Wl,--export-all-symbols,--exclude-libs,ALL $(SHL3STDLIBS) $(SHL3STDSHL) $(STDSHL3) \ + -Wl,-Map,$(MISC)$/$(@:b).map > $(MISC)$/$(@:b).cmd + @$(TYPE) $(MISC)$/$(@:b).cmd + @+source $(MISC)$/$(@:b).cmd +.ENDIF # "$(USE_DEFFILE)"!="" .ELSE .IF "$(linkinc)"=="" .IF "$(SHL3USE_EXPORTS)"!="name" @@ -1588,28 +1579,25 @@ $(SHL4TARGETN) : \ .ENDIF # "$(COM)"=="GCC" .ENDIF # "$(USE_SHELL)"=="4nt" .ENDIF # "$(SHL4ALLRES)"!="" -.IF "$(COM)"=="GCC" # always have to call dlltool explicitly as ld cannot handle # comment in .def -.IF "$(DEFLIB4NAME)"!="" # do not have to include objs - @echo dlltool --input-def $(SHL4DEF) \ - --dllname $(SHL4TARGET)$(DLLPOST) \ - --kill-at \ - --output-exp $(MISC)$/$(@:b)_exp.o > $(MISC)$/$(TARGET).$(@:b)_4.cmd -.ELSE # "$(DEFLIB4NAME)"!="" # do not have to include objs - @echo dlltool --input-def $(SHL4DEF) \ - --dllname $(SHL4TARGET)$(DLLPOST) \ - --kill-at \ - --output-exp $(MISC)$/$(@:b)_exp.o \ - $(STDOBJ) $(SHL4OBJS) $(SHL4LINKRESO) \ - `$(TYPE) /dev/null $(SHL4LIBS) | $(SED) s\#$(ROUT)\#$(PRJ)$/$(ROUT)\#g` > $(MISC)$/$(TARGET).$(@:b)_4.cmd -.ENDIF # "$(DEFLIB4NAME)"!="" +.IF "$(COM)"=="GCC" +.IF "$(USE_DEFFILE)"!="" + dlltool --input-def $(SHL4DEF) --dllname $(SHL4TARGET)$(DLLPOST) --kill-at --output-exp $(MISC)$/$(@:b).exp @echo $(LINK) $(LINKFLAGS) $(LINKFLAGSSHL) -o$@ \ $(STDOBJ) $(SHL4VERSIONOBJ) $(SHL4OBJS) $(SHL4LINKRESO) \ `$(TYPE) /dev/null $(SHL4LIBS) | $(SED) s\#$(ROUT)\#$(PRJ)$/$(ROUT)\#g` \ - -Wl,--exclude-libs,ALL $(SHL4STDLIBS) $(SHL4STDSHL) $(STDSHL4) \ - $(MISC)$/$(@:b)_exp.o \ - -Wl,-Map,$(MISC)$/$(@:b).map >> $(MISC)$/$(TARGET).$(@:b)_4.cmd - @$(TYPE) $(MISC)$/$(TARGET).$(@:b)_4.cmd - @+source $(MISC)$/$(TARGET).$(@:b)_4.cmd + -Wl,$(MISC)$/$(@:b).exp,--exclude-libs,ALL $(SHL4STDLIBS) $(SHL4STDSHL) $(STDSHL4) \ + -Wl,-Map,$(MISC)$/$(@:b).map > $(MISC)$/$(@:b).cmd + @$(TYPE) $(MISC)$/$(@:b).cmd + @+source $(MISC)$/$(@:b).cmd +.ELSE # "$(USE_DEFFILE)"!="" + @echo $(LINK) $(LINKFLAGS) $(LINKFLAGSSHL) -o$@ \ + $(STDOBJ) $(SHL4VERSIONOBJ) $(SHL4OBJS) $(SHL4LINKRESO) \ + `$(TYPE) /dev/null $(SHL4LIBS) | $(SED) s\#$(ROUT)\#$(PRJ)$/$(ROUT)\#g` \ + -Wl,--export-all-symbols,--exclude-libs,ALL $(SHL4STDLIBS) $(SHL4STDSHL) $(STDSHL4) \ + -Wl,-Map,$(MISC)$/$(@:b).map > $(MISC)$/$(@:b).cmd + @$(TYPE) $(MISC)$/$(@:b).cmd + @+source $(MISC)$/$(@:b).cmd +.ENDIF # "$(USE_DEFFILE)"!="" .ELSE .IF "$(linkinc)"=="" .IF "$(SHL4USE_EXPORTS)"!="name" @@ -2031,28 +2019,25 @@ $(SHL5TARGETN) : \ .ENDIF # "$(COM)"=="GCC" .ENDIF # "$(USE_SHELL)"=="4nt" .ENDIF # "$(SHL5ALLRES)"!="" -.IF "$(COM)"=="GCC" # always have to call dlltool explicitly as ld cannot handle # comment in .def -.IF "$(DEFLIB5NAME)"!="" # do not have to include objs - @echo dlltool --input-def $(SHL5DEF) \ - --dllname $(SHL5TARGET)$(DLLPOST) \ - --kill-at \ - --output-exp $(MISC)$/$(@:b)_exp.o > $(MISC)$/$(TARGET).$(@:b)_5.cmd -.ELSE # "$(DEFLIB5NAME)"!="" # do not have to include objs - @echo dlltool --input-def $(SHL5DEF) \ - --dllname $(SHL5TARGET)$(DLLPOST) \ - --kill-at \ - --output-exp $(MISC)$/$(@:b)_exp.o \ - $(STDOBJ) $(SHL5OBJS) $(SHL5LINKRESO) \ - `$(TYPE) /dev/null $(SHL5LIBS) | $(SED) s\#$(ROUT)\#$(PRJ)$/$(ROUT)\#g` > $(MISC)$/$(TARGET).$(@:b)_5.cmd -.ENDIF # "$(DEFLIB5NAME)"!="" +.IF "$(COM)"=="GCC" +.IF "$(USE_DEFFILE)"!="" + dlltool --input-def $(SHL5DEF) --dllname $(SHL5TARGET)$(DLLPOST) --kill-at --output-exp $(MISC)$/$(@:b).exp @echo $(LINK) $(LINKFLAGS) $(LINKFLAGSSHL) -o$@ \ $(STDOBJ) $(SHL5VERSIONOBJ) $(SHL5OBJS) $(SHL5LINKRESO) \ `$(TYPE) /dev/null $(SHL5LIBS) | $(SED) s\#$(ROUT)\#$(PRJ)$/$(ROUT)\#g` \ - -Wl,--exclude-libs,ALL $(SHL5STDLIBS) $(SHL5STDSHL) $(STDSHL5) \ - $(MISC)$/$(@:b)_exp.o \ - -Wl,-Map,$(MISC)$/$(@:b).map >> $(MISC)$/$(TARGET).$(@:b)_5.cmd - @$(TYPE) $(MISC)$/$(TARGET).$(@:b)_5.cmd - @+source $(MISC)$/$(TARGET).$(@:b)_5.cmd + -Wl,$(MISC)$/$(@:b).exp,--exclude-libs,ALL $(SHL5STDLIBS) $(SHL5STDSHL) $(STDSHL5) \ + -Wl,-Map,$(MISC)$/$(@:b).map > $(MISC)$/$(@:b).cmd + @$(TYPE) $(MISC)$/$(@:b).cmd + @+source $(MISC)$/$(@:b).cmd +.ELSE # "$(USE_DEFFILE)"!="" + @echo $(LINK) $(LINKFLAGS) $(LINKFLAGSSHL) -o$@ \ + $(STDOBJ) $(SHL5VERSIONOBJ) $(SHL5OBJS) $(SHL5LINKRESO) \ + `$(TYPE) /dev/null $(SHL5LIBS) | $(SED) s\#$(ROUT)\#$(PRJ)$/$(ROUT)\#g` \ + -Wl,--export-all-symbols,--exclude-libs,ALL $(SHL5STDLIBS) $(SHL5STDSHL) $(STDSHL5) \ + -Wl,-Map,$(MISC)$/$(@:b).map > $(MISC)$/$(@:b).cmd + @$(TYPE) $(MISC)$/$(@:b).cmd + @+source $(MISC)$/$(@:b).cmd +.ENDIF # "$(USE_DEFFILE)"!="" .ELSE .IF "$(linkinc)"=="" .IF "$(SHL5USE_EXPORTS)"!="name" @@ -2474,28 +2459,25 @@ $(SHL6TARGETN) : \ .ENDIF # "$(COM)"=="GCC" .ENDIF # "$(USE_SHELL)"=="4nt" .ENDIF # "$(SHL6ALLRES)"!="" -.IF "$(COM)"=="GCC" # always have to call dlltool explicitly as ld cannot handle # comment in .def -.IF "$(DEFLIB6NAME)"!="" # do not have to include objs - @echo dlltool --input-def $(SHL6DEF) \ - --dllname $(SHL6TARGET)$(DLLPOST) \ - --kill-at \ - --output-exp $(MISC)$/$(@:b)_exp.o > $(MISC)$/$(TARGET).$(@:b)_6.cmd -.ELSE # "$(DEFLIB6NAME)"!="" # do not have to include objs - @echo dlltool --input-def $(SHL6DEF) \ - --dllname $(SHL6TARGET)$(DLLPOST) \ - --kill-at \ - --output-exp $(MISC)$/$(@:b)_exp.o \ - $(STDOBJ) $(SHL6OBJS) $(SHL6LINKRESO) \ - `$(TYPE) /dev/null $(SHL6LIBS) | $(SED) s\#$(ROUT)\#$(PRJ)$/$(ROUT)\#g` > $(MISC)$/$(TARGET).$(@:b)_6.cmd -.ENDIF # "$(DEFLIB6NAME)"!="" +.IF "$(COM)"=="GCC" +.IF "$(USE_DEFFILE)"!="" + dlltool --input-def $(SHL6DEF) --dllname $(SHL6TARGET)$(DLLPOST) --kill-at --output-exp $(MISC)$/$(@:b).exp @echo $(LINK) $(LINKFLAGS) $(LINKFLAGSSHL) -o$@ \ $(STDOBJ) $(SHL6VERSIONOBJ) $(SHL6OBJS) $(SHL6LINKRESO) \ `$(TYPE) /dev/null $(SHL6LIBS) | $(SED) s\#$(ROUT)\#$(PRJ)$/$(ROUT)\#g` \ - -Wl,--exclude-libs,ALL $(SHL6STDLIBS) $(SHL6STDSHL) $(STDSHL6) \ - $(MISC)$/$(@:b)_exp.o \ - -Wl,-Map,$(MISC)$/$(@:b).map >> $(MISC)$/$(TARGET).$(@:b)_6.cmd - @$(TYPE) $(MISC)$/$(TARGET).$(@:b)_6.cmd - @+source $(MISC)$/$(TARGET).$(@:b)_6.cmd + -Wl,$(MISC)$/$(@:b).exp,--exclude-libs,ALL $(SHL6STDLIBS) $(SHL6STDSHL) $(STDSHL6) \ + -Wl,-Map,$(MISC)$/$(@:b).map > $(MISC)$/$(@:b).cmd + @$(TYPE) $(MISC)$/$(@:b).cmd + @+source $(MISC)$/$(@:b).cmd +.ELSE # "$(USE_DEFFILE)"!="" + @echo $(LINK) $(LINKFLAGS) $(LINKFLAGSSHL) -o$@ \ + $(STDOBJ) $(SHL6VERSIONOBJ) $(SHL6OBJS) $(SHL6LINKRESO) \ + `$(TYPE) /dev/null $(SHL6LIBS) | $(SED) s\#$(ROUT)\#$(PRJ)$/$(ROUT)\#g` \ + -Wl,--export-all-symbols,--exclude-libs,ALL $(SHL6STDLIBS) $(SHL6STDSHL) $(STDSHL6) \ + -Wl,-Map,$(MISC)$/$(@:b).map > $(MISC)$/$(@:b).cmd + @$(TYPE) $(MISC)$/$(@:b).cmd + @+source $(MISC)$/$(@:b).cmd +.ENDIF # "$(USE_DEFFILE)"!="" .ELSE .IF "$(linkinc)"=="" .IF "$(SHL6USE_EXPORTS)"!="name" @@ -2917,28 +2899,25 @@ $(SHL7TARGETN) : \ .ENDIF # "$(COM)"=="GCC" .ENDIF # "$(USE_SHELL)"=="4nt" .ENDIF # "$(SHL7ALLRES)"!="" -.IF "$(COM)"=="GCC" # always have to call dlltool explicitly as ld cannot handle # comment in .def -.IF "$(DEFLIB7NAME)"!="" # do not have to include objs - @echo dlltool --input-def $(SHL7DEF) \ - --dllname $(SHL7TARGET)$(DLLPOST) \ - --kill-at \ - --output-exp $(MISC)$/$(@:b)_exp.o > $(MISC)$/$(TARGET).$(@:b)_7.cmd -.ELSE # "$(DEFLIB7NAME)"!="" # do not have to include objs - @echo dlltool --input-def $(SHL7DEF) \ - --dllname $(SHL7TARGET)$(DLLPOST) \ - --kill-at \ - --output-exp $(MISC)$/$(@:b)_exp.o \ - $(STDOBJ) $(SHL7OBJS) $(SHL7LINKRESO) \ - `$(TYPE) /dev/null $(SHL7LIBS) | $(SED) s\#$(ROUT)\#$(PRJ)$/$(ROUT)\#g` > $(MISC)$/$(TARGET).$(@:b)_7.cmd -.ENDIF # "$(DEFLIB7NAME)"!="" +.IF "$(COM)"=="GCC" +.IF "$(USE_DEFFILE)"!="" + dlltool --input-def $(SHL7DEF) --dllname $(SHL7TARGET)$(DLLPOST) --kill-at --output-exp $(MISC)$/$(@:b).exp @echo $(LINK) $(LINKFLAGS) $(LINKFLAGSSHL) -o$@ \ $(STDOBJ) $(SHL7VERSIONOBJ) $(SHL7OBJS) $(SHL7LINKRESO) \ `$(TYPE) /dev/null $(SHL7LIBS) | $(SED) s\#$(ROUT)\#$(PRJ)$/$(ROUT)\#g` \ - -Wl,--exclude-libs,ALL $(SHL7STDLIBS) $(SHL7STDSHL) $(STDSHL7) \ - $(MISC)$/$(@:b)_exp.o \ - -Wl,-Map,$(MISC)$/$(@:b).map >> $(MISC)$/$(TARGET).$(@:b)_7.cmd - @$(TYPE) $(MISC)$/$(TARGET).$(@:b)_7.cmd - @+source $(MISC)$/$(TARGET).$(@:b)_7.cmd + -Wl,$(MISC)$/$(@:b).exp,--exclude-libs,ALL $(SHL7STDLIBS) $(SHL7STDSHL) $(STDSHL7) \ + -Wl,-Map,$(MISC)$/$(@:b).map > $(MISC)$/$(@:b).cmd + @$(TYPE) $(MISC)$/$(@:b).cmd + @+source $(MISC)$/$(@:b).cmd +.ELSE # "$(USE_DEFFILE)"!="" + @echo $(LINK) $(LINKFLAGS) $(LINKFLAGSSHL) -o$@ \ + $(STDOBJ) $(SHL7VERSIONOBJ) $(SHL7OBJS) $(SHL7LINKRESO) \ + `$(TYPE) /dev/null $(SHL7LIBS) | $(SED) s\#$(ROUT)\#$(PRJ)$/$(ROUT)\#g` \ + -Wl,--export-all-symbols,--exclude-libs,ALL $(SHL7STDLIBS) $(SHL7STDSHL) $(STDSHL7) \ + -Wl,-Map,$(MISC)$/$(@:b).map > $(MISC)$/$(@:b).cmd + @$(TYPE) $(MISC)$/$(@:b).cmd + @+source $(MISC)$/$(@:b).cmd +.ENDIF # "$(USE_DEFFILE)"!="" .ELSE .IF "$(linkinc)"=="" .IF "$(SHL7USE_EXPORTS)"!="name" @@ -3360,28 +3339,25 @@ $(SHL8TARGETN) : \ .ENDIF # "$(COM)"=="GCC" .ENDIF # "$(USE_SHELL)"=="4nt" .ENDIF # "$(SHL8ALLRES)"!="" -.IF "$(COM)"=="GCC" # always have to call dlltool explicitly as ld cannot handle # comment in .def -.IF "$(DEFLIB8NAME)"!="" # do not have to include objs - @echo dlltool --input-def $(SHL8DEF) \ - --dllname $(SHL8TARGET)$(DLLPOST) \ - --kill-at \ - --output-exp $(MISC)$/$(@:b)_exp.o > $(MISC)$/$(TARGET).$(@:b)_8.cmd -.ELSE # "$(DEFLIB8NAME)"!="" # do not have to include objs - @echo dlltool --input-def $(SHL8DEF) \ - --dllname $(SHL8TARGET)$(DLLPOST) \ - --kill-at \ - --output-exp $(MISC)$/$(@:b)_exp.o \ - $(STDOBJ) $(SHL8OBJS) $(SHL8LINKRESO) \ - `$(TYPE) /dev/null $(SHL8LIBS) | $(SED) s\#$(ROUT)\#$(PRJ)$/$(ROUT)\#g` > $(MISC)$/$(TARGET).$(@:b)_8.cmd -.ENDIF # "$(DEFLIB8NAME)"!="" +.IF "$(COM)"=="GCC" +.IF "$(USE_DEFFILE)"!="" + dlltool --input-def $(SHL8DEF) --dllname $(SHL8TARGET)$(DLLPOST) --kill-at --output-exp $(MISC)$/$(@:b).exp @echo $(LINK) $(LINKFLAGS) $(LINKFLAGSSHL) -o$@ \ $(STDOBJ) $(SHL8VERSIONOBJ) $(SHL8OBJS) $(SHL8LINKRESO) \ `$(TYPE) /dev/null $(SHL8LIBS) | $(SED) s\#$(ROUT)\#$(PRJ)$/$(ROUT)\#g` \ - -Wl,--exclude-libs,ALL $(SHL8STDLIBS) $(SHL8STDSHL) $(STDSHL8) \ - $(MISC)$/$(@:b)_exp.o \ - -Wl,-Map,$(MISC)$/$(@:b).map >> $(MISC)$/$(TARGET).$(@:b)_8.cmd - @$(TYPE) $(MISC)$/$(TARGET).$(@:b)_8.cmd - @+source $(MISC)$/$(TARGET).$(@:b)_8.cmd + -Wl,$(MISC)$/$(@:b).exp,--exclude-libs,ALL $(SHL8STDLIBS) $(SHL8STDSHL) $(STDSHL8) \ + -Wl,-Map,$(MISC)$/$(@:b).map > $(MISC)$/$(@:b).cmd + @$(TYPE) $(MISC)$/$(@:b).cmd + @+source $(MISC)$/$(@:b).cmd +.ELSE # "$(USE_DEFFILE)"!="" + @echo $(LINK) $(LINKFLAGS) $(LINKFLAGSSHL) -o$@ \ + $(STDOBJ) $(SHL8VERSIONOBJ) $(SHL8OBJS) $(SHL8LINKRESO) \ + `$(TYPE) /dev/null $(SHL8LIBS) | $(SED) s\#$(ROUT)\#$(PRJ)$/$(ROUT)\#g` \ + -Wl,--export-all-symbols,--exclude-libs,ALL $(SHL8STDLIBS) $(SHL8STDSHL) $(STDSHL8) \ + -Wl,-Map,$(MISC)$/$(@:b).map > $(MISC)$/$(@:b).cmd + @$(TYPE) $(MISC)$/$(@:b).cmd + @+source $(MISC)$/$(@:b).cmd +.ENDIF # "$(USE_DEFFILE)"!="" .ELSE .IF "$(linkinc)"=="" .IF "$(SHL8USE_EXPORTS)"!="name" @@ -3803,28 +3779,25 @@ $(SHL9TARGETN) : \ .ENDIF # "$(COM)"=="GCC" .ENDIF # "$(USE_SHELL)"=="4nt" .ENDIF # "$(SHL9ALLRES)"!="" -.IF "$(COM)"=="GCC" # always have to call dlltool explicitly as ld cannot handle # comment in .def -.IF "$(DEFLIB9NAME)"!="" # do not have to include objs - @echo dlltool --input-def $(SHL9DEF) \ - --dllname $(SHL9TARGET)$(DLLPOST) \ - --kill-at \ - --output-exp $(MISC)$/$(@:b)_exp.o > $(MISC)$/$(TARGET).$(@:b)_9.cmd -.ELSE # "$(DEFLIB9NAME)"!="" # do not have to include objs - @echo dlltool --input-def $(SHL9DEF) \ - --dllname $(SHL9TARGET)$(DLLPOST) \ - --kill-at \ - --output-exp $(MISC)$/$(@:b)_exp.o \ - $(STDOBJ) $(SHL9OBJS) $(SHL9LINKRESO) \ - `$(TYPE) /dev/null $(SHL9LIBS) | $(SED) s\#$(ROUT)\#$(PRJ)$/$(ROUT)\#g` > $(MISC)$/$(TARGET).$(@:b)_9.cmd -.ENDIF # "$(DEFLIB9NAME)"!="" +.IF "$(COM)"=="GCC" +.IF "$(USE_DEFFILE)"!="" + dlltool --input-def $(SHL9DEF) --dllname $(SHL9TARGET)$(DLLPOST) --kill-at --output-exp $(MISC)$/$(@:b).exp @echo $(LINK) $(LINKFLAGS) $(LINKFLAGSSHL) -o$@ \ $(STDOBJ) $(SHL9VERSIONOBJ) $(SHL9OBJS) $(SHL9LINKRESO) \ `$(TYPE) /dev/null $(SHL9LIBS) | $(SED) s\#$(ROUT)\#$(PRJ)$/$(ROUT)\#g` \ - -Wl,--exclude-libs,ALL $(SHL9STDLIBS) $(SHL9STDSHL) $(STDSHL9) \ - $(MISC)$/$(@:b)_exp.o \ - -Wl,-Map,$(MISC)$/$(@:b).map >> $(MISC)$/$(TARGET).$(@:b)_9.cmd - @$(TYPE) $(MISC)$/$(TARGET).$(@:b)_9.cmd - @+source $(MISC)$/$(TARGET).$(@:b)_9.cmd + -Wl,$(MISC)$/$(@:b).exp,--exclude-libs,ALL $(SHL9STDLIBS) $(SHL9STDSHL) $(STDSHL9) \ + -Wl,-Map,$(MISC)$/$(@:b).map > $(MISC)$/$(@:b).cmd + @$(TYPE) $(MISC)$/$(@:b).cmd + @+source $(MISC)$/$(@:b).cmd +.ELSE # "$(USE_DEFFILE)"!="" + @echo $(LINK) $(LINKFLAGS) $(LINKFLAGSSHL) -o$@ \ + $(STDOBJ) $(SHL9VERSIONOBJ) $(SHL9OBJS) $(SHL9LINKRESO) \ + `$(TYPE) /dev/null $(SHL9LIBS) | $(SED) s\#$(ROUT)\#$(PRJ)$/$(ROUT)\#g` \ + -Wl,--export-all-symbols,--exclude-libs,ALL $(SHL9STDLIBS) $(SHL9STDSHL) $(STDSHL9) \ + -Wl,-Map,$(MISC)$/$(@:b).map > $(MISC)$/$(@:b).cmd + @$(TYPE) $(MISC)$/$(@:b).cmd + @+source $(MISC)$/$(@:b).cmd +.ENDIF # "$(USE_DEFFILE)"!="" .ELSE .IF "$(linkinc)"=="" .IF "$(SHL9USE_EXPORTS)"!="name" @@ -4246,28 +4219,25 @@ $(SHL10TARGETN) : \ .ENDIF # "$(COM)"=="GCC" .ENDIF # "$(USE_SHELL)"=="4nt" .ENDIF # "$(SHL10ALLRES)"!="" -.IF "$(COM)"=="GCC" # always have to call dlltool explicitly as ld cannot handle # comment in .def -.IF "$(DEFLIB10NAME)"!="" # do not have to include objs - @echo dlltool --input-def $(SHL10DEF) \ - --dllname $(SHL10TARGET)$(DLLPOST) \ - --kill-at \ - --output-exp $(MISC)$/$(@:b)_exp.o > $(MISC)$/$(TARGET).$(@:b)_10.cmd -.ELSE # "$(DEFLIB10NAME)"!="" # do not have to include objs - @echo dlltool --input-def $(SHL10DEF) \ - --dllname $(SHL10TARGET)$(DLLPOST) \ - --kill-at \ - --output-exp $(MISC)$/$(@:b)_exp.o \ - $(STDOBJ) $(SHL10OBJS) $(SHL10LINKRESO) \ - `$(TYPE) /dev/null $(SHL10LIBS) | $(SED) s\#$(ROUT)\#$(PRJ)$/$(ROUT)\#g` > $(MISC)$/$(TARGET).$(@:b)_10.cmd -.ENDIF # "$(DEFLIB10NAME)"!="" +.IF "$(COM)"=="GCC" +.IF "$(USE_DEFFILE)"!="" + dlltool --input-def $(SHL10DEF) --dllname $(SHL10TARGET)$(DLLPOST) --kill-at --output-exp $(MISC)$/$(@:b).exp @echo $(LINK) $(LINKFLAGS) $(LINKFLAGSSHL) -o$@ \ $(STDOBJ) $(SHL10VERSIONOBJ) $(SHL10OBJS) $(SHL10LINKRESO) \ `$(TYPE) /dev/null $(SHL10LIBS) | $(SED) s\#$(ROUT)\#$(PRJ)$/$(ROUT)\#g` \ - -Wl,--exclude-libs,ALL $(SHL10STDLIBS) $(SHL10STDSHL) $(STDSHL10) \ - $(MISC)$/$(@:b)_exp.o \ - -Wl,-Map,$(MISC)$/$(@:b).map >> $(MISC)$/$(TARGET).$(@:b)_10.cmd - @$(TYPE) $(MISC)$/$(TARGET).$(@:b)_10.cmd - @+source $(MISC)$/$(TARGET).$(@:b)_10.cmd + -Wl,$(MISC)$/$(@:b).exp,--exclude-libs,ALL $(SHL10STDLIBS) $(SHL10STDSHL) $(STDSHL10) \ + -Wl,-Map,$(MISC)$/$(@:b).map > $(MISC)$/$(@:b).cmd + @$(TYPE) $(MISC)$/$(@:b).cmd + @+source $(MISC)$/$(@:b).cmd +.ELSE # "$(USE_DEFFILE)"!="" + @echo $(LINK) $(LINKFLAGS) $(LINKFLAGSSHL) -o$@ \ + $(STDOBJ) $(SHL10VERSIONOBJ) $(SHL10OBJS) $(SHL10LINKRESO) \ + `$(TYPE) /dev/null $(SHL10LIBS) | $(SED) s\#$(ROUT)\#$(PRJ)$/$(ROUT)\#g` \ + -Wl,--export-all-symbols,--exclude-libs,ALL $(SHL10STDLIBS) $(SHL10STDSHL) $(STDSHL10) \ + -Wl,-Map,$(MISC)$/$(@:b).map > $(MISC)$/$(@:b).cmd + @$(TYPE) $(MISC)$/$(@:b).cmd + @+source $(MISC)$/$(@:b).cmd +.ENDIF # "$(USE_DEFFILE)"!="" .ELSE .IF "$(linkinc)"=="" .IF "$(SHL10USE_EXPORTS)"!="name" @@ -4456,7 +4426,7 @@ $(SHL1IMPLIBN): \ .IF "$(GUI)" == "WNT" .IF "$(COM)"=="GCC" @echo no ImportLibs on mingw - @-$(RM) $@ + @+-$(RM) $@ @$(TOUCH) $@ .ELSE # "$(COM)=="GCC" # bei use_deffile implib von linker erstellt @@ -4502,7 +4472,7 @@ $(SHL2IMPLIBN): \ .IF "$(GUI)" == "WNT" .IF "$(COM)"=="GCC" @echo no ImportLibs on mingw - @-$(RM) $@ + @+-$(RM) $@ @$(TOUCH) $@ .ELSE # "$(COM)=="GCC" # bei use_deffile implib von linker erstellt @@ -4548,7 +4518,7 @@ $(SHL3IMPLIBN): \ .IF "$(GUI)" == "WNT" .IF "$(COM)"=="GCC" @echo no ImportLibs on mingw - @-$(RM) $@ + @+-$(RM) $@ @$(TOUCH) $@ .ELSE # "$(COM)=="GCC" # bei use_deffile implib von linker erstellt @@ -4594,7 +4564,7 @@ $(SHL4IMPLIBN): \ .IF "$(GUI)" == "WNT" .IF "$(COM)"=="GCC" @echo no ImportLibs on mingw - @-$(RM) $@ + @+-$(RM) $@ @$(TOUCH) $@ .ELSE # "$(COM)=="GCC" # bei use_deffile implib von linker erstellt @@ -4640,7 +4610,7 @@ $(SHL5IMPLIBN): \ .IF "$(GUI)" == "WNT" .IF "$(COM)"=="GCC" @echo no ImportLibs on mingw - @-$(RM) $@ + @+-$(RM) $@ @$(TOUCH) $@ .ELSE # "$(COM)=="GCC" # bei use_deffile implib von linker erstellt @@ -4686,7 +4656,7 @@ $(SHL6IMPLIBN): \ .IF "$(GUI)" == "WNT" .IF "$(COM)"=="GCC" @echo no ImportLibs on mingw - @-$(RM) $@ + @+-$(RM) $@ @$(TOUCH) $@ .ELSE # "$(COM)=="GCC" # bei use_deffile implib von linker erstellt @@ -4732,7 +4702,7 @@ $(SHL7IMPLIBN): \ .IF "$(GUI)" == "WNT" .IF "$(COM)"=="GCC" @echo no ImportLibs on mingw - @-$(RM) $@ + @+-$(RM) $@ @$(TOUCH) $@ .ELSE # "$(COM)=="GCC" # bei use_deffile implib von linker erstellt @@ -4778,7 +4748,7 @@ $(SHL8IMPLIBN): \ .IF "$(GUI)" == "WNT" .IF "$(COM)"=="GCC" @echo no ImportLibs on mingw - @-$(RM) $@ + @+-$(RM) $@ @$(TOUCH) $@ .ELSE # "$(COM)=="GCC" # bei use_deffile implib von linker erstellt @@ -4824,7 +4794,7 @@ $(SHL9IMPLIBN): \ .IF "$(GUI)" == "WNT" .IF "$(COM)"=="GCC" @echo no ImportLibs on mingw - @-$(RM) $@ + @+-$(RM) $@ @$(TOUCH) $@ .ELSE # "$(COM)=="GCC" # bei use_deffile implib von linker erstellt @@ -4870,7 +4840,7 @@ $(SHL10IMPLIBN): \ .IF "$(GUI)" == "WNT" .IF "$(COM)"=="GCC" @echo no ImportLibs on mingw - @-$(RM) $@ + @+-$(RM) $@ @$(TOUCH) $@ .ELSE # "$(COM)=="GCC" # bei use_deffile implib von linker erstellt