This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: need help for editing a makefile
- From: John Love-Jensen <eljay at adobe dot com>
- To: mahmoodn <nt_mahmood at yahoo dot com>, MSX to GCC <gcc-help at gcc dot gnu dot org>
- Date: Tue, 11 Dec 2007 06:21:08 -0600
- Subject: Re: need help for editing a makefile
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