From: mahmoodn <nt_mahmood@yahoo.com>
To: gcc-help@gcc.gnu.org
Subject: Re: need help for editing a makefile
Date: Wed, 12 Dec 2007 07:49:00 -0000 [thread overview]
Message-ID: <14290372.post@talk.nabble.com> (raw)
In-Reply-To: <C383DCD4.27AB7%eljay@adobe.com>
Hello,
>VVc_demo$(OBJ_EXT) : a.cpp b.cpp c.cpp
> g++ -o $@ -c VVc_demo.cpp
>(Usually you'd add VVc_demo.cpp itself to the dependency list as well.)
Thanks but I forgot to say that there are some .h files too (it was my
fault). I add some thing like this:
VVc_demo.moc: VVc_demo.cpp
$(QT_MOC) -o VVc_demo.moc VVc_demo.cpp
VVc_demo$(OBJ_EXT): VVc_demo.moc VVc_diagram_2.h Polygon_Voronoi_diagram_2.h
g++ -o $@ -c VVc_demo.cpp
VVc_demo$(EXE_EXT): VVc_demo$(OBJ_EXT)
$(CGAL_CXX) $(LIBPATH) $(EXE_OPT)VVc_demo VVc_demo$(OBJ_EXT) $(LDFLAGS)
but it says:
[mahmood@Milky-way VVc_diagram_2]$ make
make: *** No rule to make target `VVc_diagram_2.h', needed by `VVc_demo.o'.
Stop.
What should I do now?
John (Eljay) Love-Jensen wrote:
>
> Hi Mahmoodn,
>
>> I want to tell make that compile VVc_demo.cpp whenever "a.cpp" or "b.cpp"
>> or
>> "c.cpp" or ... changed.
>> How can I do that?
>
> VVc_demo$(OBJ_EXT) : a.cpp b.cpp c.cpp
> g++ -o $@ -c VVc_demo.cpp
>
> (Usually you'd add VVc_demo.cpp itself to the dependency list as well.)
>
> HTH,
> --Eljay
>
>
>
>
--
View this message in context: http://www.nabble.com/need-help-for-editing-a-makefile-tp14269485p14290372.html
Sent from the gcc - Help mailing list archive at Nabble.com.
next prev parent reply other threads:[~2007-12-12 7:49 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-12-11 8:11 mahmoodn
2007-12-11 12:21 ` John Love-Jensen
2007-12-12 7:49 ` mahmoodn [this message]
2007-12-12 14:09 ` Tim Prince
2007-12-13 7:02 ` mahmoodn
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=14290372.post@talk.nabble.com \
--to=nt_mahmood@yahoo.com \
--cc=gcc-help@gcc.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).