diff options
author | Tor Lillqvist <tlillqvist@novell.com> | 2011-06-18 01:28:45 +0300 |
---|---|---|
committer | Tor Lillqvist <tlillqvist@novell.com> | 2011-06-18 01:28:45 +0300 |
commit | a3703dcde3a1654633c33f1a03d71008b6d0913a (patch) | |
tree | 68dc59d1a53579df8b3d3025f3801d10f3fd5395 | |
parent | Use DLLTOOL variable instead of hardcode dlltool (diff) | |
download | core-a3703dcde3a1654633c33f1a03d71008b6d0913a.tar.gz core-a3703dcde3a1654633c33f1a03d71008b6d0913a.zip |
With MinGW we get the import library when making the DLL
-rw-r--r-- | solenv/inc/_tg_shl.mk | 60 | ||||
-rw-r--r-- | solenv/inc/tg_shl.mk | 6 |
2 files changed, 55 insertions, 11 deletions
diff --git a/solenv/inc/_tg_shl.mk b/solenv/inc/_tg_shl.mk index 83f33a51769f..a60f9cec8a47 100644 --- a/solenv/inc/_tg_shl.mk +++ b/solenv/inc/_tg_shl.mk @@ -66,8 +66,8 @@ SHL1IMPLIB=i$(TARGET)_t1 USE_1IMPLIB=-implib:$(LB)/$(SHL1IMPLIB).lib SHL1IMPLIBN=$(LB)/$(SHL1IMPLIB).lib .ELSE -SHL1IMPLIBN=$(LB)/lib$(SHL1IMPLIB).dll.a USE_1IMPLIB=-Wl,--out-implib=$(SHL1IMPLIBN) +SHL1IMPLIBN=$(LB)/lib$(SHL1IMPLIB).dll.a .ENDIF # "$(COM)" != "GCC" ALLTAR : $(SHL1IMPLIBN) @@ -243,6 +243,10 @@ $(MISC)/%linkinc.ls: @echo . > $@ .ENDIF # "$(linkinc)"!="" +.IF "$(COM)" == "GCC" && "$(SHL1IMPLIBN)" != "" +$(SHL1IMPLIBN) : $(SHL1TARGETN) +.ENDIF + $(SHL1TARGETN) : \ $(SHL1OBJS)\ $(SHL1LIBS)\ @@ -566,8 +570,8 @@ SHL2IMPLIB=i$(TARGET)_t2 USE_2IMPLIB=-implib:$(LB)/$(SHL2IMPLIB).lib SHL2IMPLIBN=$(LB)/$(SHL2IMPLIB).lib .ELSE -SHL2IMPLIBN=$(LB)/lib$(SHL2IMPLIB).dll.a USE_2IMPLIB=-Wl,--out-implib=$(SHL2IMPLIBN) +SHL2IMPLIBN=$(LB)/lib$(SHL2IMPLIB).dll.a .ENDIF # "$(COM)" != "GCC" ALLTAR : $(SHL2IMPLIBN) @@ -743,6 +747,10 @@ $(MISC)/%linkinc.ls: @echo . > $@ .ENDIF # "$(linkinc)"!="" +.IF "$(COM)" == "GCC" && "$(SHL2IMPLIBN)" != "" +$(SHL2IMPLIBN) : $(SHL2TARGETN) +.ENDIF + $(SHL2TARGETN) : \ $(SHL2OBJS)\ $(SHL2LIBS)\ @@ -1066,8 +1074,8 @@ SHL3IMPLIB=i$(TARGET)_t3 USE_3IMPLIB=-implib:$(LB)/$(SHL3IMPLIB).lib SHL3IMPLIBN=$(LB)/$(SHL3IMPLIB).lib .ELSE -SHL3IMPLIBN=$(LB)/lib$(SHL3IMPLIB).dll.a USE_3IMPLIB=-Wl,--out-implib=$(SHL3IMPLIBN) +SHL3IMPLIBN=$(LB)/lib$(SHL3IMPLIB).dll.a .ENDIF # "$(COM)" != "GCC" ALLTAR : $(SHL3IMPLIBN) @@ -1243,6 +1251,10 @@ $(MISC)/%linkinc.ls: @echo . > $@ .ENDIF # "$(linkinc)"!="" +.IF "$(COM)" == "GCC" && "$(SHL3IMPLIBN)" != "" +$(SHL3IMPLIBN) : $(SHL3TARGETN) +.ENDIF + $(SHL3TARGETN) : \ $(SHL3OBJS)\ $(SHL3LIBS)\ @@ -1566,8 +1578,8 @@ SHL4IMPLIB=i$(TARGET)_t4 USE_4IMPLIB=-implib:$(LB)/$(SHL4IMPLIB).lib SHL4IMPLIBN=$(LB)/$(SHL4IMPLIB).lib .ELSE -SHL4IMPLIBN=$(LB)/lib$(SHL4IMPLIB).dll.a USE_4IMPLIB=-Wl,--out-implib=$(SHL4IMPLIBN) +SHL4IMPLIBN=$(LB)/lib$(SHL4IMPLIB).dll.a .ENDIF # "$(COM)" != "GCC" ALLTAR : $(SHL4IMPLIBN) @@ -1743,6 +1755,10 @@ $(MISC)/%linkinc.ls: @echo . > $@ .ENDIF # "$(linkinc)"!="" +.IF "$(COM)" == "GCC" && "$(SHL4IMPLIBN)" != "" +$(SHL4IMPLIBN) : $(SHL4TARGETN) +.ENDIF + $(SHL4TARGETN) : \ $(SHL4OBJS)\ $(SHL4LIBS)\ @@ -2066,8 +2082,8 @@ SHL5IMPLIB=i$(TARGET)_t5 USE_5IMPLIB=-implib:$(LB)/$(SHL5IMPLIB).lib SHL5IMPLIBN=$(LB)/$(SHL5IMPLIB).lib .ELSE -SHL5IMPLIBN=$(LB)/lib$(SHL5IMPLIB).dll.a USE_5IMPLIB=-Wl,--out-implib=$(SHL5IMPLIBN) +SHL5IMPLIBN=$(LB)/lib$(SHL5IMPLIB).dll.a .ENDIF # "$(COM)" != "GCC" ALLTAR : $(SHL5IMPLIBN) @@ -2243,6 +2259,10 @@ $(MISC)/%linkinc.ls: @echo . > $@ .ENDIF # "$(linkinc)"!="" +.IF "$(COM)" == "GCC" && "$(SHL5IMPLIBN)" != "" +$(SHL5IMPLIBN) : $(SHL5TARGETN) +.ENDIF + $(SHL5TARGETN) : \ $(SHL5OBJS)\ $(SHL5LIBS)\ @@ -2566,8 +2586,8 @@ SHL6IMPLIB=i$(TARGET)_t6 USE_6IMPLIB=-implib:$(LB)/$(SHL6IMPLIB).lib SHL6IMPLIBN=$(LB)/$(SHL6IMPLIB).lib .ELSE -SHL6IMPLIBN=$(LB)/lib$(SHL6IMPLIB).dll.a USE_6IMPLIB=-Wl,--out-implib=$(SHL6IMPLIBN) +SHL6IMPLIBN=$(LB)/lib$(SHL6IMPLIB).dll.a .ENDIF # "$(COM)" != "GCC" ALLTAR : $(SHL6IMPLIBN) @@ -2743,6 +2763,10 @@ $(MISC)/%linkinc.ls: @echo . > $@ .ENDIF # "$(linkinc)"!="" +.IF "$(COM)" == "GCC" && "$(SHL6IMPLIBN)" != "" +$(SHL6IMPLIBN) : $(SHL6TARGETN) +.ENDIF + $(SHL6TARGETN) : \ $(SHL6OBJS)\ $(SHL6LIBS)\ @@ -3066,8 +3090,8 @@ SHL7IMPLIB=i$(TARGET)_t7 USE_7IMPLIB=-implib:$(LB)/$(SHL7IMPLIB).lib SHL7IMPLIBN=$(LB)/$(SHL7IMPLIB).lib .ELSE -SHL7IMPLIBN=$(LB)/lib$(SHL7IMPLIB).dll.a USE_7IMPLIB=-Wl,--out-implib=$(SHL7IMPLIBN) +SHL7IMPLIBN=$(LB)/lib$(SHL7IMPLIB).dll.a .ENDIF # "$(COM)" != "GCC" ALLTAR : $(SHL7IMPLIBN) @@ -3243,6 +3267,10 @@ $(MISC)/%linkinc.ls: @echo . > $@ .ENDIF # "$(linkinc)"!="" +.IF "$(COM)" == "GCC" && "$(SHL7IMPLIBN)" != "" +$(SHL7IMPLIBN) : $(SHL7TARGETN) +.ENDIF + $(SHL7TARGETN) : \ $(SHL7OBJS)\ $(SHL7LIBS)\ @@ -3566,8 +3594,8 @@ SHL8IMPLIB=i$(TARGET)_t8 USE_8IMPLIB=-implib:$(LB)/$(SHL8IMPLIB).lib SHL8IMPLIBN=$(LB)/$(SHL8IMPLIB).lib .ELSE -SHL8IMPLIBN=$(LB)/lib$(SHL8IMPLIB).dll.a USE_8IMPLIB=-Wl,--out-implib=$(SHL8IMPLIBN) +SHL8IMPLIBN=$(LB)/lib$(SHL8IMPLIB).dll.a .ENDIF # "$(COM)" != "GCC" ALLTAR : $(SHL8IMPLIBN) @@ -3743,6 +3771,10 @@ $(MISC)/%linkinc.ls: @echo . > $@ .ENDIF # "$(linkinc)"!="" +.IF "$(COM)" == "GCC" && "$(SHL8IMPLIBN)" != "" +$(SHL8IMPLIBN) : $(SHL8TARGETN) +.ENDIF + $(SHL8TARGETN) : \ $(SHL8OBJS)\ $(SHL8LIBS)\ @@ -4066,8 +4098,8 @@ SHL9IMPLIB=i$(TARGET)_t9 USE_9IMPLIB=-implib:$(LB)/$(SHL9IMPLIB).lib SHL9IMPLIBN=$(LB)/$(SHL9IMPLIB).lib .ELSE -SHL9IMPLIBN=$(LB)/lib$(SHL9IMPLIB).dll.a USE_9IMPLIB=-Wl,--out-implib=$(SHL9IMPLIBN) +SHL9IMPLIBN=$(LB)/lib$(SHL9IMPLIB).dll.a .ENDIF # "$(COM)" != "GCC" ALLTAR : $(SHL9IMPLIBN) @@ -4243,6 +4275,10 @@ $(MISC)/%linkinc.ls: @echo . > $@ .ENDIF # "$(linkinc)"!="" +.IF "$(COM)" == "GCC" && "$(SHL9IMPLIBN)" != "" +$(SHL9IMPLIBN) : $(SHL9TARGETN) +.ENDIF + $(SHL9TARGETN) : \ $(SHL9OBJS)\ $(SHL9LIBS)\ @@ -4566,8 +4602,8 @@ SHL10IMPLIB=i$(TARGET)_t10 USE_10IMPLIB=-implib:$(LB)/$(SHL10IMPLIB).lib SHL10IMPLIBN=$(LB)/$(SHL10IMPLIB).lib .ELSE -SHL10IMPLIBN=$(LB)/lib$(SHL10IMPLIB).dll.a USE_10IMPLIB=-Wl,--out-implib=$(SHL10IMPLIBN) +SHL10IMPLIBN=$(LB)/lib$(SHL10IMPLIB).dll.a .ENDIF # "$(COM)" != "GCC" ALLTAR : $(SHL10IMPLIBN) @@ -4743,6 +4779,10 @@ $(MISC)/%linkinc.ls: @echo . > $@ .ENDIF # "$(linkinc)"!="" +.IF "$(COM)" == "GCC" && "$(SHL10IMPLIBN)" != "" +$(SHL10IMPLIBN) : $(SHL10TARGETN) +.ENDIF + $(SHL10TARGETN) : \ $(SHL10OBJS)\ $(SHL10LIBS)\ diff --git a/solenv/inc/tg_shl.mk b/solenv/inc/tg_shl.mk index ebac9e432935..d6bcbc82511b 100644 --- a/solenv/inc/tg_shl.mk +++ b/solenv/inc/tg_shl.mk @@ -95,8 +95,8 @@ SHL$(TNR)IMPLIB=i$(TARGET)_t$(TNR) USE_$(TNR)IMPLIB=-implib:$(LB)/$(SHL$(TNR)IMPLIB).lib SHL$(TNR)IMPLIBN=$(LB)/$(SHL$(TNR)IMPLIB).lib .ELSE -SHL$(TNR)IMPLIBN=$(LB)/lib$(SHL$(TNR)IMPLIB).dll.a USE_$(TNR)IMPLIB=-Wl,--out-implib=$(SHL$(TNR)IMPLIBN) +SHL$(TNR)IMPLIBN=$(LB)/lib$(SHL$(TNR)IMPLIB).dll.a .ENDIF # "$(COM)" != "GCC" ALLTAR : $(SHL$(TNR)IMPLIBN) @@ -272,6 +272,10 @@ $(MISC)/%linkinc.ls: @echo . > $@ .ENDIF # "$(linkinc)"!="" +.IF "$(COM)" == "GCC" && "$(SHL$(TNR)IMPLIBN)" != "" +$(SHL$(TNR)IMPLIBN) : $(SHL$(TNR)TARGETN) +.ENDIF + $(SHL$(TNR)TARGETN) : \ $(SHL$(TNR)OBJS)\ $(SHL$(TNR)LIBS)\ |