Z
Z.L.
My problem is as follows,
There are one directory containing many .C files. I am trying to write
a makefile to compile all the C files and for each C file there is a
binary file output with same name.
For example, assume there are C files such as `a.c', `b.c', `c.c' in
some directory. After batch compilation, I wish to get the binary
files `a', `b', `c'. Another constraint is that I don't know the file
names in advance.
Just like using wild character under command line mode, I wish to do
that in some way like `g++ *.c -o *'. But I am unfamiliar with
makefile writing.
Could somebody here help me with this problem?
Thanks a lot.
Z.L.
There are one directory containing many .C files. I am trying to write
a makefile to compile all the C files and for each C file there is a
binary file output with same name.
For example, assume there are C files such as `a.c', `b.c', `c.c' in
some directory. After batch compilation, I wish to get the binary
files `a', `b', `c'. Another constraint is that I don't know the file
names in advance.
Just like using wild character under command line mode, I wish to do
that in some way like `g++ *.c -o *'. But I am unfamiliar with
makefile writing.
Could somebody here help me with this problem?
Thanks a lot.
Z.L.