[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
make: making the binary name dependent on the source file name.
From: |
Ido Yehieli |
Subject: |
make: making the binary name dependent on the source file name. |
Date: |
Thu, 3 Jan 2008 02:08:53 -0800 (PST) |
User-agent: |
G2/1.0 |
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.
- make: making the binary name dependent on the source file name.,
Ido Yehieli <=