| Setting up a project make [message #69724] | 
Sun, 11 May 2003 18:10   | 
 
Eclipse User  | 
 | 
 | 
   | 
 
Originally posted by: chris.javadisciple.com 
 
Under Windows XP I've installed the CDT into Eclipse. Everything seems  
to be installed and functional, but I am not sure how to configure the  
project make functions. 
 
I have installed cygwin, giving me a compiler, make, and debug utility.  
I can invoke these from a command line and they work fine. From inside  
Eclipse, "Build Project" produces: 
 
*** No rule to make target 'clean'. 
 
I added a "clean" section to the makefile, but that didn't seem to help. 
 
Any guidance would be appreciated. 
 
I've done my best to comb through the instructions that I can find, but  
I must be just missing this. 
 
--  
Chris Rehm 
chris@javadisciple.com 
 
Thou shalt not avenge, nor bear any grudge against the children of thy  
people, but shalt love thy neighbour as thyself. [Lev. 19:18]
 |  
 |  
  | 
| Re: Setting up a project make [message #69744 is a reply to message #69724] | 
Sun, 11 May 2003 22:52    | 
 
Eclipse User  | 
 | 
 | 
   | 
 
Originally posted by: billhao.hotmail.com 
 
this is one of my makefile, maybe some help to you 
 
objects = hello.o 
 
LIB_DIR = D:\MinGW\lib\gcc-lib\mingw32\3.2 
GCC = gcc 
 
 
COMPILE_OPTS = -Wno-deprecated 
#COMPILE_OPTS = -Wno-deprecated/# 
 
hello : $(objects) header.o 
 $(GCC) -o hello $(objects) header.o -L $(LIB_DIR) -lstdc++ $(COMPILE_OPTS) 
 @echo build finish 
 
$(objects) : main.cpp 
 $(GCC) -c main.cpp  $(COMPILE_OPTS) 
 
header.o : header.h header.cpp 
 $(GCC) -c header.cpp $(COMPILE_OPTS) 
 
all : hello 
 
..PHONY : clean 
clean : 
 -del hello.exe 
 -del hello.o 
 -del header.o 
 
 
bill 
-- 
e-mail: billhao@hotmail.com 
MSN Messenger: billhao@hotmail.com 
Web: http://www.minivoice.com 
 
 
"Chris Rehm" <chris@javadisciple.com> ???? 
news:3EBECA67.7090303@javadisciple.com... 
> Under Windows XP I've installed the CDT into Eclipse. Everything seems 
> to be installed and functional, but I am not sure how to configure the 
> project make functions. 
> 
> I have installed cygwin, giving me a compiler, make, and debug utility. 
> I can invoke these from a command line and they work fine. From inside 
> Eclipse, "Build Project" produces: 
> 
> *** No rule to make target 'clean'. 
> 
> I added a "clean" section to the makefile, but that didn't seem to help. 
> 
> Any guidance would be appreciated. 
> 
> I've done my best to comb through the instructions that I can find, but 
> I must be just missing this. 
> 
> --  
> Chris Rehm 
> chris@javadisciple.com 
> 
> Thou shalt not avenge, nor bear any grudge against the children of thy 
> people, but shalt love thy neighbour as thyself. [Lev. 19:18] 
>
 |  
 |  
  | 
 | 
| Re: Setting up a project make [message #69878 is a reply to message #69744] | 
Mon, 12 May 2003 12:29   | 
 
Eclipse User  | 
 | 
 | 
   | 
 
Originally posted by: chris.javadisciple.com 
 
Bill, 
I think I've found the problem. When I created my test project to try  
out the eclipse/CDT environment, I created a folder in the test project  
and put my source in that folder. 
 
It seems that make won't run correctly unless I move the source into the  
project and out of my subfolder. 
 
I'd only created the subfolder because I don't have any idea how things  
end up looking after lots of sources are added and I thought I'd try for  
some organization. 
 
Thanks for the help! 
 
bill wrote: 
> this is one of my makefile, maybe some help to you 
>  
 
 
--  
Chris Rehm 
chris@javadisciple.com 
 
Thou shalt not avenge, nor bear any grudge against the children of thy  
people, but shalt love thy neighbour as thyself. [Lev. 19:18]
 |  
 |  
  | 
Powered by 
FUDForum. Page generated in 0.57918 seconds