public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* makefile error
@ 2006-05-11 19:01 Parikshat Dubey
  2006-05-11 19:16 ` Daniel Llorens del Río
  0 siblings, 1 reply; 12+ messages in thread
From: Parikshat Dubey @ 2006-05-11 19:01 UTC (permalink / raw)
  To: gcc-help

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

^ permalink raw reply	[flat|nested] 12+ messages in thread
* makefile issue
@ 2006-05-19  6:29 Parikshat Dubey
  0 siblings, 0 replies; 12+ messages in thread
From: Parikshat Dubey @ 2006-05-19  6:29 UTC (permalink / raw)
  To: gcc-help

Hi All !

I donot know how to how to make a gtk enabled makefile.Can anyone help me 
out?I will be really thankful if anybody will help me out.

thanksandregards
parikshatdubey

_________________________________________________________________
One and only Ash. Find out all about her. Only on MSN Search 
http://server1.msn.co.in/profile/aishwarya.asp

^ permalink raw reply	[flat|nested] 12+ messages in thread
* Makefile Issue
@ 2006-05-26 10:39 Parikshat Dubey
  2006-05-26 10:51 ` Brian Dessent
  0 siblings, 1 reply; 12+ messages in thread
From: Parikshat Dubey @ 2006-05-26 10:39 UTC (permalink / raw)
  To: bug-make
  Cc: jg, brian.budge, daniel.llorensdelrio, pedz, vivek1717,
	pranjal.vir, gcc-help

Hi All!

I have one sample make file but there are many autogenerated things inside 
it which i am unable to comprehend and understand.I want to know how 
autogenerated makefile is generated and what are the specific things in 
makefile i need to  focus on.

I wan to know also how i can use autogenerated makefile in another makefile.

Thanks & Regards
Parikshat Dubey

_________________________________________________________________
Fall in Love... Get married! Join FREE! 
http://www.shaadi.com/ptnr.php?ptnr=msnhottag

