makefile error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi All,

I am making a makefile as following:
/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*
/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*
CC = /usr/sfw/bin/g++

INCLUDE = -I/usr/local/include/directfb \  #
	  -I/usr/local/include/direct-internal \
	  -I/usr/include \
	  -I../include
LD = $(CC)

LDFLAGS =

CCFLAGS = -D_REENTRANT \
	 -D_GNU_SOURCE \
	 -O2 \
	-g -Wall\


LIBS = -lz \
      -lpthread \
      -ldirectfb \
      -lfusion \
      -ldirect \
      -ldl \
      -lfbclient \
      -lm \
      -g \
      -lpam \
      -llibs

OBJS = NM.o \
	File.o \
	Queue.o

NM.o:NM.c File.h Queue.h header.h
	$(CC) -c NM.c $(CFLAGS) $(INCLUDE) $(LIBS)
File.o:File.c File.h
	$(CC) -c File.c $(CFLAGS) $(INCLUDE) $(LIBS)
Queue.o:Queue.c Queue.h header.h
	$(CC) -c Queue.c $(CFLAGS) $(INCLUDE) $(LIBS)
#all:nodemanager
nodemanager:$(OBJS)
	$(LD) $(LDFLAGS) $(CFLAGS) $(OBJS) $(INCLUDE) $(LIBS)  -o nodemanager
clean:rm *.o nodemanager

/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*
/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*
i am getting the following errors:
/usr/sfw/bin/g++ -c NM.c -I/usr/local/include/directfb -I/usr/local/include/direct-internal -I/usr/include -I../include -I/usr/sfw/lib/ -lz -lpthread -ldirectfb -lfusion -ldirect -ldl -lfbclient -lm -g -lpam -llibs
g++: -lz: linker input file unused because linking not done
g++: -lpthread: linker input file unused because linking not done
g++: -ldirectfb: linker input file unused because linking not done
g++: -lfusion: linker input file unused because linking not done
g++: -ldirect: linker input file unused because linking not done
g++: -ldl: linker input file unused because linking not done
g++: -lfbclient: linker input file unused because linking not done
g++: -lm: linker input file unused because linking not done
g++: -lpam: linker input file unused because linking not done
g++: -llibs: linker input file unused because linking not done

I went to gcc.gnu.org and got someinputs also e.g. giving --llibs option also but after that its giving : usr/sfw/bin/g++ -c NM.c -I/usr/local/include/directfb -I/usr/local/include/direct-internal -I/usr/include -I../include -I/usr/sfw/lib/ -lz -lpthread -ldirectfb -lfusion -ldirect -ldl -lfbclient -lm -g -lpam -llibs.

the above mentioned source files are simple sourcr files and having sockets and threads used. pLese help me out.I am in great trouble.I think i donot have the required libraries.

_________________________________________________________________
Sexy, sultry, sensuous. - see why Bipasha Basu is all that and more. Try MSN Search http://server1.msn.co.in/Profile/bipashabasu.asp


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux