The make file will build 'myProg' but my teacher says that my makefile is doing too much work if only myProg.c is changed. I don't want anyone to give me the answer (as obvious as it may be to some of you) but point me in the right direction if possible.
The make file will build 'myProg' but my teacher says that my makefile is doing too much work if only myProg.c is changed. I don't want anyone to give me the answer (as obvious as it may be to some of you) but point me in the right direction if possible.
Zekrazey1: You should google flex - It's a lexical scanner generator. It takes a scanner definition (in a file with extension .l) and generates a C file which implements that scanner. So the rule *should* output a .c file.
I was merely following Candy's line of questioning .
Zekrazey1: You should google flex - It's a lexical scanner generator. It takes a scanner definition (in a file with extension .l) and generates a C file which implements that scanner. So the rule *should* output a .c file.
The point was that there was a difference between what eboyd said (in response to Candy) and what his makefile said about the output of flex.
Zekrazey1 wrote:I was merely following Candy's line of questioning .
He said he didn't want me to spoil the answer so I was a bit more cryptic than I usually am... I thought you would figure out that they should have no relation since you don't pass the name of the file in the line just below it.
On the other hand, this really does teach you something since you know what a basic makefile looks like and you can craft a makefile for a diminutive project. That's fair for school assignments.