Bug fixed: missed whitespace between global library-list and target-specific library-list:
$LIB = -lsomelib
$LIB_DEBUG = ($LIB)-ldebuglib
the result was wrong : -lsomelib-ldebuglib.