one more make question

Hi,

Earlier I utilized the following rule to automatically generate and
include dependencies file.

…PHONY : dep
dep:
$(CC) -I$(CFLAGS) -MM $(objects) > .depend
ifeq (.depend,$(wildcard .depend))
include .depend
endif

I used it under Linux\gcc (don’t remember the exact version numbers).
Now I am unable to make it work on qnx. Instead of generating dependencies
file this rule generates me map and a binary files.
(qcc also says ‘ignoring unexpected argument M after -M’)

So, how can I automatically generate dependencies file under QNX6.2 NC?

Thanks,

Oleksandr Brovko
Software Engineer

In the QNX6 environment CC maps to ‘qcc’, not gcc (see docs for qcc). To use
the -MM option you have to pass it to the pre-processor using -Wp,-MM.
The -M option means “generate map file”.

Jim

“Oleksandr Brovko” <obrovko@kse.kiev.ua> wrote in message
news:arfqb7$nt7$1@inn.qnx.com

Hi,

Earlier I utilized the following rule to automatically generate and
include dependencies file.

.PHONY : dep
dep:
$(CC) -I$(CFLAGS) -MM $(objects) > .depend
ifeq (.depend,$(wildcard .depend))
include .depend
endif

I used it under Linux\gcc (don’t remember the exact version numbers).
Now I am unable to make it work on qnx. Instead of generating dependencies
file this rule generates me map and a binary files.
(qcc also says ‘ignoring unexpected argument M after -M’)

So, how can I automatically generate dependencies file under QNX6.2
NC?

Thanks,

Oleksandr Brovko
Software Engineer