make: making the binary name dependent on the source file name.
Ido Yehieli <[email protected]>
| Newsgroups | gmane.comp.gnu.utils |
|---|---|
| Organization | http://groups.google.com |
| Message-ID | <c1b4736d-b971-4d80-9025-08b6c24d113f@e10g2000prf.googlegroups.com> |
Hi,
I have several source files in a directory (which are different
versions of the same program), and I want gnu make to compile each of
them and name the resulting binaries according to the source name.
for example, if i write:
====Begin Makefile====
somefile: somefile.*.o
cc $? -o $@
====end of Makefile====
it will compile all my files but will of course only produce one
binary(somefile). I want it to produce a binary named somefile.* for
every somefile.*.c source file i have.
-Ido.