I believe the problem is your settings for EXTRA_LIBS; try using the -l (lowercase L) following by the
shorthand notation of the library name. Thus if you want to build with a library called "libfoo.so", the shorthand notation is "foo".
If you have a library named otherlibs.so, then it is not properly named. It should be libotherlibs.so, and when you specify it in EXTRA_LIBS, it should be done as -lotherlibs.
Also, it is not typical to specify the path to source code with LDFLAGS. I believe you should remove the second entry that you specified (ie. liburl/src).
P.S. Here's a simple Makefile (which I have not tested):
Code:
APP = myprog
SRCS = $(wildcard *.c)
OBJS = $(SRCS:c=o)
INCLUDES = -I$(PROJECTPATH)/myproject/libs/liburl/include
DEBUG = -g
CFLAGS = -Wall -pedantic -c $(INCLUDES) $(DEBUG)
LDFLAGS = -L$(PROJECTPATH)/myproject/libs/liburl
LDFLAGS += -lurl
.PHONY: all clean realclean
all : $(APP)
$(APP) : $(OBJS)
$(CC) $^ $(LDFLAGS) -o $@
%.o : %.c
$(CC) $(CFLAGS) $^
clean :
$(RM) $(OBJS)
realclean : clean
$(RM) $(APP)