[Top][All Lists]

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

Compiling multiple sources in one command implicitly

From: EricDeb
Subject: Compiling multiple sources in one command implicitly
Date: Wed, 20 Feb 2008 11:55:23 -0800 (PST)

Every time I run the ARM compiler, I have to go grab a license over the
network. So, if I can compile several source files at once, I can greatly
reduce the amount of time to compile the entire project since I don't have
to check-out and check-in the license as much.

Is there a feature in GNU Make that will let me compile several source files
with a single command implicitly? I understand I could write rules like

a.o b.o c.o d.o : a.c b.c c.c d.c
     $(CC) -c $(CPPFLAGS) $?

But, this causes a few problems. First, if any of the .o's are missing we'll
compile all four sources. Second it will be tedious to create the makefiles
like this, especially since this project has many many files in it. Any
ideas? Thanks in advance.
View this message in context:
Sent from the Gnu - Make - Help mailing list archive at

reply via email to

[Prev in Thread] Current Thread [Next in Thread]