N
newbiecpp
I am very sorry to post this one because I know it is out of topic but I
cannot find the proper news group. I understand that most senior C++
programmers know makefile very well. My question is GNU makefile support
command line argument?
I want to write a makefile so that when you invoke "make test", the makefile
will compile test like this:
$project = "command line argument, i.e., test";
$project : ($project).cpp
g++ -ggdb -o $project ($project).cpp
I cannot figure it out how I can get $project=test, the test is from command
line argument. I appreciate any help or direct me to the right new groups.
Thanks in advance!
cannot find the proper news group. I understand that most senior C++
programmers know makefile very well. My question is GNU makefile support
command line argument?
I want to write a makefile so that when you invoke "make test", the makefile
will compile test like this:
$project = "command line argument, i.e., test";
$project : ($project).cpp
g++ -ggdb -o $project ($project).cpp
I cannot figure it out how I can get $project=test, the test is from command
line argument. I appreciate any help or direct me to the right new groups.
Thanks in advance!