'How can I choose shared library I need when has 2 share libraries in the file?

There are two shared libraries that are the same name but different suffixes. eg. (A.dll and A.lib). Now when I use the command “make” to make C codes, the compiler chooses the A.lib as the default option. Then how can I choose the flexibly library I need? And the following code is the code of makefile.

CC = gcc

COSI_LIB = '/C/A'

OBJ_NAME = B.exe
SOURCE =  B.c

${OBJ_NAME}: ${SOURCE}
    @$(CC) -I${COSI_LIB} -L${COSI_LIB} -lA -o ${OBJ_NAME} ${SOURCE}

clean:
    @rm $(OBJ_NAME) -r -f


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source