Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » Using my own Makefile?
Using my own Makefile? [message #164411] Fri, 24 February 2006 03:58 Go to next message
Eclipse UserFriend
Originally posted by: asd.asd.com

I would like to use my own Makefile in CDT, so I can control what options
gcc should use, but I cannot seem to specify this anywhere and I seems that
I have to choose "Managed Make C Project". Any hints?

Johs
Re: Using my own Makefile? [message #164418 is a reply to message #164411] Fri, 24 February 2006 05:08 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: ccvural.ttnet.net.tr

Hi,

Select "Standart Make C Project" if you want to manage your makefile.

Regards

CC Vural


Johs32 wrote:
> I would like to use my own Makefile in CDT, so I can control what options
> gcc should use, but I cannot seem to specify this anywhere and I seems that
> I have to choose "Managed Make C Project". Any hints?
>
> Johs
Re: Using my own Makefile? [message #164425 is a reply to message #164418] Fri, 24 February 2006 05:21 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: asd.asd.com

Cavit Cahit VURAL wrote:

> Hi,
>
> Select "Standart Make C Project" if you want to manage your makefile.
>
> Regards
>
> CC Vural
>
>
> Johs32 wrote:
>> I would like to use my own Makefile in CDT, so I can control what options
>> gcc should use, but I cannot seem to specify this anywhere and I seems
>> that I have to choose "Managed Make C Project". Any hints?
>>
>> Johs


I have now done that and made the following makefile:

all: hop

hop: hop.c
gcc hop.c -o hops

but I get this error:

make: *** No rule to make target `clean'. Stop.

How do I make a rule to "clean", and why is that needed?

I used a makefile for some time ago and eventhough I deliberately made some
errors in the source file and ran the makefile I just got the message that
it was already updated. Is this what clean is for? If not, how do I make
sure that when I run my makefile it will actually perform gcc on it and not
just give me a message saying that it is already updated?
Re: Using my own Makefile? [message #164508 is a reply to message #164425] Fri, 24 February 2006 06:38 Go to previous message
Eclipse UserFriend
Originally posted by: ccvural.ttnet.net.tr

Johs32 wrote:
> Cavit Cahit VURAL wrote:
>
>> Hi,
>>
>> Select "Standart Make C Project" if you want to manage your makefile.
>>
>> Regards
>>
>> CC Vural
>>
>>
>> Johs32 wrote:
>>> I would like to use my own Makefile in CDT, so I can control what options
>>> gcc should use, but I cannot seem to specify this anywhere and I seems
>>> that I have to choose "Managed Make C Project". Any hints?
>>>
>>> Johs
>
>
> I have now done that and made the following makefile:
>
> all: hop

clean : rm hop

Regards

CC Vural

>
> hop: hop.c
> gcc hop.c -o hops
>
> but I get this error:
>
> make: *** No rule to make target `clean'. Stop.
>
> How do I make a rule to "clean", and why is that needed?
>
> I used a makefile for some time ago and eventhough I deliberately made some
> errors in the source file and ran the makefile I just got the message that
> it was already updated. Is this what clean is for? If not, how do I make
> sure that when I run my makefile it will actually perform gcc on it and not
> just give me a message saying that it is already updated?
Previous Topic:how to open file via command line
Next Topic:Slow content assist with qt
Goto Forum:
  


Current Time: Thu Nov 06 07:48:29 EST 2025

Powered by FUDForum. Page generated in 0.05378 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top