Re: need some help with a makefile
From: Eric (BorgMotherShip_at_AliensR_US.org)
Date: 06/11/05
- Next message: Bit Twister: "Re: need some help with a makefile"
- Previous message: Ed Cregger: "Linux is not..."
- In reply to: Jeroen Geilman: "Re: need some help with a makefile"
- Next in thread: Bit Twister: "Re: need some help with a makefile"
- Reply: Bit Twister: "Re: need some help with a makefile"
- Reply: Stu: "Re: need some help with a makefile"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 10 Jun 2005 21:50:14 -0700
Jeroen Geilman wrote:
> Eric wrote:
>> I'm trying to come up with a makefile that will do the following:
>> for each .c or .cpp file in the current dir compile it to an
>> executable with the output file "<source file>.cgi"
>> assume each program is one source file
>>
>> I was doing it by listing each file as a source and specifying its target
>> but i dont like it, its to clumsy, i'd rather have a rule to compile .c
>> another rule to compile .cpp and then gather a list of .c and .cpp files
>> compiling each one to a cgi as we go
>>
>> Can someone help on this?
>
> Check the GNU make manual:
> http://www.gnu.org/software/make/manual/html_chapter/make_4.html#SEC33
>
>
>
Thats half of what I'm after i think, but that is referring to making ONE
program from a lot of files, i want to make MANY programs - each from one c
file.
Thanks for the file pointer tho, I'm going to bookmark it
Eric
- Next message: Bit Twister: "Re: need some help with a makefile"
- Previous message: Ed Cregger: "Linux is not..."
- In reply to: Jeroen Geilman: "Re: need some help with a makefile"
- Next in thread: Bit Twister: "Re: need some help with a makefile"
- Reply: Bit Twister: "Re: need some help with a makefile"
- Reply: Stu: "Re: need some help with a makefile"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|