Hi Everybody:
I have got a program which contains a Makefile,when i enter “make”,
it shows :
***:missing separator
I’ve no idea about that.
And i enter “vi Makefile”,it looks something wrong at the sentence:
.include <bsd.prog.mk>
Could somebody tell me what’s the problem?
I’m a new learner,and the program executed at QNX6.2.1
PS:I wish you can know what i mean , my english is not good enough, thanks verymuch.
I don’t beleive .include <bsd.prog.mk> is a valid gnu make statement. In case it is, make is very sensitive to tab versus space and it must have Unix line termination and not Windows line termination. Use textto to convert line termination to be on the safe side.
It means that textto -r is really the wrong thing, and you should stick with -l. It also means you have spaces in your Makefile where you should have tabs. This was a big problem when moving makefiles from 4.22 and earlier to 4.23 and later.
This makefile as is cannot work on QNX6 it’s setup to work with a very specific compiler. That tells me you don’t really know what a makefile does or you would have figure it out by yourself pretty early.
It also probably mean that this program cannot be compile with some major rework as it seems to depend on certain library ( like -lio ) that don’t exists under QNX6.