cannot find library in makefile
Hello,
I keep getting the following error message when I try and include the libraries.
The path to the libraries is correct I have double checked.
Can anyone tell me if I am missing something there.
many thanks,
Code:
make: Circular tb_eng.o <- tb_eng.o dependency dropped.
make: Circular resources.o <- resources.o dependency dropped.
gcc -Wall -ggdb -O0 -D_DEBUG tb_eng.o resources.o -o engine -L/opt/tb/lib/release/i568-linux -ltbstreamserver -lbtxstream -ltbxmedia -ltbxappsutil -ltbxhost
/usr/bin/ld: cannot find -ltbstreamserver
collect2: ld returned 1 exit status
make: *** [engine] Error 1
Code:
OBJECT_FILES = tb_eng.o resources.o
CFLAGS = -Wall -ggdb -O0 -D_DEBUG
CC = gcc
LIBS_PATH = -L/opt/tb/lib/release/i568-linux
INC_PATH = -I/opt/tb/inc -I/opt/tb/inc/i586-linux
LIBS = -ltbstreamserver -lbtxstream -ltbxmedia -ltbxappsutil -ltbxhost
engine: $(OBJECT_FILES)
$(CC) $(CFLAGS) $(OBJECT_FILES) -o engine $(LIBS_PATH) $(LIBS)
tb_eng.o: tb_eng.o
$(CC) -c $(CFLAGS) $(INC_PATH) tb_eng.c
resources.o: resources.o
$(CC) -c $(CFLAGS) $(INC_PATH) resources.c
clean:
rm -f *.o engine