|
Re: Recursive makefile dependency problem
|
08/22/2012 12:31 PM
post95027
|
Re: Recursive makefile dependency problem
Hi Stephen,
In fact we use just such a solution with QNX's recursive make for our projects. This is from QNX 6.3.2 with GCC 3.3.5,
so you might have to modify this for your specific QNX and GCC versions - I know the older GCC used in QNX 6.2.1
doesn't support -MP, for example. Here is the makefile fragment we use:
# Auto-generate dependencies
CCFLAGS+=-Wp,-MD,$*.d -Wp,-MP,
# Clean them up when we're done
EXTRA_CLEAN+=*.d
# Include the relevant makefiles, but don't get upset if they're not there
-include $(addsuffix .d,$(basename $(notdir $(SRCS))))
Hope this helps some,
-Will
|
|
|