Command Line Continuation for GCC

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

 



I've looked through the gcc documentation and can't find an answer to this
simple question - how do I split a gcc command line into multiple lines?
For example,

gcc -ansi -c -o "E:\George\Consulting\2003-10 JSF Fluid Migration\Migrate
Software\GCC obj \Migrate.exe" "E:\George\Consulting\2003-10 JSF Fluid
Migration\Migrate Software\GCC obj\Migrate.obj"
"E:\George\Consulting\2003-10 JSF Fluid Migration\Migrate Software\GCC
obj\Migrate File Handlers.obj" "E:\George\Consulting\2003-10 JSF Fluid
Migration\Migrate Software\GCC obj\Migrate Utilities.obj"

This obviously would be much nicer on multiple lines.  I realize I can
define the compiler, compiler options, and base directory as variables to
shorten the line, but eventually I will have dozens of source files and the
single line will get totally out of hand.  Thanks for any help.

George




[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