Re: need help for editing a makefile

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux