Article View: alt.linux
Article #1095need some help with a makefile
From: Eric
Date: Fri, 10 Jun 2005 19:28
Date: Fri, 10 Jun 2005 19:28
13 lines
1820 bytes
1820 bytes
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?
Thanks,
Eric
Technical Details
Message-ID:
<EdednWQMYNJddDTfRVn-hA@comcast.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news2.google.com!news.maxwell.syr.edu!border1.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!nntp.comcast.com!news.comcast.com.POSTED!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 100c5f,d56b1e155b50f7b3,start X-Google-Thread: 11318c,d56b1e155b50f7b3,start X-Google-Attributes: gid100c5f,gid11318c,public X-Google-Language: ENGLISH,ASCII-7-bit Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news2.google.com!news.maxwell.syr.edu!border1.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!nntp.comcast.com!news.comcast.com.POSTED!not-for-mail NNTP-Posting-Date: Fri, 10 Jun 2005 14:28:00 -0500 From: Eric <BorgMotherShip@AliensR_US.org> Subject: need some help with a makefile Newsgroups: alt.linux,gnu.gcc.help Followup-To: alt.linux Date: Fri, 10 Jun 2005 12:28:00 -0700 User-Agent: KNode/0.8.2 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit Message-ID: <EdednWQMYNJddDTfRVn-hA@comcast.com> Lines: 13 NNTP-Posting-Host: 67.183.204.127 X-Trace: sv3-NCCkV0aWxevsFCTEd9nN+xmYh7EWPDpkzL6eoUaQS5wyXepazb9qSVH+F8Ibq6DHgsWNej/x/awxGIv!TedJkfapGz4rPaubUfdSNGc4MuLDjdzFvCNblfaorNnq5Yf3PbiX4BA2nRhLX2QBZGBQCFVbXq7r!dQ== X-Complaints-To: abuse@comcast.net X-DMCA-Complaints-To: dmca@comcast.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.32