^ permalink raw reply	[flat|nested] 12+ messages in thread
* Makefile issue
@ 2006-07-03 16:34 Parikshat Dubey
  2006-07-18 14:05 ` Dima Sorkin
  0 siblings, 1 reply; 12+ messages in thread
From: Parikshat Dubey @ 2006-07-03 16:34 UTC (permalink / raw)
  To: gcc-help, gcc-announce-get.123_145, bug-make,
	gcc-announce-digest-sc.1147763497.pfpdlibggnnliapbalkg-parikshatdubey=hotmail.com,
	brian.budge, gcc-announce-help, gcc-announce-info,
	gcc-announce-thread.12345, gcc-announce-return-,
	vivek1717, pedz, daniel.llorensdelrio, gcc-announce-faq, jg

Hi folks!

Friends I am preparing a make file but its giving target not needed by 
a1.c.target a1.o stop.
Here is the procedure
CC=/usr/sfw/bin/gcc
CFLAGS=-g -Wall
SRC=/Module/src
INCLUDE=/usr/include \
              /Module/header
              //path for header files gtk,gdk,atk,pango etc.
LIBS       =lsocket \
                lnsl \
                lpthread \
               path for library packages for gtk,gdk etc.

#MODULE 1 has following files a1.c ,a2.c,a3.c and a1.h,a2.h and a3.h
#MODULE 2 has following files b1.c ,b2.c,b3.c and b1.h,b2.h,b3.h
#MODULE 3 has following files c1.c ,c2.c,c3.c and c1.h,c2.h,c3.h

#There is a top level folder called Module which contains src and header 
subfolders.
#In src subfolder contain module1,2 and 3 which contains source 
filesrespective to the module and #in /module/header contains subfolder 
module 1,2 and 3 which contain header files.
#Makefile is saved in /Module/makefile

OBJS=a1.o a2.o a3.o b1.o b2.o b3.o c1.o c2.o c3.o

a1.o:a1.c
               $(CC)  -$INCLUDE -$(CFLAGS)  -I.  -I$(SRC)  -c $<
a2.o:a2.c
               $(CC)  -$INCLUDE  -$(CFLAGS) -I.  -I$(SRC)  -c $<
a3.o:a3.c
               $(CC)  -$INCLUDE  -$(CFLAGS) -I.  -I$(SRC)  -c $<
b1.o:b1.c
               $(CC)   -$INCLUDE  -$(CFLAGS) -I.  -I$(SRC)  -c $<
b2.o:b2.c
               $(CC)  -$INCLUDE  -$(CFLAGS) -I.  -I$(SRC)  -c $<
b3.o:b3.c
               $(CC)   -$INCLUDE  -$(CFLAGS)  -I.  -I$(SRC)  -c $<
c1.o:c1.c
               $(CC)   -$INCLUDE  -$(CFLAGS) -I.  -I$(SRC)  -c $<
c2.o:c2.c
               $(CC)   -$INCLUDE  -$(CFLAGS) -I.  -I$(SRC)  -c $<
c3.o:c3.c
               $(CC)   -$INCLUDE  -$(CFLAGS) -I.  -I$(SRC)  -c $<

all:parikshit
$(CC) -$(OBJS)  -$INCLUDE  -$(CFLAGS) -$LIBS --g -o parikshit


As far as my knowledge goes '$< ' will automatically search the mentioned 
source file in the folder mentioned by SRC .for example in this case
a1.o:a1.c
               $(CC)  -$INCLUDE -$(CFLAGS)  -I.  -I$(SRC)  -c $<
'$<' will automatically search the source file in the path mentioned by 
SRC(/Module/src) macro.
i.e.above thing will automatically search source file a1.c in /Module/src/ 
Module1/a1.c

So same thing for above source files.So why target is not being made.

Please help me .I will be highly thankful if somebody will come up with 
solution or mentioning any mistake made by me.Please reply as soon as 
possible as things are being halted for me.

Regards
Parikshat Dubey

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

^ permalink raw reply	[flat|nested] 12+ messages in thread
* Makefile Issue
@ 2006-07-20 16:30 Parikshat Dubey
  0 siblings, 0 replies; 12+ messages in thread
From: Parikshat Dubey @ 2006-07-20 16:30 UTC (permalink / raw)
  To: gcc-help

Hi all!

i am writing  makefile for whole project.I am stuck with one problem.I hope 
i will get some assistance from you as i got it before also.The problem goes 
like this:

I have toplevel folder project which contains 20 
subdirectories(modules).Project Folder also contains Makefilke  which will 
use all the source files and headers in each of the subdirectory or module 
to produce object files and then integrating all these object files to 
produce final target or exe.each module contains source files and header 
files respective to that module.The problem which i was getting is to how i 
mention the source files and header files containing in subdirectory 1  or 
for that matter in subdirectory 2 and so on in toplevel directory.

Note1: I donot want to create a makefile for each module.Instead i want to 
make only one Makefile which will take all the source files and header files 
from the respective modules.

Note2: I want to know how i can mention in top level makefile the source 
files from subdirectory1 or subdirectory 2 so as it can take source files 
from the respective subdirectories and produce respective targets obviously 
objectfiles. and how i can mention the object files from the respective 
folders if it produces so.

Project Folder contains
a)20 subdirectories(modules)Each subdirectory is a module and contains 
source and header files pretaining to that module.The source file in all 
these modules doesnot contain main function.There is only one main function 
in main.c which is containing in top level folder project.
b)MakeFile
c)main.c which contains main() function

_________________________________________________________________
How good are you in a Formula One car? Play now 
http://server1.msn.co.in/sp05/tataracing/onlinegame.asp

^ permalink raw reply	[flat|nested] 12+ messages in thread
* MakeFile Issue
@ 2006-07-20 16:31 Parikshat Dubey
  0 siblings, 0 replies; 12+ messages in thread
From: Parikshat Dubey @ 2006-07-20 16:31 UTC (permalink / raw)
  To: gcc-help

Hi all!

i am writing  makefile for whole project.I am stuck with one problem.I hope 
i will get some assistance from you as i got it before also.The problem goes 
like this:

I have toplevel folder project which contains 20 
subdirectories(modules).Project Folder also contains Makefilke  which will 
use all the source files and headers in each of the subdirectory or module 
to produce object files and then integrating all these object files to 
produce final target or exe.each module contains source files and header 
files respective to that module.The problem which i was getting is to how i 
mention the source files and header files containing in subdirectory 1  or 
for that matter in subdirectory 2 and so on in toplevel directory.

Note1: I donot want to create a makefile for each module.Instead i want to 
make only one Makefile which will take all the source files and header files 
from the respective modules.

Note2: I want to know how i can mention in top level makefile the source 
files from subdirectory1 or subdirectory 2 so as it can take source files 
from the respective subdirectories and produce respective targets obviously 
objectfiles. and how i can mention the object files from the respective 
folders if it produces so.

Project Folder contains
a)20 subdirectories(modules)Each subdirectory is a module and contains 
source and header files pretaining to that module.The source file in all 
these modules doesnot contain main function.There is only one main function 
in main.c which is containing in top level folder project.
b)MakeFile
c)main.c which contains main() function


Thanks & Regards
Parikshat Dubey

_________________________________________________________________
Spice up your IM conversations. New, colorful and animated emoticons. Get 
chatting! http://server1.msn.co.in/SP05/emoticons/

^ permalink raw reply	[flat|nested] 12+ messages in thread
* MakeFile Issue
@ 2006-07-20 16:31 Parikshat Dubey
  0 siblings, 0 replies; 12+ messages in thread
From: Parikshat Dubey @ 2006-07-20 16:31 UTC (permalink / raw)
  To: gcc-help

Hi all!

i am writing  makefile for whole project.I am stuck with one problem.I hope 
i will get some assistance from you as i got it before also.The problem goes 
like this:

I have toplevel folder project which contains 20 
subdirectories(modules).Project Folder also contains Makefilke  which will 
use all the source files and headers in each of the subdirectory or module 
to produce object files and then integrating all these object files to 
produce final target or exe.each module contains source files and header 
files respective to that module.The problem which i was getting is to how i 
mention the source files and header files containing in subdirectory 1  or 
for that matter in subdirectory 2 and so on in toplevel directory.

Note1: I donot want to create a makefile for each module.Instead i want to 
make only one Makefile which will take all the source files and header files 
from the respective modules.

Note2: I want to know how i can mention in top level makefile the source 
files from subdirectory1 or subdirectory 2 so as it can take source files 
from the respective subdirectories and produce respective targets obviously 
objectfiles. and how i can mention the object files from the respective 
folders if it produces so.

Project Folder contains
a)20 subdirectories(modules)Each subdirectory is a module and contains 
source and header files pretaining to that module.The source file in all 
these modules doesnot contain main function.There is only one main function 
in main.c which is containing in top level folder project.
b)MakeFile
c)main.c which contains main() function


Thanks & Regards
Parikshat Dubey

_________________________________________________________________
How good are you in a Formula One car? Play now 
http://server1.msn.co.in/sp05/tataracing/onlinegame.asp

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2006-07-20 16:31 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-05-11 19:01 makefile error Parikshat Dubey
2006-05-11 19:16 ` Daniel Llorens del Río
2006-05-13  8:14   ` Makefile Issue Parikshat Dubey
2006-05-13 11:47     ` Perry Smith
2006-05-19  6:29 makefile issue Parikshat Dubey
2006-05-26 10:39 Makefile Issue Parikshat Dubey
2006-05-26 10:51 ` Brian Dessent
2006-07-03 16:34 Makefile issue Parikshat Dubey
2006-07-18 14:05 ` Dima Sorkin
2006-07-20 16:30 Makefile Issue Parikshat Dubey
2006-07-20 16:31 MakeFile Issue Parikshat Dubey
2006-07-20 16:31 Parikshat Dubey

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).